Package org.apache.uima.tools.stylemap
Class StyleMapXmlParser
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.uima.tools.stylemap.StyleMapXmlParser
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
A simple SAX parser for Style Map XML documents. A GUI for editing style maps for the annotation
viewer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe annot type.private StringBuffer
The data.private static final String
The Constant FEATURE_VALUE_PREFIX.The feature value.The style color.The style label. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
endElement
(String namespaceURI, String localName, String qName) void
startElement
(String namespaceURI, String localName, String qName, Attributes atts) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
-
Field Details
-
FEATURE_VALUE_PREFIX
The Constant FEATURE_VALUE_PREFIX.- See Also:
-
annotType
The annot type. -
styleLabel
The style label. -
styleColor
The style color. -
featureValue
The feature value. -
data
The data.
-
-
Constructor Details
-
StyleMapXmlParser
Instantiates a new style map xml parser.- Parameters:
xmlFile
- the xml file
-
-
Method Details
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-