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

Constructor Summary
AbstractResource()
           
 
Method Summary
 String getName()
          Returns the name of this resource
 Resource init()
          Initialise this resource, and return it.
 void setName(String name)
          Sets the name of this resource
 
Methods inherited from class gate.util.AbstractFeatureBearer
getFeatures, setFeatures
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gate.util.FeatureBearer
getFeatures, setFeatures
 

Constructor Detail

AbstractResource

public AbstractResource()
Method Detail

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