|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.Factory
public abstract class Factory
Provides static methods for the creation of Resources.
Constructor Summary | |
---|---|
Factory()
|
Method Summary | |
---|---|
static void |
addCreoleListener(CreoleListener l)
Add a listener |
static AccessController |
createAccessController(String jdbcURL)
Creates and opens a new AccessController (if not available in the pool). |
static DataStore |
createDataStore(String dataStoreClassName,
String storageUrl)
Create a new DataStore and open it. |
static Resource |
createResource(String resourceClassName)
Create an instance of a resource using default parameter values. |
static Resource |
createResource(String resourceClassName,
FeatureMap parameterValues)
Create an instance of a resource, and return it. |
static Resource |
createResource(String resourceClassName,
FeatureMap parameterValues,
FeatureMap features)
Create an instance of a resource, and return it. |
static Resource |
createResource(String resourceClassName,
FeatureMap parameterValues,
FeatureMap features,
String resourceName)
Create an instance of a resource, and return it. |
static void |
deleteResource(Resource resource)
Delete an instance of a resource. |
static Class |
getJapeParserClass()
|
protected static DataStore |
instantiateDataStore(String dataStoreClassName,
String storageUrl)
Instantiate a DataStore (not open or created). |
static Corpus |
newCorpus(String name)
Create a new transient Corpus. |
static Document |
newDocument(String content)
Create a new transient textual Document from a string. |
static Document |
newDocument(URL sourceUrl)
Create a new transient Document from a URL. |
static Document |
newDocument(URL sourceUrl,
String encoding)
Create a new transient Document from a URL and an encoding. |
static FeatureMap |
newFeatureMap()
Create a new FeatureMap. |
static ParseCpsl |
newJapeParser(Reader stream,
HashMap existingMacros)
|
static ParseCpsl |
newJapeParser(URL japeURL,
String encoding)
|
static DataStore |
openDataStore(String dataStoreClassName,
String storageUrl)
Open an existing DataStore. |
static void |
setJapeParserClass(Class newClass)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Factory()
Method Detail |
---|
public static Resource createResource(String resourceClassName) throws ResourceInstantiationException
ResourceInstantiationException
createResource(String,FeatureMap)
public static Resource createResource(String resourceClassName, FeatureMap parameterValues) throws ResourceInstantiationException
resourceClassName
- the name of the class implementing the resource.parameterValues
- the feature map containing intialisation time
parameterValues for the resource.
ResourceInstantiationException
public static Resource createResource(String resourceClassName, FeatureMap parameterValues, FeatureMap features) throws ResourceInstantiationException
resourceClassName
- the name of the class implementing the resource.parameterValues
- the feature map containing intialisation time
parameterValues for the resource.features
- the features for the new resource
ResourceInstantiationException
public static Resource createResource(String resourceClassName, FeatureMap parameterValues, FeatureMap features, String resourceName) throws ResourceInstantiationException
resourceClassName
- the name of the class implementing the resource.parameterValues
- the feature map containing intialisation time
parameterValues for the resource.features
- the features for the new resource
ResourceInstantiationException
public static void deleteResource(Resource resource)
resource
- the resource to be deleted.public static Corpus newCorpus(String name) throws ResourceInstantiationException
ResourceInstantiationException
public static Document newDocument(URL sourceUrl) throws ResourceInstantiationException
ResourceInstantiationException
public static Document newDocument(URL sourceUrl, String encoding) throws ResourceInstantiationException
ResourceInstantiationException
public static Document newDocument(String content) throws ResourceInstantiationException
ResourceInstantiationException
public static Class getJapeParserClass()
public static void setJapeParserClass(Class newClass)
public static ParseCpsl newJapeParser(Reader stream, HashMap existingMacros)
public static ParseCpsl newJapeParser(URL japeURL, String encoding) throws IOException
IOException
public static FeatureMap newFeatureMap()
public static DataStore openDataStore(String dataStoreClassName, String storageUrl) throws PersistenceException
PersistenceException
public static DataStore createDataStore(String dataStoreClassName, String storageUrl) throws PersistenceException, UnsupportedOperationException
PersistenceException
UnsupportedOperationException
protected static DataStore instantiateDataStore(String dataStoreClassName, String storageUrl) throws PersistenceException
PersistenceException
public static void addCreoleListener(CreoleListener l)
public static AccessController createAccessController(String jdbcURL) throws PersistenceException
PersistenceException
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |