|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.xml.sax.helpers.XMLFilterImpl
edu.northwestern.at.utils.xml.ExtendedXMLFilterImpl
edu.northwestern.at.morphadorner.AddWordAttributesFilter
public class AddWordAttributesFilter
Filter to add word attributes to adorned file.
| Field Summary | |
|---|---|
protected boolean |
outputNonredundantAttributesOnly
True to output non-redundant attributes only. |
protected boolean |
outputNonredundantTokenAttribute
True to output non-redundant token attributes only. |
protected boolean |
outputSentenceNumber
True to output sentence number attributes. |
protected boolean |
outputWhitespace
True to output whitespace elements. |
protected boolean |
outputWordNumber
True to output word number attributes. |
protected boolean |
outputWordOrdinal
True to output word ordinal attributes. |
protected ExtendedAdornedWordFilter |
wordInfoFilter
ExtendedAdornedWordFilter providing word attribute information. |
| Constructor Summary | |
|---|---|
AddWordAttributesFilter(org.xml.sax.XMLReader reader,
ExtendedAdornedWordFilter wordInfoFilter)
Create filter. |
|
| Method Summary | |
|---|---|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Handle end of an element. |
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. |
| Methods inherited from class edu.northwestern.at.utils.xml.ExtendedXMLFilterImpl |
|---|
removeAttribute, setAttributeValue, setAttributeValue, setAttributeValue |
| 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 |
| Field Detail |
|---|
protected ExtendedAdornedWordFilter wordInfoFilter
protected boolean outputNonredundantAttributesOnly
protected boolean outputNonredundantTokenAttribute
protected boolean outputWhitespace
protected boolean outputWordNumber
protected boolean outputSentenceNumber
protected boolean outputWordOrdinal
| Constructor Detail |
|---|
public AddWordAttributesFilter(org.xml.sax.XMLReader reader,
ExtendedAdornedWordFilter wordInfoFilter)
reader - XML input reader to which this filter applies.wordInfoFilter - ExtendedAdornedWordFilter with word information.| Method Detail |
|---|
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.ContentHandlerstartElement in class org.xml.sax.helpers.XMLFilterImpluri - 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.ContentHandlerendElement in class org.xml.sax.helpers.XMLFilterImpluri - The XML element's URI.localName - The XML element's local name.qName - The XML element's qname.
org.xml.sax.SAXException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||