public class StripWordAttributesFilter extends ExtendedXMLFilterImpl
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
abbrExpan
Holds abbr expan= attribute value.
|
protected java.util.Set<java.lang.String> |
regIDSet
Holds set of word IDs of words with defined reg= attribute.
|
Constructor and Description |
---|
StripWordAttributesFilter(org.xml.sax.XMLReader reader)
Create filter.
|
Modifier and Type | Method and Description |
---|---|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Handle end of an element.
|
java.util.Set<java.lang.String> |
getRegIDSet()
Get set of word IDs with defined reg= attribute.
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Handle start of an XML element.
|
removeAttribute, setAttributeValue, setAttributeValue, setAttributeValue
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
protected java.lang.String abbrExpan
protected java.util.Set<java.lang.String> regIDSet
public StripWordAttributesFilter(org.xml.sax.XMLReader reader)
reader
- XML input reader to which this filter applies.public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.XMLFilterImpl
uri
- The XML element's URI.localName
- The XML element's local name.qName
- The XML element's qname.atts
- The XML element's attributes.org.xml.sax.SAXException
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.XMLFilterImpl
uri
- The XML element's URI.localName
- The XML element's local name.qName
- The XML element's qname.org.xml.sax.SAXException
public java.util.Set<java.lang.String> getRegIDSet()