gate.util
Class CreoleXmlUpperCaseFilter
java.lang.Object
org.xml.sax.helpers.XMLFilterImpl
gate.util.CreoleXmlUpperCaseFilter
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler, XMLFilter, XMLReader
public class CreoleXmlUpperCaseFilter
- extends XMLFilterImpl
SAX XMLFilter implementation used when reading a creole.xml
file to ensure that all the standard creole elements and their
attribute names are converted to upper case. All the creole.xml files
built into GATE use upper case for their elements and attributes, but
historically the files have been treated case-insensitively.
Non-standard elements (which are added as features of the resource)
are untouched.
| Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
characters, endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
knownElements
private Set<String> knownElements
CreoleXmlUpperCaseFilter
public CreoleXmlUpperCaseFilter()
endElement
public void endElement(String uri,
String localName,
String name)
throws SAXException
- Process the end of an element. If the element is a standard
creole.xml element then its name is converted to upper case,
otherwise it is passed through untouched.
- Specified by:
endElement in interface ContentHandler- Overrides:
endElement in class XMLFilterImpl
- Throws:
SAXException
startElement
public void startElement(String uri,
String localName,
String name,
Attributes atts)
throws SAXException
- Process the start of an element. If the element is a standard
creole.xml element then it and all its attributes have their names
converted to upper case. Other elements are passed through
untouched.
- Specified by:
startElement in interface ContentHandler- Overrides:
startElement in class XMLFilterImpl
- Throws:
SAXException