|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.util.AbstractFeatureBearer
gate.creole.ResourceData
public class ResourceData
Models an individual CREOLE resource metadata, plus configuration data, plus the instantiations of the resource current within the system. Some metadata elements are used by GATE to load resources, or index the members of the CREOLE register; some are used during resource parameterisation and initialisation. Metadata elements which are used by the CREOLE registration and loading mechanisms are properties of ResourceData implementations and have their own get/set methods. Other metadata elements are made features of the ResourceData. So, for example, if you add an element "FunkyElementThaing" to the metadata of a resource, this will be made a feature of that resource's ResourceData.
CreoleRegister
,
Serialized FormField Summary | |
---|---|
protected String |
annotationTypeDisplayed
The full type name of the annotation displayed by this viewer. |
protected boolean |
autoLoading
Autoloading flag |
protected String |
className
The class name of the resource |
protected String |
comment
The comment string |
protected static boolean |
DEBUG
Debug flag |
protected static String |
DEFAULT_LR_ICON
|
protected static String |
DEFAULT_OTHER_ICON
|
protected static String |
DEFAULT_PR_ICON
|
protected int |
guiType
A filed which can have one of the 3 predefined values. |
protected String |
icon
Location of an icon for the resource |
protected WeakBumpyStack |
instantiationStack
The stack of instantiations |
protected String |
interfaceName
The interface name of the resource |
protected boolean |
isMainView
Whether or not this viewer will be the default one |
protected String |
jarFileName
The jar file name of the resource |
protected URL |
jarFileUrl
The jar file URL of the resource |
static int |
LARGE_GUI
This type indicates that the resource goes into the large area of GATE GUI |
protected String |
name
The name of the resource |
static int |
NULL_GUI
This type indicates that the resource is not a GUI |
protected ParameterList |
parameterList
The set of parameter lists |
protected List |
persistantInstantiationList
This list contains all instances loaded from creole.xml with AUTOINSTANCE tag. |
protected boolean |
priv
Private flag |
protected Class |
resourceClass
The class of the resource |
protected String |
resourceDisplayed
The full class name of the resource displayed by this viewer. |
static int |
SMALL_GUI
This type indicates that the resource goes into the small area of GATE GUI |
protected boolean |
tool
Tool flag |
protected String |
validityMessage
Status message set by isValid() |
protected String |
xmlFileName
The xml file name of the resource |
protected URL |
xmlFileUrl
The xml file URL of the resource |
Fields inherited from class gate.util.AbstractFeatureBearer |
---|
features |
Constructor Summary | |
---|---|
ResourceData()
Construction |
Method Summary | |
---|---|
void |
addInstantiation(Resource resource)
Add an instantiation of the resource to the register of these |
void |
bumpInstantiation(Resource resource)
Bump an instantiation to the top of the instantiation stack |
boolean |
equals(Object other)
Equality: two resource data objects are the same if they have the same name |
String |
getAnnotationTypeDisplayed()
A simple accessor for annotationTypeDisplayed field |
String |
getClassName()
Get method for the resource class name |
String |
getComment()
Get method for the resource comment |
int |
getGuiType()
A simple accessor for guiType field |
String |
getIcon()
Get method for the resource icon |
WeakBumpyStack |
getInstantiations()
Get the list of instantiations of resources |
String |
getInterfaceName()
Get method for the resource interface name |
String |
getJarFileName()
Get method for the resource jar file name |
URL |
getJarFileUrl()
Get method for the resource jar file URL |
String |
getName()
Get method for the resource name |
ParameterList |
getParameterList()
Get the parameter list |
Class |
getResourceClass()
Get method for the resource class. |
String |
getResourceDisplayed()
A simple accessor for resourceDisplayed field |
String |
getValidityMessage()
Get validity statues message. |
URL |
getXmlFileUrl()
Get the URL to the creole.xml file that defines this resource |
protected String |
guessIcon()
Makes the best attempt of guessing an appropriate icon for this resource type based on whether it is a Language Resource, a Processing Resource, or something else. |
int |
hashCode()
Hashing, based on the name field of the object |
boolean |
isAutoLoading()
Is the resource autoloading? |
boolean |
isMainView()
A simple accessor for isMainView field |
boolean |
isPrivate()
Is the resource private? |
boolean |
isTool()
Is the resource a tool? |
boolean |
isValid()
Is this a valid resource data configuration? |
void |
makeInstantiationPersistant(Resource resource)
This method makes a certain resource persistent by adding it into a persistantInstantiationList. |
void |
removeInstantiation(Resource resource)
Remove an instantiation of the resource from the register of these |
void |
setAnnotationTypeDisplayed(String anAnnotationTypeDisplayed)
A simple mutator for annotationTypeDisplayed field |
void |
setAutoLoading(boolean autoLoading)
Set method for resource autoloading flag |
void |
setClassName(String className)
Set method for the resource class name |
void |
setComment(String comment)
Set method for the resource comment |
void |
setGuiType(int aGuiType)
A simple mutator for guiType field |
void |
setIcon(String icon)
Set method for the resource icon |
void |
setInterfaceName(String interfaceName)
Set method for the resource interface name |
void |
setIsMainView(boolean mainView)
A simple mutator for isMainView field |
void |
setJarFileName(String jarFileName)
Set method for the resource jar file name |
void |
setJarFileUrl(URL jarFileUrl)
Set method for the resource jar file URL |
void |
setName(String name)
Set method for the resource name |
void |
setParameterList(ParameterList parameterList)
Set the parameter list |
void |
setPrivate(boolean priv)
Set method for resource private flag |
void |
setResourceClass(Class resourceClass)
Set method for the resource class |
void |
setResourceDisplayed(String aResourceDisplayed)
A simple mutator for resourceDisplayed field |
void |
setTool(boolean tool)
Set method for resource tool flag |
void |
setXmlFileUrl(URL xmlFileUrl)
Set the URL to the creole.xml file that defines this resource |
String |
toString()
String representation |
Methods inherited from class gate.util.AbstractFeatureBearer |
---|
getFeatures, setFeatures |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final boolean DEBUG
protected static final String DEFAULT_LR_ICON
protected static final String DEFAULT_PR_ICON
protected static final String DEFAULT_OTHER_ICON
protected String name
protected String icon
protected WeakBumpyStack instantiationStack
protected List persistantInstantiationList
protected String className
protected String interfaceName
protected Class resourceClass
protected String jarFileName
protected URL jarFileUrl
protected String xmlFileName
protected URL xmlFileUrl
protected String comment
protected ParameterList parameterList
protected boolean autoLoading
protected boolean priv
protected boolean tool
protected String validityMessage
public static final int NULL_GUI
public static final int LARGE_GUI
public static final int SMALL_GUI
protected int guiType
protected boolean isMainView
protected String resourceDisplayed
protected String annotationTypeDisplayed
Constructor Detail |
---|
public ResourceData()
Method Detail |
---|
public String toString()
toString
in class Object
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void setName(String name)
public String getName()
public void setIcon(String icon)
public String getIcon()
protected String guessIcon()
public WeakBumpyStack getInstantiations()
public void addInstantiation(Resource resource)
public void makeInstantiationPersistant(Resource resource)
public void removeInstantiation(Resource resource)
public void bumpInstantiation(Resource resource)
public void setClassName(String className)
public String getClassName()
public void setInterfaceName(String interfaceName)
public String getInterfaceName()
public void setResourceClass(Class resourceClass)
public Class getResourceClass() throws ClassNotFoundException
ClassNotFoundException
public void setJarFileName(String jarFileName)
public String getJarFileName()
public void setJarFileUrl(URL jarFileUrl)
public URL getJarFileUrl()
public void setXmlFileUrl(URL xmlFileUrl)
public URL getXmlFileUrl()
public String getComment()
public void setComment(String comment)
public void setParameterList(ParameterList parameterList)
public ParameterList getParameterList()
public void setAutoLoading(boolean autoLoading)
public boolean isAutoLoading()
public void setPrivate(boolean priv)
public boolean isPrivate()
public void setTool(boolean tool)
public boolean isTool()
public boolean isValid()
public String getValidityMessage()
public void setGuiType(int aGuiType)
public int getGuiType()
public void setIsMainView(boolean mainView)
public boolean isMainView()
public void setResourceDisplayed(String aResourceDisplayed)
public String getResourceDisplayed()
public void setAnnotationTypeDisplayed(String anAnnotationTypeDisplayed)
public String getAnnotationTypeDisplayed()
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |