public class ResourceManagerConfiguration_impl extends MetaDataObject_impl implements ResourceManagerConfiguration
MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.Serializer
serialContext
Constructor and Description |
---|
ResourceManagerConfiguration_impl() |
Modifier and Type | Method and Description |
---|---|
void |
addExternalResource(ExternalResourceDescription aExternalResourceDescription)
Adds a External Resource to this configuration
|
void |
addExternalResourceBinding(ExternalResourceBinding aExternalResourceBinding)
Adds a External ResourceBinding to this configuration
|
String |
getDescription()
Gets the description of this Resource Manager Configuration.
|
ExternalResourceBinding[] |
getExternalResourceBindings()
Gets the bindings between an Analysis Engine's
ExternalResourceDependencies and
the ExternalResourceDescription objects defined in this
configuration. |
ExternalResourceDescription[] |
getExternalResources()
Gets the descriptions of the external resources to be instantiated and managed by the resource
manager.
|
Import |
getImport()
Deprecated.
|
Import[] |
getImports()
Gets the imports declared by this Resource Manager Configuration.
|
String |
getName()
Gets the name of this Resource Manager Configuration.
|
String |
getVendor()
Gets the vendor of this Resource Manager Configuration.
|
String |
getVersion()
Gets the version number of this Resource Manager Configuration.
|
protected XmlizationInfo |
getXmlizationInfo()
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 |
resolveImports()
Resolves any import declarations in this resource manager configuration, adding the imported
external resources and external resource bindings directly onto this
ResourceManagerConfiguration's
externalResources and
externalResourceBindings 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's
externalResources and
externalResourceBindings 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's
externalResources and
externalResourceBindings lists. |
void |
setDescription(String aDescription)
Sets the description of this Resource Manager Configuration.
|
void |
setExternalResourceBindings(ExternalResourceBinding[] aBindings)
Sets the bindings between an Analysis Engine's
ExternalResourceDependencies and
the ExternalResourceDescription 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 |
setImport(Import aImport)
Deprecated.
|
void |
setImports(Import[] aImports)
Sets the imports declared by this Resource Manager Configuration.
|
void |
setName(String aName)
Sets the name of this Resource Manager Configuration.
|
void |
setVendor(String aVendor)
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.
|
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
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
public String getName()
ResourceManagerConfiguration
getName
in interface ResourceManagerConfiguration
ResourceManagerConfiguration.getName()
public void setName(String aName)
ResourceManagerConfiguration
setName
in interface ResourceManagerConfiguration
aName
- the name of this Resource Manager ConfigurationResourceManagerConfiguration.setName(String)
public String getVersion()
ResourceManagerConfiguration
getVersion
in interface ResourceManagerConfiguration
ResourceManagerConfiguration.getVersion()
public void setVersion(String aVersion)
ResourceManagerConfiguration
setVersion
in interface ResourceManagerConfiguration
aVersion
- the version number of this Resource Manager Configuration, as a StringResourceManagerConfiguration.setVersion(String)
public String getDescription()
ResourceManagerConfiguration
getDescription
in interface ResourceManagerConfiguration
ResourceManagerConfiguration.getDescription()
public void setDescription(String aDescription)
ResourceManagerConfiguration
setDescription
in interface ResourceManagerConfiguration
aDescription
- the description of this Resource Manager ConfigurationResourceManagerConfiguration.setDescription(String)
public String getVendor()
ResourceManagerConfiguration
getVendor
in interface ResourceManagerConfiguration
ResourceManagerConfiguration.getVendor()
public void setVendor(String aVendor)
ResourceManagerConfiguration
setVendor
in interface ResourceManagerConfiguration
aVendor
- the vendor of this Resource Manager Configuration, as a String, null if none has been
specified.ResourceManagerConfiguration.setVendor(String)
public Import[] getImports()
ResourceManagerConfiguration
getImports
in interface ResourceManagerConfiguration
public void setImports(Import[] aImports)
ResourceManagerConfiguration
setImports
in interface ResourceManagerConfiguration
aImports
- an array of imports declared by this Resource Manager Configuration.public ExternalResourceDescription[] getExternalResources()
ResourceManagerConfiguration
getExternalResources
in interface ResourceManagerConfiguration
ExternalResourceDescription
objects that
describe the external resources.public void setExternalResources(ExternalResourceDescription[] aDescriptions)
ResourceManagerConfiguration
setExternalResources
in interface ResourceManagerConfiguration
aDescriptions
- an array of ExternalResourceDescription
objects that
describe the external resources.public ExternalResourceBinding[] getExternalResourceBindings()
ResourceManagerConfiguration
ExternalResourceDependencies
and
the ExternalResourceDescription
objects defined in this
configuration.getExternalResourceBindings
in interface ResourceManagerConfiguration
ExternalResourceBinding
objects
that bind dependencies to resources.public void setExternalResourceBindings(ExternalResourceBinding[] aBindings)
ResourceManagerConfiguration
ExternalResourceDependencies
and
the ExternalResourceDescription
objects defined in this
configuration.setExternalResourceBindings
in interface ResourceManagerConfiguration
aBindings
- an array of ExternalResourceBinding
objects
that bind dependencies to resources.public void addExternalResource(ExternalResourceDescription aExternalResourceDescription)
ResourceManagerConfiguration
addExternalResource
in interface ResourceManagerConfiguration
aExternalResourceDescription
- the ExternalResourceDescription to addpublic void addExternalResourceBinding(ExternalResourceBinding aExternalResourceBinding)
ResourceManagerConfiguration
addExternalResourceBinding
in interface ResourceManagerConfiguration
aExternalResourceBinding
- the ExternalResourceBinding to addpublic void removeExternalResource(ExternalResourceDescription aExternalResourceDescription)
ResourceManagerConfiguration
removeExternalResource
in interface ResourceManagerConfiguration
aExternalResourceDescription
- the ExternalResourceDescription to remove (must be == with an
ExternalResourceDescription in this collection, or this method will do nothing).public void removeExternalResourceBinding(ExternalResourceBinding aExternalResourceBinding)
ResourceManagerConfiguration
removeExternalResourceBinding
in interface ResourceManagerConfiguration
aExternalResourceBinding
- the ExternalResourceBinding to remove (must be == with an ExternalResourceBinding in
this collection, or this method will do nothing).@Deprecated public Import getImport()
ResourceManagerConfiguration.getImport()
ResourceManagerConfiguration
getImport
in interface ResourceManagerConfiguration
@Deprecated public void setImport(Import aImport)
ResourceManagerConfiguration.setImport(Import)
ResourceManagerConfiguration
setImport
in interface ResourceManagerConfiguration
aImport
- an object that defines how to locate an external XML file defining the resource
manager configuration. Null indicates that there is no import.public void resolveImports() throws InvalidXMLException
ResourceManagerConfiguration
externalResources
and
externalResourceBindings
lists.resolveImports
in interface ResourceManagerConfiguration
InvalidXMLException
- if either the import target does not exist or is invalidpublic void resolveImports(ResourceManager aResourceManager) throws InvalidXMLException
ResourceManagerConfiguration
externalResources
and
externalResourceBindings
lists.resolveImports
in interface ResourceManagerConfiguration
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 the
ResourceManager.setDataPath(String)
method.InvalidXMLException
- if either the import target does not exist or is invalidpublic void resolveImports(Collection<String> aAlreadyImportedURLs, ResourceManager aResourceManager) throws InvalidXMLException
ResourceManagerConfiguration
externalResources
and
externalResourceBindings
lists.
This version is used internally to resolve nested imports.
resolveImports
in interface ResourceManagerConfiguration
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 the
ResourceManager.setDataPath(String)
method.InvalidXMLException
- if either the import target does not exist or is invalidprotected void writePropertyAsElement(PropertyXmlInfo aPropInfo, String aNamespace) throws SAXException
MetaDataObject_impl
writePropertyAsElement
in class MetaDataObject_impl
aPropInfo
- information on how to represent the property in XMLaNamespace
- XML namespace URI for this object
representationSAXException
- -protected XmlizationInfo getXmlizationInfo()
MetaDataObject_impl
getXmlizationInfo
in class MetaDataObject_impl
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.