|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.castor.xmlctf.xmldiff.xml.XMLContentHandler
public class XMLContentHandler
A ContentHandler implementation that builds a tree of XMLNodes.
Constructor Summary | |
---|---|
XMLContentHandler()
Creates a new XMLBuilder. |
Method Summary | |
---|---|
void |
characters(char[] chars,
int start,
int length)
Creates a new text node from incoming characters. |
void |
endDocument()
Signals the end of the document. |
void |
endElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName)
Signals the end of an Element. |
void |
endPrefixMapping(java.lang.String prefix)
Signals the end of prefix mapping. |
Root |
getRoot()
Returns the Root node. |
void |
ignorableWhitespace(char[] chars,
int start,
int length)
Ignores ignorable whitespace. |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Creates a new Processing Instruction node. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Configures the Locator we will use. |
void |
skippedEntity(java.lang.String name)
Gives notification about a skipped Entity during XML parsing. |
void |
startDocument()
Signals the beginning of the document. |
void |
startElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName,
org.xml.sax.Attributes atts)
Signals the beginning of an Element node. |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
Begins the scope of a prefix-URI Namespace mapping. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLContentHandler()
Method Detail |
---|
public void characters(char[] chars, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
chars
- The character array containing the XML contentstart
- First index of character for our new Text nodelength
- count of characters for our Text node.
org.xml.sax.SAXException
- neverpublic void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
- neverpublic void endElement(java.lang.String uri, java.lang.String name, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
uri
- The namespace URIname
- the local name of the element.qName
- the qualified naem of the element
org.xml.sax.SAXException
- if we have a mismatched end element tagpublic void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
endPrefixMapping
in interface org.xml.sax.ContentHandler
prefix
- The namespace prefix mapping that is ending
org.xml.sax.SAXException
- neverpublic Root getRoot()
public void ignorableWhitespace(char[] chars, int start, int length) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.ContentHandler
chars
- The character array containing the XML contentstart
- First index of the ignorable whitespacelength
- count of characters for the ignorable whitespace
org.xml.sax.SAXException
- neverpublic void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.ContentHandler
target
- the target of the processing instructiondata
- the content of the processing instruction
org.xml.sax.SAXException
- neverpublic void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
locator
- the Locator used by this DocumentHandler.public void skippedEntity(java.lang.String name)
skippedEntity
in interface org.xml.sax.ContentHandler
name
- the name of the skipped entity.public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
- neverpublic void startElement(java.lang.String uri, java.lang.String name, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
uri
- The namespace URIname
- the local name of the element.qName
- the qualified naem of the elementatts
- a list of attributes for this Element
org.xml.sax.SAXException
- If we are not given an element name.public void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
startPrefixMapping
in interface org.xml.sax.ContentHandler
prefix
- The namespace prefix mapping that is endinguri
- The namespace URI
org.xml.sax.SAXException
- never
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |