|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.xml.sax.filter.replacers.AbstractElementReplacer
Base class for objects implementing the ElementReplacer interface that
plug in to the Raritan ProgrammableSAXFilter to provide replace
XML tags "on the fly".
| Constructor Summary | |
AbstractElementReplacer()
|
|
AbstractElementReplacer(ElementComparator comp)
|
|
| Method Summary | |
void |
characters(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
|
void |
endPrefixMapping(java.lang.String prefix)
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
void |
initialize(org.w3c.dom.Element elem)
subclasses should override this to do XML initialization. |
boolean |
matchesData(char[] data,
int start,
int length)
Checks if the character data matches the criteria of this comparator. |
boolean |
matchesPath(java.lang.String path)
Checks if the XML tag at the specified path matches the criteria of this comparator. |
boolean |
matchesTag(java.lang.String path,
org.xml.sax.Attributes atts)
Checks if the XML tag at the specified path with given attribute list matches the criteria of this comparator. |
boolean |
needsData()
Checks if this comparator needs to see the data section to make a decision. |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
|
void |
skippedEntity(java.lang.String name)
|
void |
startDocument()
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.raritantechnologies.xml.sax.filter.ElementReplacer |
elementEnding, elementStarting |
| Constructor Detail |
public AbstractElementReplacer()
public AbstractElementReplacer(ElementComparator comp)
| Method Detail |
public boolean matchesTag(java.lang.String path,
org.xml.sax.Attributes atts)
ElementComparator
matchesTag in interface ElementComparatorpath - XML path to the element.atts - Attribute list of the element.
public boolean matchesPath(java.lang.String path)
ElementComparator
matchesPath in interface ElementComparatorpath - XML path to the element.
public boolean needsData()
ElementComparator
needsData in interface ElementComparator
public boolean matchesData(char[] data,
int start,
int length)
ElementComparator
matchesData in interface ElementComparatordata - source character array.start - start position of source characters.length - number of source characters.
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.ContentHandler
public void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
startPrefixMapping in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
endPrefixMapping in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
ignorableWhitespace in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws org.xml.sax.SAXException
processingInstruction in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void skippedEntity(java.lang.String name)
throws org.xml.sax.SAXException
skippedEntity in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionpublic void initialize(org.w3c.dom.Element elem)
initialize in interface ElementComparator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||