|
||||||||||
| 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.analysis_engine.impl.TypeOrFeature_impl
public class TypeOrFeature_impl
Reference implementation of TypeOrFeature.
| Constructor Summary | |
|---|---|
TypeOrFeature_impl()
|
|
| Method Summary | |
|---|---|
void |
buildFromXMLElement(org.w3c.dom.Element aElement,
XMLParser aParser,
XMLParser.ParsingOptions aOptions)
Overridden to provide custom XML representation. |
int |
compareTo(TypeOrFeature obj)
|
boolean |
equals(java.lang.Object obj)
Determines if this object is equal to another. |
java.lang.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(java.lang.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(org.xml.sax.ContentHandler aContentHandler,
boolean aWriteDefaultNamespaceAttribute)
Overridden to provide custom XML representation. |
| 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, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl |
| Methods inherited from interface org.apache.uima.util.XMLizable |
|---|
buildFromXMLElement, toXML, toXML, toXML |
| Constructor Detail |
|---|
public TypeOrFeature_impl()
| Method Detail |
|---|
public boolean isType()
TypeOrFeature
isType in interface TypeOrFeatureTypeOrFeature.isType()public void setType(boolean aType)
TypeOrFeature
setType in interface TypeOrFeatureaType - true if Type, false if FeatureTypeOrFeature.setType(boolean)public java.lang.String getName()
TypeOrFeature
getName in interface TypeOrFeatureTypeOrFeature.getName()public void setName(java.lang.String aName)
TypeOrFeature
setName in interface TypeOrFeatureaName - the fully-qualified nameTypeOrFeature.setName(java.lang.String)public boolean isAllAnnotatorFeatures()
TypeOrFeature
isAllAnnotatorFeatures in interface TypeOrFeatureTypeOrFeature.isAllAnnotatorFeatures()public void setAllAnnotatorFeatures(boolean aAllAnnotatorFeatures)
TypeOrFeature
setAllAnnotatorFeatures 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(org.w3c.dom.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 settings
InvalidXMLException - if the input XML element does not specify a valid objectXMLizable.buildFromXMLElement(org.w3c.dom.Element,
org.apache.uima.util.XMLParser)
public void toXML(org.xml.sax.ContentHandler aContentHandler,
boolean aWriteDefaultNamespaceAttribute)
throws org.xml.sax.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.
org.xml.sax.SAXExceptionXMLizable.toXML(ContentHandler)public int compareTo(TypeOrFeature obj)
compareTo in interface java.lang.Comparable<TypeOrFeature>Comparable.compareTo(java.lang.Object)protected XmlizationInfo getXmlizationInfo()
MetaDataObject_impl
getXmlizationInfo in class MetaDataObject_implorg.apache.uima.resource.impl.MetaDataObject_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(java.lang.Object obj)
MetaDataObject_impl
equals in interface MetaDataObjectequals in class MetaDataObject_implobj - object with which to compare this object
aObj
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||