|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NodeParser
NodeParser is the interface used to process each XML element. NodeParsers are responsible for building up a Java object based on an XML element and all of its contents, though they will generally delegate the handling of any child XML elements to other NodeParsers.
| Method Summary | |
|---|---|
void |
addCompletedChild(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName,
java.lang.Object child)
Receives notification of the end of a delegated child element. |
void |
addText(ParseContext context,
char[] text,
int start,
int length)
Receives notification of text content of this element. |
void |
addWhitespace(ParseContext context,
char[] text,
int start,
int length)
Receives notification of ignorable whitespace. |
void |
endChildElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName)
Receives notification of the end of a child element; called only if startChildElement returned "this". |
java.lang.Object |
endElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName)
Receives notification of the end of the element. |
NodeParser |
startChildElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes attrs)
Receives notification of the start of a child element. |
void |
startElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes attrs)
Receives notification of the start of an element. |
| Method Detail |
|---|
void startElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXParseException
context - the parsing contextnamespaceURI - the namespace of the elementlocalName - the local name of the elementattrs - the attributes attached to the element
org.xml.sax.SAXParseException
java.lang.Object endElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName)
throws org.xml.sax.SAXParseException
context - the parsing contextnamespaceURI - the namespace of the elementlocalName - the local name of the element
org.xml.sax.SAXParseException
NodeParser startChildElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXParseException
addCompletedChild()
context - the parsing contextnamespaceURI - the namespace of the child elementlocalName - the local name of the child elementattrs - the attributes attached to the element
NodeParser
org.xml.sax.SAXParseExceptionendChildElement(org.apache.myfaces.trinidadinternal.share.xml.ParseContext, java.lang.String, java.lang.String),
addCompletedChild(org.apache.myfaces.trinidadinternal.share.xml.ParseContext, java.lang.String, java.lang.String, java.lang.Object)
void endChildElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName)
throws org.xml.sax.SAXParseException
startChildElement returned "this".
context - the parsing contextnamespaceURI - the namespace of the child elementlocalName - the local name of the child element
org.xml.sax.SAXParseException
void addCompletedChild(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName,
java.lang.Object child)
throws org.xml.sax.SAXParseException
startChildElement returns a value
other than "null" or "this".
context - the parsing contextnamespaceURI - the namespace of the child elementlocalName - the local name of the child elementchild - the Java object produced for that child by
its NodeParser's endElement() method.
org.xml.sax.SAXParseExceptionendElement(org.apache.myfaces.trinidadinternal.share.xml.ParseContext, java.lang.String, java.lang.String)
void addText(ParseContext context,
char[] text,
int start,
int length)
throws org.xml.sax.SAXParseException
context - the parsing contexttext - an array of charactersstart - the start position in the arraylength - the number of characters to read from the array
org.xml.sax.SAXParseException
void addWhitespace(ParseContext context,
char[] text,
int start,
int length)
throws org.xml.sax.SAXParseException
context - the parsing contexttext - an array of charactersstart - the start position in the arraylength - the number of characters to read from the array
org.xml.sax.SAXParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||