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.The feature value.The style color.The style label. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidendElement(String namespaceURI, String localName, String qName) voidstartElement(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, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-