public class TypeOrFeature_impl extends MetaDataObject_impl implements TypeOrFeature
TypeOrFeature
.MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.Serializer
serialContext
Constructor and Description |
---|
TypeOrFeature_impl() |
Modifier and Type | Method and Description |
---|---|
void |
buildFromXMLElement(Element aElement,
XMLParser aParser,
XMLParser.ParsingOptions aOptions)
Overridden to provide custom XML representation.
|
int |
compareTo(TypeOrFeature obj) |
boolean |
equals(Object obj)
Determines if this object is equal to another.
|
String |
getName()
Gets the fully-qualified Type or Feature name.
|
protected XmlizationInfo |
getXmlizationInfo()
To be implemented by subclasses to return information describing how to represent this object
in XML.
|
int |
hashCode()
Gets the hash code for this object.
|
boolean |
isAllAnnotatorFeatures()
For 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.
|
boolean |
isType()
Gets whether this object refers to a Type or to a Feature.
|
void |
setAllAnnotatorFeatures(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.
|
void |
setName(String aName)
Sets the fully-qualified Type or Feature name.
|
void |
setType(boolean aType)
Sets whether this object refers to a Type or to a Feature.
|
void |
toXML(ContentHandler aContentHandler,
boolean aWriteDefaultNamespaceAttribute)
Overridden to provide custom XML representation.
|
void |
toXMLinner(boolean aWriteDefaultNamespaceAttribute) |
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, writePropertyAsElement
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
buildFromXMLElement, toXML, toXML, toXML
public boolean isType()
TypeOrFeature
isType
in interface TypeOrFeature
TypeOrFeature.isType()
public void setType(boolean aType)
TypeOrFeature
setType
in interface TypeOrFeature
aType
- true if Type, false if FeatureTypeOrFeature.setType(boolean)
public String getName()
TypeOrFeature
getName
in interface TypeOrFeature
TypeOrFeature.getName()
public void setName(String aName)
TypeOrFeature
setName
in interface TypeOrFeature
aName
- the fully-qualified nameTypeOrFeature.setName(java.lang.String)
public boolean isAllAnnotatorFeatures()
TypeOrFeature
isAllAnnotatorFeatures
in interface TypeOrFeature
TypeOrFeature.isAllAnnotatorFeatures()
public void setAllAnnotatorFeatures(boolean aAllAnnotatorFeatures)
TypeOrFeature
setAllAnnotatorFeatures
in interface TypeOrFeature
aAllAnnotatorFeatures
- true if this is a reference to all features, false if it is only a reference to the
typeTypeOrFeature.setAllAnnotatorFeatures(boolean)
public void buildFromXMLElement(Element aElement, XMLParser aParser, XMLParser.ParsingOptions aOptions) throws InvalidXMLException
buildFromXMLElement
in interface XMLizable
buildFromXMLElement
in class MetaDataObject_impl
aElement
- the XML element that represents this object.aParser
- a reference to the UIMA XMLParser
. The
XMLParser.buildObject(Element)
method can be used to construct sub-objects.aOptions
- option settingsInvalidXMLException
- if the input XML element does not specify a valid objectXMLizable.buildFromXMLElement(org.w3c.dom.Element,
org.apache.uima.util.XMLParser)
public void toXML(ContentHandler aContentHandler, boolean aWriteDefaultNamespaceAttribute) throws SAXException
toXML
in interface XMLizable
toXML
in class MetaDataObject_impl
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.SAXException
- pass thruXMLizable.toXML(ContentHandler)
public void toXMLinner(boolean aWriteDefaultNamespaceAttribute) throws SAXException
SAXException
public int compareTo(TypeOrFeature obj)
compareTo
in interface Comparable<TypeOrFeature>
Comparable.compareTo(java.lang.Object)
protected XmlizationInfo getXmlizationInfo()
MetaDataObject_impl
getXmlizationInfo
in class MetaDataObject_impl
MetaDataObject_impl.getXmlizationInfo()
public int hashCode()
MetaDataObject_impl
x
and
y
must be equal if x.equals(y)
returns true;hashCode
in class MetaDataObject_impl
public boolean equals(Object obj)
MetaDataObject_impl
equals
in interface MetaDataObject
equals
in class MetaDataObject_impl
obj
- object with which to compare this objectaObj
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.