public interface ResourceMetaData extends MetaDataObject
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.Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
String getUUID()
void setUUID(String aUUID)
aUUID
- the UUID for this ResourceUIMA_UnsupportedOperationException
- if this object is not modifiableString getName()
void setName(String aName)
aName
- the name of this ResourceUIMA_UnsupportedOperationException
- if this object is not modifiableString getVersion()
void setVersion(String aVersion)
aVersion
- the version number of this Resource, as a StringUIMA_UnsupportedOperationException
- if this object is not modifiableString getDescription()
void setDescription(String aDescription)
aDescription
- the description of this ResourceUIMA_UnsupportedOperationException
- if this object is not modifiableString getVendor()
void setVendor(String aVendor)
aVendor
- the vendor of this Resource, as a StringUIMA_UnsupportedOperationException
- if this object is not modifiableString getCopyright()
void setCopyright(String aCopyright)
aCopyright
- the copyright notice for this ResourceUIMA_UnsupportedOperationException
- if this object is not modifiableConfigurationParameterDeclarations getConfigurationParameterDeclarations()
void setConfigurationParameterDeclarations(ConfigurationParameterDeclarations aDeclarations)
aDeclarations
- an object containing 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 configuration 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 invalidCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.