|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttomp.xtcl.filter.XTFilterImpl
tomp.xml.sax.filter.FilteringSAXFilter
Field Summary | |
protected java.lang.String |
attributes
|
protected java.lang.String |
dtd
|
protected java.lang.String |
elements
|
protected java.lang.String |
errors
|
protected java.lang.String |
characters
|
protected java.lang.String |
other
|
protected java.lang.String |
pi
|
protected java.util.List |
st
|
protected java.lang.String |
topElementLocalName
|
protected java.lang.String |
uri
|
Fields inherited from class tomp.xtcl.filter.XTFilterImpl |
contentHandler, dtdHandler, entityResolver, errorHandler, lexicalHandler, locator, parent |
Constructor Summary | |
FilteringSAXFilter()
|
Method Summary | |
protected boolean |
allowedAnyElement()
|
protected boolean |
allowedAttribute(java.lang.String localName)
|
protected boolean |
allowedDTD(java.lang.String what)
|
protected boolean |
allowedElement(java.lang.String u,
java.lang.String localName)
|
protected boolean |
allowedError(java.lang.String what)
|
protected boolean |
allowedCharacters(java.lang.String what)
|
protected boolean |
allowedOther(java.lang.String what)
|
protected boolean |
allowedPI(java.lang.String what)
|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Filter an end element event. |
void |
endPrefixMapping(java.lang.String prefix)
Filter an end Namespace prefix mapping event. |
void |
error(org.xml.sax.SAXParseException e)
Filter an error event. |
void |
fatalError(org.xml.sax.SAXParseException e)
Filter a fatal error event. |
void |
characters(char[] ch,
int start,
int length)
Filter a character data event. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Filter an ignorable whitespace event. |
void |
notationDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
Filter a notation declaration event. |
protected void |
pop()
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Filter a processing instruction event. |
protected void |
push(java.lang.String n)
|
void |
setParameter(java.lang.String k,
java.lang.Object v)
|
void |
skippedEntity(java.lang.String name)
Filter a skipped entity event. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Filter a start element event. |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
Filter a start Namespace prefix mapping event. |
void |
unparsedEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String notationName)
Filter an unparsed entity declaration event. |
void |
warning(org.xml.sax.SAXParseException e)
Filter a warning event. |
Methods inherited from class tomp.xtcl.filter.XTFilterImpl |
comment, endCDATA, endDocument, endDTD, endEntity, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getLexicalHandler, getParent, getProperty, parse, parse, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setLexicalHandler, setParent, setProperty, setupParse, startCDATA, startDocument, startDTD, startEntity |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String elements
protected java.lang.String attributes
protected java.lang.String uri
protected java.lang.String errors
protected java.lang.String characters
protected java.lang.String dtd
protected java.lang.String other
protected java.lang.String pi
protected java.util.List st
protected java.lang.String topElementLocalName
Constructor Detail |
public FilteringSAXFilter()
Method Detail |
protected void push(java.lang.String n)
protected void pop()
public void setParameter(java.lang.String k, java.lang.Object v)
setParameter
in interface Parametrized
setParameter
in class XTFilterImpl
protected boolean allowedElement(java.lang.String u, java.lang.String localName)
protected boolean allowedAnyElement()
protected boolean allowedAttribute(java.lang.String localName)
protected boolean allowedCharacters(java.lang.String what)
protected boolean allowedError(java.lang.String what)
protected boolean allowedDTD(java.lang.String what)
protected boolean allowedPI(java.lang.String what)
protected boolean allowedOther(java.lang.String what)
public void notationDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException
notationDecl
in interface org.xml.sax.DTDHandler
notationDecl
in class XTFilterImpl
name
- The notation name.publicId
- The notation's public identifier, or null.systemId
- The notation's system identifier, or null.
org.xml.sax.SAXException
- The client may throw
an exception during processing.public void unparsedEntityDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId, java.lang.String notationName) throws org.xml.sax.SAXException
unparsedEntityDecl
in interface org.xml.sax.DTDHandler
unparsedEntityDecl
in class XTFilterImpl
name
- The entity name.publicId
- The entity's public identifier, or null.systemId
- The entity's system identifier, or null.notationName
- The name of the associated notation.
org.xml.sax.SAXException
- The client may throw
an exception during processing.public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
startPrefixMapping
in interface org.xml.sax.ContentHandler
startPrefixMapping
in class XTFilterImpl
prefix
- The Namespace prefix.uri
- The Namespace URI.
org.xml.sax.SAXException
- The client may throw
an exception during processing.public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
endPrefixMapping
in interface org.xml.sax.ContentHandler
endPrefixMapping
in class XTFilterImpl
prefix
- The Namespace prefix.
org.xml.sax.SAXException
- The client may throw
an exception during processing.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 XTFilterImpl
uri
- The element's Namespace URI, or the empty string.localName
- The element's local name, or the empty string.qName
- The element's qualified (prefixed) name, or the empty
string.atts
- The element's attributes.
org.xml.sax.SAXException
- The client may throw
an exception during processing.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 XTFilterImpl
uri
- The element's Namespace URI, or the empty string.localName
- The element's local name, or the empty string.qName
- The element's qualified (prefixed) name, or the empty
string.
org.xml.sax.SAXException
- The client may throw
an exception during processing.public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class XTFilterImpl
ch
- An array of characters.start
- The starting position in the array.length
- The number of characters to use from the array.
org.xml.sax.SAXException
- The client may throw
an exception during processing.public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.ContentHandler
ignorableWhitespace
in class XTFilterImpl
ch
- An array of characters.start
- The starting position in the array.length
- The number of characters to use from the array.
org.xml.sax.SAXException
- The client may throw
an exception during processing.public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.ContentHandler
processingInstruction
in class XTFilterImpl
target
- The processing instruction target.data
- The text following the target.
org.xml.sax.SAXException
- The client may throw
an exception during processing.public void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException
skippedEntity
in interface org.xml.sax.ContentHandler
skippedEntity
in class XTFilterImpl
name
- The name of the skipped entity.
org.xml.sax.SAXException
- The client may throw
an exception during processing.public void warning(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
warning
in class XTFilterImpl
e
- The warning as an exception.
org.xml.sax.SAXException
- The client may throw
an exception during processing.public void error(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
error
in class XTFilterImpl
e
- The error as an exception.
org.xml.sax.SAXException
- The client may throw
an exception during processing.public void fatalError(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
fatalError
in class XTFilterImpl
e
- The error as an exception.
org.xml.sax.SAXException
- The client may throw
an exception during processing.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |