|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceMetaData
Encapsulates all metadata for a Resource
.
As with all MetaDataObject
s, a ResourceMetaData
may or may not be
modifiable. An application can find out by calling the MetaDataObject.isModifiable()
method.
Method Summary | |
---|---|
ConfigurationParameterDeclarations |
getConfigurationParameterDeclarations()
Gets the configuration parameter declarations for this Resource. |
ConfigurationParameterSettings |
getConfigurationParameterSettings()
Gets the configuration parameter settings for this Resource. |
String |
getCopyright()
Gets the copyright notice for this Resource. |
String |
getDescription()
Gets the description of this Resource. |
String |
getName()
Gets the name of this Resource. |
String |
getUUID()
Gets the UUID (Universally Unique Identifier) for this Resource. |
String |
getVendor()
Gets the vendor of this Resource. |
String |
getVersion()
Gets the version number of this Resource. |
void |
resolveImports()
Resolves any import declarations throughout this metadata. |
void |
resolveImports(ResourceManager aResourceManager)
Resolves any import declarations throughout this metadata. |
void |
setConfigurationParameterDeclarations(ConfigurationParameterDeclarations aDeclarations)
Gets the configuration parameter declarations for this Resource. |
void |
setConfigurationParameterSettings(ConfigurationParameterSettings aSettings)
Sets the configuration parameter settings for this Resource. |
void |
setCopyright(String aCopyright)
Sets the copyright notice for this Resource. |
void |
setDescription(String aDescription)
Sets the description of this Resource. |
void |
setName(String aName)
Sets the name of this Resource. |
void |
setUUID(String aUUID)
Sets the UUID (Universally Unique Identifier) for this Resource. |
void |
setVendor(String aVendor)
Sets the vendor of this Resource. |
void |
setVersion(String aVersion)
Sets the version number of this Resource. |
void |
validateConfigurationParameterSettings()
Validates configuration parameter settings within this Resource MetaData, and throws an exception if they are not valid. |
Methods inherited from interface org.apache.uima.resource.metadata.MetaDataObject |
---|
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl |
Methods inherited from interface org.apache.uima.util.XMLizable |
---|
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML |
Method Detail |
---|
String getUUID()
void setUUID(String aUUID)
aUUID
- the UUID for this Resource
UIMA_UnsupportedOperationException
- if this object is not modifiableString getName()
void setName(String aName)
aName
- the name of this Resource
UIMA_UnsupportedOperationException
- if this object is not modifiableString getVersion()
void setVersion(String aVersion)
aVersion
- the version number of this Resource, as a String
UIMA_UnsupportedOperationException
- if this object is not modifiableString getDescription()
void setDescription(String aDescription)
aDescription
- the description of this Resource
UIMA_UnsupportedOperationException
- if this object is not modifiableString getVendor()
void setVendor(String aVendor)
aVendor
- the vendor of this Resource, as a String
UIMA_UnsupportedOperationException
- if this object is not modifiableString getCopyright()
void setCopyright(String aCopyright)
aCopyright
- the copyright notice for this Resource
UIMA_UnsupportedOperationException
- if this object is not modifiableConfigurationParameterDeclarations getConfigurationParameterDeclarations()
void setConfigurationParameterDeclarations(ConfigurationParameterDeclarations aDeclarations)
aDeclarations
- an object containig the configuration parameter declarationsConfigurationParameterSettings getConfigurationParameterSettings()
void setConfigurationParameterSettings(ConfigurationParameterSettings aSettings)
aSettings
- an object containing the settings for this Resource's configuration parameters.
UIMA_UnsupportedOperationException
- if this object is not modifiablevoid validateConfigurationParameterSettings() throws ResourceConfigurationException
This method checks to make sure that each configuration parameter setting corresponds to an declared configuraiton parameter, and that the data types are compatible. It does NOT check that all mandatory parameters have been assigned values - this should be done at resource initialization time and not before.
ResourceConfigurationException
- if the configuration parameter settings are invalidvoid resolveImports() throws InvalidXMLException
InvalidXMLException
- if either the import target does not exist or is invalidvoid resolveImports(ResourceManager aResourceManager) throws InvalidXMLException
aResourceManager
- the Resource Manager used to locate descriptors imported by name. For example, the
path in which to locate these descriptors can be set via the
ResourceManager.setDataPath(String)
method.
InvalidXMLException
- if either the import target does not exist or is invalid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |