View Javadoc

1   package com.ontotext.ordi.wsmo4rdf.remote.client;
2   
3   import com.ontotext.ordi.wsmo4rdf.remote.client.fact.IllegalSourceNameException_Exception;
4   import com.ontotext.ordi.wsmo4rdf.remote.client.fact.ServiceLimitExceededException_Exception;
5   
6   public class Factory {
7       	private final RemoteWsmo4rdfGate gate;
8       	
9       	public Factory(final RemoteWsmo4rdfGate gate) {
10      	    this.gate = gate;
11      	}
12      	
13  	public RemoteWsmoSource createWsmoSource(final String sourceName) throws ServiceLimitExceededException_Exception, IllegalSourceNameException_Exception {
14  	    int sourceId = this.gate.getFactoryService().getNewWsmoSource(sourceName);
15  	    RemoteWsmoSource rws = new RemoteWsmoSource(sourceId, this.gate);
16  	    return rws;
17  	}
18  }