Class ResourceManagerConfiguration_impl
java.lang.Object
org.apache.uima.resource.metadata.impl.MetaDataObject_impl
org.apache.uima.resource.metadata.impl.ResourceManagerConfiguration_impl
- All Implemented Interfaces:
Serializable
,Cloneable
,MetaDataObject
,ResourceManagerConfiguration
,XMLizable
public class ResourceManagerConfiguration_impl
extends MetaDataObject_impl
implements ResourceManagerConfiguration
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.Serializer
-
Field Summary
Fields inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
serialContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExternalResource
(ExternalResourceDescription aExternalResourceDescription) Adds a External Resource to this configurationvoid
addExternalResourceBinding
(ExternalResourceBinding aExternalResourceBinding) Adds a External ResourceBinding to this configurationGets the description of this Resource Manager Configuration.Gets the bindings between an Analysis Engine'sExternalResourceDependencies
and theExternalResourceDescription
objects defined in this configuration.Gets the descriptions of the external resources to be instantiated and managed by the resource manager.Deprecated.Import[]
Gets the imports declared by this Resource Manager Configuration.getName()
Gets the name of this Resource Manager Configuration.Gets the vendor of this Resource Manager Configuration.Gets the version number of this Resource Manager Configuration.protected XmlizationInfo
To be implemented by subclasses to return information describing how to represent this object in XML.void
removeExternalResource
(ExternalResourceDescription aExternalResourceDescription) Removes an ExternalResource from this configuration.void
removeExternalResourceBinding
(ExternalResourceBinding aExternalResourceBinding) Removes an ExternalResourceBinding from this configuration.void
Resolves any import declarations in this resource manager configuration, adding the imported external resources and external resource bindings directly onto this ResourceManagerConfiguration'sexternalResources
andexternalResourceBindings
lists.void
resolveImports
(Collection<String> aAlreadyImportedURLs, ResourceManager aResourceManager) Resolves any import declarations in this resource manager configuration, adding the imported external resources and external resource bindings directly onto this ResourceManagerConfiguration'sexternalResources
andexternalResourceBindings
lists.void
resolveImports
(ResourceManager aResourceManager) Resolves any import declarations in this resource manager configuration, adding the imported external resources and external resource bindings directly onto this ResourceManagerConfiguration'sexternalResources
andexternalResourceBindings
lists.void
setDescription
(String aDescription) Sets the description of this Resource Manager Configuration.void
setExternalResourceBindings
(ExternalResourceBinding[] aBindings) Sets the bindings between an Analysis Engine'sExternalResourceDependencies
and theExternalResourceDescription
objects defined in this configuration.void
setExternalResources
(ExternalResourceDescription[] aDescriptions) Sets the descriptions of the external resources to be instantiated and managed by the resource manager.void
Deprecated.void
setImports
(Import[] aImports) Sets the imports declared by this Resource Manager Configuration.void
Sets the name of this Resource Manager Configuration.void
Sets the vendor of this Resource Manager Configuration.void
setVersion
(String aVersion) Sets the version number of this Resource Manager Configuration.protected void
writePropertyAsElement
(PropertyXmlInfo aPropInfo, String aNamespace) Utility method used to write a property out as an XML element.Methods inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
buildFromXMLElement, buildFromXMLElement, clone, equals, getAdditionalAttributes, getAttributeClass, getAttributeValue, getInfoset, getMatchingNode, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSerialContext, getSourceUrl, getSourceUrlString, getWrapperClass, getXMLAttributes, hashCode, isModifiable, listAttributes, readArrayPropertyValueFromXMLElement, readMapPropertyFromXml, readPropertyValueFromXMLElement, readUnknownPropertyValueFromXMLElement, resolveSettings, setAttributeValue, setInfoset, setSourceUrl, setSourceUrlIfNull, toString, toXML, toXML, toXML, toXML, valueIsNullOrEmptyArray, writeArrayPropertyAsElement, writeMapPropertyToXml
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
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
-
Constructor Details
-
ResourceManagerConfiguration_impl
public ResourceManagerConfiguration_impl()
-
-
Method Details
-
getName
Description copied from interface:ResourceManagerConfiguration
Gets the name of this Resource Manager Configuration.- Specified by:
getName
in interfaceResourceManagerConfiguration
- Returns:
- the name of this Resource Manager Configuration, null if none has been specified.
- See Also:
-
setName
Description copied from interface:ResourceManagerConfiguration
Sets the name of this Resource Manager Configuration.- Specified by:
setName
in interfaceResourceManagerConfiguration
- Parameters:
aName
- the name of this Resource Manager Configuration- See Also:
-
getVersion
Description copied from interface:ResourceManagerConfiguration
Gets the version number of this Resource Manager Configuration.- Specified by:
getVersion
in interfaceResourceManagerConfiguration
- Returns:
- the version number of this Resource Manager Configuration, as a String, null if none has been specified.
- See Also:
-
setVersion
Description copied from interface:ResourceManagerConfiguration
Sets the version number of this Resource Manager Configuration.- Specified by:
setVersion
in interfaceResourceManagerConfiguration
- Parameters:
aVersion
- the version number of this Resource Manager Configuration, as a String- See Also:
-
getDescription
Description copied from interface:ResourceManagerConfiguration
Gets the description of this Resource Manager Configuration.- Specified by:
getDescription
in interfaceResourceManagerConfiguration
- Returns:
- the description of this Resource Manager Configuration, null if none has been specified.
- See Also:
-
setDescription
Description copied from interface:ResourceManagerConfiguration
Sets the description of this Resource Manager Configuration.- Specified by:
setDescription
in interfaceResourceManagerConfiguration
- Parameters:
aDescription
- the description of this Resource Manager Configuration- See Also:
-
getVendor
Description copied from interface:ResourceManagerConfiguration
Gets the vendor of this Resource Manager Configuration.- Specified by:
getVendor
in interfaceResourceManagerConfiguration
- Returns:
- the vendor of this Resource Manager Configuration, as a String
- See Also:
-
setVendor
Description copied from interface:ResourceManagerConfiguration
Sets the vendor of this Resource Manager Configuration.- Specified by:
setVendor
in interfaceResourceManagerConfiguration
- Parameters:
aVendor
- the vendor of this Resource Manager Configuration, as a String, null if none has been specified.- See Also:
-
getImports
Description copied from interface:ResourceManagerConfiguration
Gets the imports declared by this Resource Manager Configuration.- Specified by:
getImports
in interfaceResourceManagerConfiguration
- Returns:
- an array of imports declared by this Resource Manager Configuration.
-
setImports
Description copied from interface:ResourceManagerConfiguration
Sets the imports declared by this Resource Manager Configuration.- Specified by:
setImports
in interfaceResourceManagerConfiguration
- Parameters:
aImports
- an array of imports declared by this Resource Manager Configuration.
-
getExternalResources
Description copied from interface:ResourceManagerConfiguration
Gets the descriptions of the external resources to be instantiated and managed by the resource manager.- Specified by:
getExternalResources
in interfaceResourceManagerConfiguration
- Returns:
- an array of
ExternalResourceDescription
objects that describe the external resources.
-
setExternalResources
Description copied from interface:ResourceManagerConfiguration
Sets the descriptions of the external resources to be instantiated and managed by the resource manager.- Specified by:
setExternalResources
in interfaceResourceManagerConfiguration
- Parameters:
aDescriptions
- an array ofExternalResourceDescription
objects that describe the external resources.
-
getExternalResourceBindings
Description copied from interface:ResourceManagerConfiguration
Gets the bindings between an Analysis Engine'sExternalResourceDependencies
and theExternalResourceDescription
objects defined in this configuration.- Specified by:
getExternalResourceBindings
in interfaceResourceManagerConfiguration
- Returns:
- an array of
ExternalResourceBinding
objects that bind dependencies to resources.
-
setExternalResourceBindings
Description copied from interface:ResourceManagerConfiguration
Sets the bindings between an Analysis Engine'sExternalResourceDependencies
and theExternalResourceDescription
objects defined in this configuration.- Specified by:
setExternalResourceBindings
in interfaceResourceManagerConfiguration
- Parameters:
aBindings
- an array ofExternalResourceBinding
objects that bind dependencies to resources.
-
addExternalResource
Description copied from interface:ResourceManagerConfiguration
Adds a External Resource to this configuration- Specified by:
addExternalResource
in interfaceResourceManagerConfiguration
- Parameters:
aExternalResourceDescription
- the ExternalResourceDescription to add
-
addExternalResourceBinding
Description copied from interface:ResourceManagerConfiguration
Adds a External ResourceBinding to this configuration- Specified by:
addExternalResourceBinding
in interfaceResourceManagerConfiguration
- Parameters:
aExternalResourceBinding
- the ExternalResourceBinding to add
-
removeExternalResource
Description copied from interface:ResourceManagerConfiguration
Removes an ExternalResource from this configuration.- Specified by:
removeExternalResource
in interfaceResourceManagerConfiguration
- Parameters:
aExternalResourceDescription
- the ExternalResourceDescription to remove (must be == with an ExternalResourceDescription in this collection, or this method will do nothing).
-
removeExternalResourceBinding
Description copied from interface:ResourceManagerConfiguration
Removes an ExternalResourceBinding from this configuration.- Specified by:
removeExternalResourceBinding
in interfaceResourceManagerConfiguration
- Parameters:
aExternalResourceBinding
- the ExternalResourceBinding to remove (must be == with an ExternalResourceBinding in this collection, or this method will do nothing).
-
getImport
Deprecated.Description copied from interface:ResourceManagerConfiguration
Gets the import declared by this Resource Manager Configuration, if any.- Specified by:
getImport
in interfaceResourceManagerConfiguration
- Returns:
- an object that defines how to locate an external XML file defining the resource manager configuration. Returns null if there is no import.
-
setImport
Deprecated.Description copied from interface:ResourceManagerConfiguration
Sets the import declared by this Resource Manager Configuration, if any.- Specified by:
setImport
in interfaceResourceManagerConfiguration
- Parameters:
aImport
- an object that defines how to locate an external XML file defining the resource manager configuration. Null indicates that there is no import.
-
resolveImports
Description copied from interface:ResourceManagerConfiguration
Resolves any import declarations in this resource manager configuration, adding the imported external resources and external resource bindings directly onto this ResourceManagerConfiguration'sexternalResources
andexternalResourceBindings
lists.- Specified by:
resolveImports
in interfaceResourceManagerConfiguration
- Throws:
InvalidXMLException
- if either the import target does not exist or is invalid
-
resolveImports
Description copied from interface:ResourceManagerConfiguration
Resolves any import declarations in this resource manager configuration, adding the imported external resources and external resource bindings directly onto this ResourceManagerConfiguration'sexternalResources
andexternalResourceBindings
lists.- Specified by:
resolveImports
in interfaceResourceManagerConfiguration
- Parameters:
aResourceManager
- the Resource Manager used to locate the XML file imported by name. For example, the path in which to locate the imported files can be set via theResourceManager.setDataPath(String)
method.- Throws:
InvalidXMLException
- if either the import target does not exist or is invalid
-
resolveImports
public void resolveImports(Collection<String> aAlreadyImportedURLs, ResourceManager aResourceManager) throws InvalidXMLException Description copied from interface:ResourceManagerConfiguration
Resolves any import declarations in this resource manager configuration, adding the imported external resources and external resource bindings directly onto this ResourceManagerConfiguration'sexternalResources
andexternalResourceBindings
lists.This version is used internally to resolve nested imports.
- Specified by:
resolveImports
in interfaceResourceManagerConfiguration
- Parameters:
aAlreadyImportedURLs
- names of already imported URLs, so we don't import them again.aResourceManager
- the Resource Manager used to locate the XML file imported by name. For example, the path in which to locate the imported files can be set via theResourceManager.setDataPath(String)
method.- Throws:
InvalidXMLException
- if either the import target does not exist or is invalid
-
writePropertyAsElement
protected void writePropertyAsElement(PropertyXmlInfo aPropInfo, String aNamespace) throws SAXException Description copied from class:MetaDataObject_impl
Utility method used to write a property out as an XML element.- Overrides:
writePropertyAsElement
in classMetaDataObject_impl
- Parameters:
aPropInfo
- information on how to represent the property in XMLaNamespace
- XML namespace URI for this object representation- Throws:
SAXException
- -
-
getXmlizationInfo
Description copied from class:MetaDataObject_impl
To be implemented by subclasses to return information describing how to represent this object in XML.- Specified by:
getXmlizationInfo
in classMetaDataObject_impl
- Returns:
- information defining this object's XML representation
-
ResourceManagerConfiguration.getImport()