public class ResourceManagerConfiguration_impl extends MetaDataObject_impl implements ResourceManagerConfiguration
MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.SerializerserialContext| 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, writeMapPropertyToXmlfinalize, getClass, notify, notifyAll, wait, wait, waitclone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrlbuildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXMLpublic String getName()
ResourceManagerConfigurationgetName in interface ResourceManagerConfigurationResourceManagerConfiguration.getName()public void setName(String aName)
ResourceManagerConfigurationsetName in interface ResourceManagerConfigurationaName - the name of this Resource Manager ConfigurationResourceManagerConfiguration.setName(String)public String getVersion()
ResourceManagerConfigurationgetVersion in interface ResourceManagerConfigurationResourceManagerConfiguration.getVersion()public void setVersion(String aVersion)
ResourceManagerConfigurationsetVersion in interface ResourceManagerConfigurationaVersion - the version number of this Resource Manager Configuration, as a StringResourceManagerConfiguration.setVersion(String)public String getDescription()
ResourceManagerConfigurationgetDescription in interface ResourceManagerConfigurationResourceManagerConfiguration.getDescription()public void setDescription(String aDescription)
ResourceManagerConfigurationsetDescription in interface ResourceManagerConfigurationaDescription - the description of this Resource Manager ConfigurationResourceManagerConfiguration.setDescription(String)public String getVendor()
ResourceManagerConfigurationgetVendor in interface ResourceManagerConfigurationResourceManagerConfiguration.getVendor()public void setVendor(String aVendor)
ResourceManagerConfigurationsetVendor in interface ResourceManagerConfigurationaVendor - the vendor of this Resource Manager Configuration, as a String, null if none has been
specified.ResourceManagerConfiguration.setVendor(String)public Import[] getImports()
ResourceManagerConfigurationgetImports in interface ResourceManagerConfigurationpublic void setImports(Import[] aImports)
ResourceManagerConfigurationsetImports in interface ResourceManagerConfigurationaImports - an array of imports declared by this Resource Manager Configuration.public ExternalResourceDescription[] getExternalResources()
ResourceManagerConfigurationgetExternalResources in interface ResourceManagerConfigurationExternalResourceDescription objects that
describe the external resources.public void setExternalResources(ExternalResourceDescription[] aDescriptions)
ResourceManagerConfigurationsetExternalResources in interface ResourceManagerConfigurationaDescriptions - an array of ExternalResourceDescription objects that
describe the external resources.public ExternalResourceBinding[] getExternalResourceBindings()
ResourceManagerConfigurationExternalResourceDependencies and
the ExternalResourceDescription objects defined in this
configuration.getExternalResourceBindings in interface ResourceManagerConfigurationExternalResourceBinding objects
that bind dependencies to resources.public void setExternalResourceBindings(ExternalResourceBinding[] aBindings)
ResourceManagerConfigurationExternalResourceDependencies and
the ExternalResourceDescription objects defined in this
configuration.setExternalResourceBindings in interface ResourceManagerConfigurationaBindings - an array of ExternalResourceBinding objects
that bind dependencies to resources.public void addExternalResource(ExternalResourceDescription aExternalResourceDescription)
ResourceManagerConfigurationaddExternalResource in interface ResourceManagerConfigurationaExternalResourceDescription - the ExternalResourceDescription to addpublic void addExternalResourceBinding(ExternalResourceBinding aExternalResourceBinding)
ResourceManagerConfigurationaddExternalResourceBinding in interface ResourceManagerConfigurationaExternalResourceBinding - the ExternalResourceBinding to addpublic void removeExternalResource(ExternalResourceDescription aExternalResourceDescription)
ResourceManagerConfigurationremoveExternalResource in interface ResourceManagerConfigurationaExternalResourceDescription - the ExternalResourceDescription to remove (must be == with an
ExternalResourceDescription in this collection, or this method will do nothing).public void removeExternalResourceBinding(ExternalResourceBinding aExternalResourceBinding)
ResourceManagerConfigurationremoveExternalResourceBinding in interface ResourceManagerConfigurationaExternalResourceBinding - the ExternalResourceBinding to remove (must be == with an ExternalResourceBinding in
this collection, or this method will do nothing).@Deprecated public Import getImport()
ResourceManagerConfigurationgetImport in interface ResourceManagerConfigurationResourceManagerConfiguration.getImport()@Deprecated public void setImport(Import aImport)
ResourceManagerConfigurationsetImport in interface ResourceManagerConfigurationaImport - an object that defines how to locate an external XML file defining the resource
manager configuration. Null indicates that there is no import.ResourceManagerConfiguration.setImport(org.apache.uima.resource.metadata.Import)public void resolveImports()
throws InvalidXMLException
ResourceManagerConfigurationexternalResources and
externalResourceBindings lists.resolveImports in interface ResourceManagerConfigurationInvalidXMLException - if either the import target does not exist or is invalidpublic void resolveImports(ResourceManager aResourceManager) throws InvalidXMLException
ResourceManagerConfigurationexternalResources and
externalResourceBindings lists.resolveImports in interface ResourceManagerConfigurationaResourceManager - 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
ResourceManagerConfigurationexternalResources and
externalResourceBindings lists.
This version is used internally to resolve nested imports.
resolveImports in interface ResourceManagerConfigurationaAlreadyImportedURLs - 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_implwritePropertyAsElement in class MetaDataObject_implaPropInfo - information on how to represent the property in XMLaNamespace - XML namespace URI for this object
representationSAXException - -protected XmlizationInfo getXmlizationInfo()
MetaDataObject_implgetXmlizationInfo in class MetaDataObject_implCopyright © 2018. All rights reserved.