public class TypeOrFeature_impl extends MetaDataObject_impl implements TypeOrFeature
TypeOrFeature.MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.SerializerserialContext| 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, writePropertyAsElementfinalize, getClass, notify, notifyAll, wait, wait, waitclone, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrlbuildFromXMLElement, toXML, toXML, toXMLpublic boolean isType()
TypeOrFeatureisType in interface TypeOrFeatureTypeOrFeature.isType()public void setType(boolean aType)
TypeOrFeaturesetType in interface TypeOrFeatureaType - true if Type, false if FeatureTypeOrFeature.setType(boolean)public String getName()
TypeOrFeaturegetName in interface TypeOrFeatureTypeOrFeature.getName()public void setName(String aName)
TypeOrFeaturesetName in interface TypeOrFeatureaName - the fully-qualified nameTypeOrFeature.setName(java.lang.String)public boolean isAllAnnotatorFeatures()
TypeOrFeatureisAllAnnotatorFeatures in interface TypeOrFeatureTypeOrFeature.isAllAnnotatorFeatures()public void setAllAnnotatorFeatures(boolean aAllAnnotatorFeatures)
TypeOrFeaturesetAllAnnotatorFeatures in interface TypeOrFeatureaAllAnnotatorFeatures - 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 XMLizablebuildFromXMLElement in class MetaDataObject_implaElement - 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 XMLizabletoXML in class MetaDataObject_implaContentHandler - 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
SAXExceptionpublic int compareTo(TypeOrFeature obj)
compareTo in interface Comparable<TypeOrFeature>Comparable.compareTo(java.lang.Object)protected XmlizationInfo getXmlizationInfo()
MetaDataObject_implgetXmlizationInfo in class MetaDataObject_implMetaDataObject_impl.getXmlizationInfo()public int hashCode()
MetaDataObject_implx and
y must be equal if x.equals(y) returns true;hashCode in class MetaDataObject_implpublic boolean equals(Object obj)
MetaDataObject_implequals in interface MetaDataObjectequals in class MetaDataObject_implobj - object with which to compare this objectaObjCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.