public class Style_impl extends MetaDataObject_impl implements Style
MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.Serializer
serialContext
ANNOTATION, 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
Attribute s 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
Attribute s 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, writePropertyAsElement
public String getName()
Style
String.intern()
ed so that they can
be compared with the == operator.public void setName(String aName)
Style
String.intern()
ed so that they can
be compared with the == operator.public Attribute[] getAttributes()
Style
Attribute
s for this style. See the class comment for a list of defined
attributes for each style name.getAttributes
in interface Style
public void setAttributes(Attribute[] aAttributes)
Style
Attribute
s for this style. See the class comment for a list of defined
attributes for each style name.setAttributes
in interface Style
aAttributes
- the attributes for this style.public String getAttribute(String aName)
Style
getAttribute
in interface Style
aName
- name of an attributepublic Mapping[] getAttributeMappings()
Style
getAttributeMappings
in interface Style
public void setAttributeMappings(Mapping[] aMappings)
Style
setAttributeMappings
in interface Style
aMappings
- 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_impl
MetaDataObject_impl.getXMLAttributes()
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)
protected XmlizationInfo getXmlizationInfo()
MetaDataObject_impl
getXmlizationInfo
in class MetaDataObject_impl
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.