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:
java.io.Serializable,java.lang.Cloneable,MetaDataObject,ResourceManagerConfiguration,XMLizable
public class ResourceManagerConfiguration_impl extends MetaDataObject_impl implements ResourceManagerConfiguration
- See Also:
- Serialized Form
-
-
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 Modifier and Type Field Description private ExternalResourceBinding[]mBindingsprivate java.lang.StringmDescriptionprivate ExternalResourceDescription[]mExternalResourcesprivate Import[]mImportsprivate java.lang.StringmNameprivate java.lang.StringmVendorprivate java.lang.StringmVersionprivate static longserialVersionUIDprivate static XmlizationInfoXMLIZATION_INFO-
Fields inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
serialContext
-
-
Constructor Summary
Constructors Constructor Description ResourceManagerConfiguration_impl()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddExternalResource(ExternalResourceDescription aExternalResourceDescription)Adds a External Resource to this configurationvoidaddExternalResourceBinding(ExternalResourceBinding aExternalResourceBinding)Adds a External ResourceBinding to this configurationjava.lang.StringgetDescription()Gets the description of this Resource Manager Configuration.ExternalResourceBinding[]getExternalResourceBindings()Gets the bindings between an Analysis Engine'sExternalResourceDependenciesand theExternalResourceDescriptionobjects defined in this configuration.ExternalResourceDescription[]getExternalResources()Gets the descriptions of the external resources to be instantiated and managed by the resource manager.ImportgetImport()Deprecated.Import[]getImports()Gets the imports declared by this Resource Manager Configuration.java.lang.StringgetName()Gets the name of this Resource Manager Configuration.java.lang.StringgetVendor()Gets the vendor of this Resource Manager Configuration.java.lang.StringgetVersion()Gets the version number of this Resource Manager Configuration.protected XmlizationInfogetXmlizationInfo()To be implemented by subclasses to return information describing how to represent this object in XML.voidremoveExternalResource(ExternalResourceDescription aExternalResourceDescription)Removes an ExternalResource from this configuration.voidremoveExternalResourceBinding(ExternalResourceBinding aExternalResourceBinding)Removes an ExternalResourceBinding from this configuration.private voidresolveImport(java.net.URL aURL, java.util.Collection<java.lang.String> aAlreadyImportedURLs, java.util.Collection<ExternalResourceDescription> aResultResources, java.util.Collection<ExternalResourceBinding> aResultBindings, ResourceManager aResourceManager)voidresolveImports()Resolves any import declarations in this resource manager configuration, adding the imported external resources and external resource bindings directly onto this ResourceManagerConfiguration'sexternalResourcesandexternalResourceBindingslists.voidresolveImports(java.util.Collection<java.lang.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'sexternalResourcesandexternalResourceBindingslists.voidresolveImports(ResourceManager aResourceManager)Resolves any import declarations in this resource manager configuration, adding the imported external resources and external resource bindings directly onto this ResourceManagerConfiguration'sexternalResourcesandexternalResourceBindingslists.voidsetDescription(java.lang.String aDescription)Sets the description of this Resource Manager Configuration.voidsetExternalResourceBindings(ExternalResourceBinding[] aBindings)Sets the bindings between an Analysis Engine'sExternalResourceDependenciesand theExternalResourceDescriptionobjects defined in this configuration.voidsetExternalResources(ExternalResourceDescription[] aDescriptions)Sets the descriptions of the external resources to be instantiated and managed by the resource manager.voidsetImport(Import aImport)Deprecated.voidsetImports(Import[] aImports)Sets the imports declared by this Resource Manager Configuration.voidsetName(java.lang.String aName)Sets the name of this Resource Manager Configuration.voidsetVendor(java.lang.String aVendor)Sets the vendor of this Resource Manager Configuration.voidsetVersion(java.lang.String aVersion)Sets the version number of this Resource Manager Configuration.protected voidwritePropertyAsElement(PropertyXmlInfo aPropInfo, java.lang.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, getAttributes, getAttributeValue, getInfoset, getMatchingNode, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSerialContext, getSourceUrl, getSourceUrlString, getUnfilteredAttributes, 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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
mName
private java.lang.String mName
-
mVersion
private java.lang.String mVersion
-
mDescription
private java.lang.String mDescription
-
mVendor
private java.lang.String mVendor
-
mImports
private Import[] mImports
-
mBindings
private ExternalResourceBinding[] mBindings
-
mExternalResources
private ExternalResourceDescription[] mExternalResources
-
XMLIZATION_INFO
private static final XmlizationInfo XMLIZATION_INFO
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:ResourceManagerConfigurationGets the name of this Resource Manager Configuration.- Specified by:
getNamein interfaceResourceManagerConfiguration- Returns:
- the name of this Resource Manager Configuration, null if none has been specified.
- See Also:
ResourceManagerConfiguration.getName()
-
setName
public void setName(java.lang.String aName)
Description copied from interface:ResourceManagerConfigurationSets the name of this Resource Manager Configuration.- Specified by:
setNamein interfaceResourceManagerConfiguration- Parameters:
aName- the name of this Resource Manager Configuration- See Also:
ResourceManagerConfiguration.setName(String)
-
getVersion
public java.lang.String getVersion()
Description copied from interface:ResourceManagerConfigurationGets the version number of this Resource Manager Configuration.- Specified by:
getVersionin interfaceResourceManagerConfiguration- Returns:
- the version number of this Resource Manager Configuration, as a String, null if none has been specified.
- See Also:
ResourceManagerConfiguration.getVersion()
-
setVersion
public void setVersion(java.lang.String aVersion)
Description copied from interface:ResourceManagerConfigurationSets the version number of this Resource Manager Configuration.- Specified by:
setVersionin interfaceResourceManagerConfiguration- Parameters:
aVersion- the version number of this Resource Manager Configuration, as a String- See Also:
ResourceManagerConfiguration.setVersion(String)
-
getDescription
public java.lang.String getDescription()
Description copied from interface:ResourceManagerConfigurationGets the description of this Resource Manager Configuration.- Specified by:
getDescriptionin interfaceResourceManagerConfiguration- Returns:
- the description of this Resource Manager Configuration, null if none has been specified.
- See Also:
ResourceManagerConfiguration.getDescription()
-
setDescription
public void setDescription(java.lang.String aDescription)
Description copied from interface:ResourceManagerConfigurationSets the description of this Resource Manager Configuration.- Specified by:
setDescriptionin interfaceResourceManagerConfiguration- Parameters:
aDescription- the description of this Resource Manager Configuration- See Also:
ResourceManagerConfiguration.setDescription(String)
-
getVendor
public java.lang.String getVendor()
Description copied from interface:ResourceManagerConfigurationGets the vendor of this Resource Manager Configuration.- Specified by:
getVendorin interfaceResourceManagerConfiguration- Returns:
- the vendor of this Resource Manager Configuration, as a String
- See Also:
ResourceManagerConfiguration.getVendor()
-
setVendor
public void setVendor(java.lang.String aVendor)
Description copied from interface:ResourceManagerConfigurationSets the vendor of this Resource Manager Configuration.- Specified by:
setVendorin interfaceResourceManagerConfiguration- Parameters:
aVendor- the vendor of this Resource Manager Configuration, as a String, null if none has been specified.- See Also:
ResourceManagerConfiguration.setVendor(String)
-
getImports
public Import[] getImports()
Description copied from interface:ResourceManagerConfigurationGets the imports declared by this Resource Manager Configuration.- Specified by:
getImportsin interfaceResourceManagerConfiguration- Returns:
- an array of imports declared by this Resource Manager Configuration.
-
setImports
public void setImports(Import[] aImports)
Description copied from interface:ResourceManagerConfigurationSets the imports declared by this Resource Manager Configuration.- Specified by:
setImportsin interfaceResourceManagerConfiguration- Parameters:
aImports- an array of imports declared by this Resource Manager Configuration.
-
getExternalResources
public ExternalResourceDescription[] getExternalResources()
Description copied from interface:ResourceManagerConfigurationGets the descriptions of the external resources to be instantiated and managed by the resource manager.- Specified by:
getExternalResourcesin interfaceResourceManagerConfiguration- Returns:
- an array of
ExternalResourceDescriptionobjects that describe the external resources.
-
setExternalResources
public void setExternalResources(ExternalResourceDescription[] aDescriptions)
Description copied from interface:ResourceManagerConfigurationSets the descriptions of the external resources to be instantiated and managed by the resource manager.- Specified by:
setExternalResourcesin interfaceResourceManagerConfiguration- Parameters:
aDescriptions- an array ofExternalResourceDescriptionobjects that describe the external resources.
-
getExternalResourceBindings
public ExternalResourceBinding[] getExternalResourceBindings()
Description copied from interface:ResourceManagerConfigurationGets the bindings between an Analysis Engine'sExternalResourceDependenciesand theExternalResourceDescriptionobjects defined in this configuration.- Specified by:
getExternalResourceBindingsin interfaceResourceManagerConfiguration- Returns:
- an array of
ExternalResourceBindingobjects that bind dependencies to resources.
-
setExternalResourceBindings
public void setExternalResourceBindings(ExternalResourceBinding[] aBindings)
Description copied from interface:ResourceManagerConfigurationSets the bindings between an Analysis Engine'sExternalResourceDependenciesand theExternalResourceDescriptionobjects defined in this configuration.- Specified by:
setExternalResourceBindingsin interfaceResourceManagerConfiguration- Parameters:
aBindings- an array ofExternalResourceBindingobjects that bind dependencies to resources.
-
addExternalResource
public void addExternalResource(ExternalResourceDescription aExternalResourceDescription)
Description copied from interface:ResourceManagerConfigurationAdds a External Resource to this configuration- Specified by:
addExternalResourcein interfaceResourceManagerConfiguration- Parameters:
aExternalResourceDescription- the ExternalResourceDescription to add
-
addExternalResourceBinding
public void addExternalResourceBinding(ExternalResourceBinding aExternalResourceBinding)
Description copied from interface:ResourceManagerConfigurationAdds a External ResourceBinding to this configuration- Specified by:
addExternalResourceBindingin interfaceResourceManagerConfiguration- Parameters:
aExternalResourceBinding- the ExternalResourceBinding to add
-
removeExternalResource
public void removeExternalResource(ExternalResourceDescription aExternalResourceDescription)
Description copied from interface:ResourceManagerConfigurationRemoves an ExternalResource from this configuration.- Specified by:
removeExternalResourcein interfaceResourceManagerConfiguration- Parameters:
aExternalResourceDescription- the ExternalResourceDescription to remove (must be == with an ExternalResourceDescription in this collection, or this method will do nothing).
-
removeExternalResourceBinding
public void removeExternalResourceBinding(ExternalResourceBinding aExternalResourceBinding)
Description copied from interface:ResourceManagerConfigurationRemoves an ExternalResourceBinding from this configuration.- Specified by:
removeExternalResourceBindingin interfaceResourceManagerConfiguration- Parameters:
aExternalResourceBinding- the ExternalResourceBinding to remove (must be == with an ExternalResourceBinding in this collection, or this method will do nothing).
-
getImport
@Deprecated public Import getImport()
Deprecated.Description copied from interface:ResourceManagerConfigurationGets the import declared by this Resource Manager Configuration, if any.- Specified by:
getImportin 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 public void setImport(Import aImport)
Deprecated.Description copied from interface:ResourceManagerConfigurationSets the import declared by this Resource Manager Configuration, if any.- Specified by:
setImportin 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
public void resolveImports() throws InvalidXMLExceptionDescription copied from interface:ResourceManagerConfigurationResolves any import declarations in this resource manager configuration, adding the imported external resources and external resource bindings directly onto this ResourceManagerConfiguration'sexternalResourcesandexternalResourceBindingslists.- Specified by:
resolveImportsin interfaceResourceManagerConfiguration- Throws:
InvalidXMLException- if either the import target does not exist or is invalid
-
resolveImports
public void resolveImports(ResourceManager aResourceManager) throws InvalidXMLException
Description copied from interface:ResourceManagerConfigurationResolves any import declarations in this resource manager configuration, adding the imported external resources and external resource bindings directly onto this ResourceManagerConfiguration'sexternalResourcesandexternalResourceBindingslists.- Specified by:
resolveImportsin 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(java.util.Collection<java.lang.String> aAlreadyImportedURLs, ResourceManager aResourceManager) throws InvalidXMLExceptionDescription copied from interface:ResourceManagerConfigurationResolves any import declarations in this resource manager configuration, adding the imported external resources and external resource bindings directly onto this ResourceManagerConfiguration'sexternalResourcesandexternalResourceBindingslists.This version is used internally to resolve nested imports.
- Specified by:
resolveImportsin 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
-
resolveImport
private void resolveImport(java.net.URL aURL, java.util.Collection<java.lang.String> aAlreadyImportedURLs, java.util.Collection<ExternalResourceDescription> aResultResources, java.util.Collection<ExternalResourceBinding> aResultBindings, ResourceManager aResourceManager) throws InvalidXMLException, java.io.IOException- Throws:
InvalidXMLExceptionjava.io.IOException
-
writePropertyAsElement
protected void writePropertyAsElement(PropertyXmlInfo aPropInfo, java.lang.String aNamespace) throws org.xml.sax.SAXException
Description copied from class:MetaDataObject_implUtility method used to write a property out as an XML element.- Overrides:
writePropertyAsElementin classMetaDataObject_impl- Parameters:
aPropInfo- information on how to represent the property in XMLaNamespace- XML namespace URI for this object representation- Throws:
org.xml.sax.SAXException- -
-
getXmlizationInfo
protected XmlizationInfo getXmlizationInfo()
Description copied from class:MetaDataObject_implTo be implemented by subclasses to return information describing how to represent this object in XML.- Specified by:
getXmlizationInfoin classMetaDataObject_impl- Returns:
- information defining this object's XML representation
-
-