|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.resource.metadata.impl.MetaDataObject_impl
org.apache.uima.resource.metadata.impl.ResourceManagerConfiguration_impl
public class ResourceManagerConfiguration_impl
| Constructor Summary | |
|---|---|
ResourceManagerConfiguration_impl()
|
|
| Method Summary | |
|---|---|
void |
addExternalResource(ExternalResourceDescription aExternalResourceDescription)
Adds a External Resource to this configuration |
void |
addExternalResourceBinding(ExternalResourceBinding aExternalResourceBinding)
Adds a External ResourceBinding to this configuration |
java.lang.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. |
java.lang.String |
getName()
Gets the name of this Resource Manager Configuration. |
java.lang.String |
getVendor()
Gets the vendor of this Resource Manager Configuration. |
java.lang.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 configruation, adding the imported external resources and external resource bindings directly onto this ResourceManagerConfiguration's externalResources and
externalResourceBindings lists. |
void |
resolveImports(java.util.Collection<java.lang.String> aAlreadyImportedURLs,
ResourceManager aResourceManager)
Resolves any import declarations in this resource manager configruation, 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 configruation, adding the imported external resources and external resource bindings directly onto this ResourceManagerConfiguration's externalResources and
externalResourceBindings lists. |
void |
setDescription(java.lang.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(java.lang.String aName)
Sets the name of this Resource Manager Configuration. |
void |
setVendor(java.lang.String aVendor)
Sets the vendor of this Resource Manager Configuration. |
void |
setVersion(java.lang.String aVersion)
Sets the version number of this Resource Manager Configuration. |
protected void |
writePropertyAsElement(PropertyXmlInfo aPropInfo,
java.lang.String aNamespace,
org.xml.sax.ContentHandler aContentHandler)
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, getAttributeClass, getAttributeValue, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSourceUrl, getSourceUrlString, getWrapperClass, getXMLAttributes, hashCode, isModifiable, listAttributes, readArrayPropertyValueFromXMLElement, readMapPropertyFromXml, readPropertyValueFromXMLElement, readUnknownPropertyValueFromXMLElement, setAttributeValue, setSourceUrl, setSourceUrlIfNull, toString, toXML, toXML, toXML, toXML, 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 Detail |
|---|
public ResourceManagerConfiguration_impl()
| Method Detail |
|---|
public java.lang.String getName()
ResourceManagerConfiguration
getName in interface ResourceManagerConfigurationResourceManagerConfiguration.getName()public void setName(java.lang.String aName)
ResourceManagerConfiguration
setName in interface ResourceManagerConfigurationaName - the name of this Resource Manager ConfigurationResourceManagerConfiguration.setName(String)public java.lang.String getVersion()
ResourceManagerConfiguration
getVersion in interface ResourceManagerConfigurationResourceManagerConfiguration.getVersion()public void setVersion(java.lang.String aVersion)
ResourceManagerConfiguration
setVersion in interface ResourceManagerConfigurationaVersion - the version number of this Resource Manager Configuration, as a StringResourceManagerConfiguration.setVersion(String)public java.lang.String getDescription()
ResourceManagerConfiguration
getDescription in interface ResourceManagerConfigurationResourceManagerConfiguration.getDescription()public void setDescription(java.lang.String aDescription)
ResourceManagerConfiguration
setDescription in interface ResourceManagerConfigurationaDescription - the description of this Resource Manager ConfigurationResourceManagerConfiguration.setDescription(String)public java.lang.String getVendor()
ResourceManagerConfiguration
getVendor in interface ResourceManagerConfigurationResourceManagerConfiguration.getVendor()public void setVendor(java.lang.String aVendor)
ResourceManagerConfiguration
setVendor 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()
ResourceManagerConfiguration
getImports in interface ResourceManagerConfigurationpublic void setImports(Import[] aImports)
ResourceManagerConfiguration
setImports in interface ResourceManagerConfigurationaImports - an array of imports declared by this Resource Manager Configuration.public ExternalResourceDescription[] getExternalResources()
ResourceManagerConfiguration
getExternalResources in interface ResourceManagerConfigurationExternalResourceDescription objects that
describe the external resources.public void setExternalResources(ExternalResourceDescription[] aDescriptions)
ResourceManagerConfiguration
setExternalResources 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)
ResourceManagerConfiguration
addExternalResource in interface ResourceManagerConfigurationaExternalResourceDescription - the ExternalResourceDescription to addpublic void addExternalResourceBinding(ExternalResourceBinding aExternalResourceBinding)
ResourceManagerConfiguration
addExternalResourceBinding in interface ResourceManagerConfigurationaExternalResourceBinding - the ExternalResourceBinding to addpublic void removeExternalResource(ExternalResourceDescription aExternalResourceDescription)
ResourceManagerConfiguration
removeExternalResource 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)
ResourceManagerConfiguration
removeExternalResourceBinding 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()
ResourceManagerConfiguration
getImport in interface ResourceManagerConfigurationResourceManagerConfiguration.getImport()@Deprecated public void setImport(Import aImport)
ResourceManagerConfiguration
setImport 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 invalid
public 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 invalid
public void resolveImports(java.util.Collection<java.lang.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 invalid
protected void writePropertyAsElement(PropertyXmlInfo aPropInfo,
java.lang.String aNamespace,
org.xml.sax.ContentHandler aContentHandler)
throws org.xml.sax.SAXException
MetaDataObject_impl
writePropertyAsElement in class MetaDataObject_implaPropInfo - information on how to represent the property in XMLaNamespace - XML namespace URI for this objectaContentHandler - content handler to which this object will send events that describe its XML
representation
org.xml.sax.SAXExceptionprotected XmlizationInfo getXmlizationInfo()
MetaDataObject_impl
getXmlizationInfo in class MetaDataObject_impl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||