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
Modifier and TypeFieldDescriptionThe annot type.The feature value.The style color.The style label. -
Constructor Summary
-
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
annotType
The annot type. -
styleLabel
The style label. -
styleColor
The style color. -
featureValue
The feature value.
-
-
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
-