public class Style_impl extends MetaDataObject_impl implements Style
MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.SerializerserialContextANNOTATION, BREAKING, TERM| Constructor and Description |
|---|
Style_impl() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildFromXMLElement(Element aElement,
XMLParser aParser,
XMLParser.ParsingOptions aOptions)
Overridden to read the name property from XML attributes.
|
String |
getAttribute(String aName)
Gets the value of an attribute with the given name.
|
Mapping[] |
getAttributeMappings()
Gets the mappings that specify which features (properties) of the annotation should be indexed,
and under which names.
|
Attribute[] |
getAttributes()
Gets the
Attributes for this style. |
String |
getName()
Gets the name of this style.
|
protected AttributesImpl |
getXMLAttributes()
Overridden to write the name property as an XML attribute.
|
protected XmlizationInfo |
getXmlizationInfo()
To be implemented by subclasses to return information describing how to represent this object
in XML.
|
void |
setAttributeMappings(Mapping[] aMappings)
Sets the mappings that specify which features (properties) of the annotation should be indexed,
and under which names.
|
void |
setAttributes(Attribute[] aAttributes)
Sets the
Attributes for this style. |
void |
setName(String aName)
Sets the name of this style.
|
buildFromXMLElement, clone, equals, getAdditionalAttributes, getAttributeClass, getAttributeValue, getInfoset, getMatchingNode, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSerialContext, getSourceUrl, getSourceUrlString, getWrapperClass, hashCode, isModifiable, listAttributes, readArrayPropertyValueFromXMLElement, readMapPropertyFromXml, readPropertyValueFromXMLElement, readUnknownPropertyValueFromXMLElement, resolveSettings, setAttributeValue, setInfoset, setSourceUrl, setSourceUrlIfNull, toString, toXML, toXML, toXML, toXML, valueIsNullOrEmptyArray, writeArrayPropertyAsElement, writeMapPropertyToXml, writePropertyAsElementpublic String getName()
StyleString.intern()ed so that they can
be compared with the == operator.public void setName(String aName)
StyleString.intern()ed so that they can
be compared with the == operator.public Attribute[] getAttributes()
StyleAttributes for this style. See the class comment for a list of defined
attributes for each style name.getAttributes in interface Stylepublic void setAttributes(Attribute[] aAttributes)
StyleAttributes for this style. See the class comment for a list of defined
attributes for each style name.setAttributes in interface StyleaAttributes - the attributes for this style.public String getAttribute(String aName)
StylegetAttribute in interface StyleaName - name of an attributepublic Mapping[] getAttributeMappings()
StylegetAttributeMappings in interface Stylepublic void setAttributeMappings(Mapping[] aMappings)
StylesetAttributeMappings in interface StyleaMappings - an array of objects that each specify a mapping from a CAS feature name to the
name under which this feature should be recorded in the index.protected AttributesImpl getXMLAttributes()
getXMLAttributes in class MetaDataObject_implMetaDataObject_impl.getXMLAttributes()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)protected XmlizationInfo getXmlizationInfo()
MetaDataObject_implgetXmlizationInfo in class MetaDataObject_implCopyright © 2006–2021 The Apache Software Foundation. All rights reserved.