Class CpeComponentDescriptorImpl
java.lang.Object
org.apache.uima.resource.metadata.impl.MetaDataObject_impl
org.apache.uima.collection.impl.metadata.cpe.CpeComponentDescriptorImpl
- All Implemented Interfaces:
Serializable,Cloneable,CpeComponentDescriptor,MetaDataObject,XMLizable
public class CpeComponentDescriptorImpl
extends MetaDataObject_impl
implements CpeComponentDescriptor
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAbsoluteUrl(ResourceManager aResourceManager) Returns the absolute URL where the component descriptor is located.Gets the Import object that declares where the component descriptor is located.Returns component's descriptor file pathprotected XmlizationInfoTo be implemented by subclasses to return information describing how to represent this object in XML.voidSets the Import object that declares where the component descriptor is located.voidsetInclude(CpeInclude aInclude) Sets component's descriptor file pathMethods 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, writePropertyAsElementMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.uima.resource.metadata.MetaDataObject
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrlMethods inherited from interface org.apache.uima.util.XMLizable
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
-
Constructor Details
-
CpeComponentDescriptorImpl
public CpeComponentDescriptorImpl()
-
-
Method Details
-
setInclude
Description copied from interface:CpeComponentDescriptorSets component's descriptor file path- Specified by:
setIncludein interfaceCpeComponentDescriptor- Parameters:
aInclude- -CpeIncludecontaining file path
-
getInclude
Description copied from interface:CpeComponentDescriptorReturns component's descriptor file path- Specified by:
getIncludein interfaceCpeComponentDescriptor- Returns:
CpeInclude
-
getImport
Description copied from interface:CpeComponentDescriptorGets the Import object that declares where the component descriptor is located. Import objects support locating the component descriptor either using a path that's relative to the CPE descriptor's location ("import by location") or using the classpath/datapath ("import by name").- Specified by:
getImportin interfaceCpeComponentDescriptor- Returns:
- the import, null if none
-
setImport
Description copied from interface:CpeComponentDescriptorSets the Import object that declares where the component descriptor is located. Import objects support locating the component descriptor either using a path that's relative to the CPE descriptor's location ("import by location") or using the classpath/datapath ("import by name").- Specified by:
setImportin interfaceCpeComponentDescriptor- Parameters:
aImport- the import, null if none
-
findAbsoluteUrl
Description copied from interface:CpeComponentDescriptorReturns the absolute URL where the component descriptor is located. This will use either the include or import property, whichever is specified.- Specified by:
findAbsoluteUrlin interfaceCpeComponentDescriptor- Parameters:
aResourceManager- resource manager to use to do import-by-name lookups- Returns:
- the absolute URL of the component descriptor
- Throws:
ResourceConfigurationException- if an import could not be resolved- See Also:
-
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
-