|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidadinternal.share.xml.BaseNodeParser
org.apache.myfaces.trinidadinternal.share.xml.LeafNodeParser
public abstract class LeafNodeParser
An implementation of NodeParser that works only on leaf XML elements - or XML elements that ignore all of their contents.
| Constructor Summary | |
|---|---|
LeafNodeParser()
Creates a LeafNodeParser |
|
| Method Summary | |
|---|---|
java.lang.Object |
endElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName)
Implementation of NodeParser.endElement() |
protected abstract java.lang.Object |
getNodeValue(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes attrs)
Method called to get the node's value. |
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)
Implementation of NodeParser.startElement() |
| Methods inherited from class org.apache.myfaces.trinidadinternal.share.xml.BaseNodeParser |
|---|
addCompletedChild, addText, addWhitespace, endChildElement, getIgnoreParser, getRequiredAttribute, logError, logUnexpectedAttribute, logUnexpectedElement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LeafNodeParser()
| Method Detail |
|---|
public void startElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXParseException
startElement in interface NodeParserstartElement in class BaseNodeParsercontext - the parsing contextnamespaceURI - the namespace of the elementlocalName - the local name of the elementattrs - the attributes attached to the element
org.xml.sax.SAXParseException
public java.lang.Object endElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName)
endElement in interface NodeParserendElement in class BaseNodeParsercontext - the parsing contextnamespaceURI - the namespace of the elementlocalName - the local name of the element
public NodeParser startChildElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXParseException
NodeParseraddCompletedChild()
startChildElement in interface NodeParserstartChildElement in class BaseNodeParsercontext - 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.SAXParseExceptionNodeParser.endChildElement(org.apache.myfaces.trinidadinternal.share.xml.ParseContext, java.lang.String, java.lang.String),
NodeParser.addCompletedChild(org.apache.myfaces.trinidadinternal.share.xml.ParseContext, java.lang.String, java.lang.String, java.lang.Object)
protected abstract java.lang.Object getNodeValue(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXParseException
org.xml.sax.SAXParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||