gate.creole
Class AbstractResource
java.lang.Object
|
+--gate.util.AbstractFeatureBearer
|
+--gate.creole.AbstractResource
- All Implemented Interfaces:
- FeatureBearer, Resource, Serializable
- Direct Known Subclasses:
- AbstractLanguageResource, AbstractProcessingResource
- public abstract class AbstractResource
- extends AbstractFeatureBearer
- implements Resource, Serializable
A convenience implementation of Resource with some default code.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
serialVersionUID
static final long serialVersionUID
AbstractResource
public AbstractResource()
init
public Resource init()
throws ResourceInstantiationException
- Initialise this resource, and return it.
- Specified by:
init
in interface Resource
setName
public void setName(String name)
- Sets the name of this resource
- Specified by:
setName
in interface FeatureBearer
- Overrides:
setName
in class AbstractFeatureBearer
getName
public String getName()
- Returns the name of this resource
- Specified by:
getName
in interface FeatureBearer
- Overrides:
getName
in class AbstractFeatureBearer