Class TypeOrFeature_impl
java.lang.Object
org.apache.uima.resource.metadata.impl.MetaDataObject_impl
org.apache.uima.analysis_engine.impl.TypeOrFeature_impl
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TypeOrFeature>,TypeOrFeature,MetaDataObject,XMLizable
Reference implementation of
TypeOrFeature.- 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 TypeMethodDescriptionvoidbuildFromXMLElement(Element aElement, XMLParser aParser, XMLParser.ParsingOptions aOptions) Overridden to provide custom XML representation.intcompareTo(TypeOrFeature obj) booleanDetermines if this object is equal to another.getName()Gets the fully-qualified Type or Feature name.protected XmlizationInfoTo be implemented by subclasses to return information describing how to represent this object in XML.inthashCode()Gets the hash code for this object.booleanFor Type references, this method determines whether this reference should be considered to also refer to all features of the Type that are known to the annotator.booleanisType()Gets whether this object refers to a Type or to a Feature.voidsetAllAnnotatorFeatures(boolean aAllAnnotatorFeatures) For Type references, sets whether this reference should be considered to also refer to all features of the Type that are known to the annotator.voidSets the fully-qualified Type or Feature name.voidsetType(boolean aType) Sets whether this object refers to a Type or to a Feature.voidtoXML(ContentHandler aContentHandler, boolean aWriteDefaultNamespaceAttribute) Overridden to provide custom XML representation.voidtoXMLinner(boolean aWriteDefaultNamespaceAttribute) Methods inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
buildFromXMLElement, clone, getAdditionalAttributes, getAttributeClass, getAttributeValue, getInfoset, getMatchingNode, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSerialContext, getSourceUrl, getSourceUrlString, getWrapperClass, getXMLAttributes, isModifiable, listAttributes, readArrayPropertyValueFromXMLElement, readMapPropertyFromXml, readPropertyValueFromXMLElement, readUnknownPropertyValueFromXMLElement, resolveSettings, setAttributeValue, setInfoset, setSourceUrl, setSourceUrlIfNull, toString, 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, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrlMethods inherited from interface org.apache.uima.util.XMLizable
buildFromXMLElement, toXML, toXML, toXML
-
Constructor Details
-
TypeOrFeature_impl
public TypeOrFeature_impl()
-
-
Method Details
-
isType
public boolean isType()Description copied from interface:TypeOrFeatureGets whether this object refers to a Type or to a Feature.- Specified by:
isTypein interfaceTypeOrFeature- Returns:
- true if Type, false if Feature
- See Also:
-
setType
public void setType(boolean aType) Description copied from interface:TypeOrFeatureSets whether this object refers to a Type or to a Feature.- Specified by:
setTypein interfaceTypeOrFeature- Parameters:
aType- true if Type, false if Feature- See Also:
-
getName
Description copied from interface:TypeOrFeatureGets the fully-qualified Type or Feature name.- Specified by:
getNamein interfaceTypeOrFeature- Returns:
- the fully-qualified name
- See Also:
-
setName
Description copied from interface:TypeOrFeatureSets the fully-qualified Type or Feature name.- Specified by:
setNamein interfaceTypeOrFeature- Parameters:
aName- the fully-qualified name- See Also:
-
isAllAnnotatorFeatures
public boolean isAllAnnotatorFeatures()Description copied from interface:TypeOrFeatureFor Type references, this method determines whether this reference should be considered to also refer to all features of the Type that are known to the annotator. This field is not used for Feature references.- Specified by:
isAllAnnotatorFeaturesin interfaceTypeOrFeature- Returns:
- true if this is a reference to all features, false if it is only a reference to the type
- See Also:
-
setAllAnnotatorFeatures
public void setAllAnnotatorFeatures(boolean aAllAnnotatorFeatures) Description copied from interface:TypeOrFeatureFor Type references, sets whether this reference should be considered to also refer to all features of the Type that are known to the annotator. This field is not used for Feature references.- Specified by:
setAllAnnotatorFeaturesin interfaceTypeOrFeature- Parameters:
aAllAnnotatorFeatures- true if this is a reference to all features, false if it is only a reference to the type- See Also:
-
buildFromXMLElement
public void buildFromXMLElement(Element aElement, XMLParser aParser, XMLParser.ParsingOptions aOptions) throws InvalidXMLException Overridden to provide custom XML representation.- Specified by:
buildFromXMLElementin interfaceXMLizable- Overrides:
buildFromXMLElementin classMetaDataObject_impl- Parameters:
aElement- the XML element that represents this object.aParser- a reference to the UIMAXMLParser. TheXMLParser.buildObject(Element)method can be used to construct sub-objects.aOptions- option settings- Throws:
InvalidXMLException- if the input XML element does not specify a valid object- See Also:
-
toXML
public void toXML(ContentHandler aContentHandler, boolean aWriteDefaultNamespaceAttribute) throws SAXException Overridden to provide custom XML representation.- Specified by:
toXMLin interfaceXMLizable- Overrides:
toXMLin classMetaDataObject_impl- Parameters:
aContentHandler- the content handler to which this object will write events that describe its XML representation.aWriteDefaultNamespaceAttribute- whether the namespace of this element should be written as the default namespace. This should be done only for the root element, and it defaults to false.- Throws:
SAXException- pass thru- See Also:
-
toXMLinner
- Throws:
SAXException
-
compareTo
- Specified by:
compareToin interfaceComparable<TypeOrFeature>- 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
- See Also:
-
hashCode
public int hashCode()Description copied from class:MetaDataObject_implGets the hash code for this object. The hash codes of two NameClassPairsxandymust be equal ifx.equals(y)returns true;- Overrides:
hashCodein classMetaDataObject_impl- Returns:
- the hash code for this object
-
equals
Description copied from class:MetaDataObject_implDetermines if this object is equal to another. Two MetaDataObjects are equivalent if they share the same attributes and the same values for those attributes.- Specified by:
equalsin interfaceMetaDataObject- Overrides:
equalsin classMetaDataObject_impl- Parameters:
obj- object with which to compare this object- Returns:
- true if and only if this object is equal to
aObj
-