|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--oracle.cabo.share.xml.BaseNodeParser
A base implementation of NodeParser that performs no actions at all. Clients can use this as a base class for their node parsers, or as a way to ignore an element (and all of its children).
| Constructor Summary | |
BaseNodeParser()
|
|
| 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. |
static NodeParser |
getIgnoreParser()
Returns a shared instance of this class. |
protected java.lang.String |
getRequiredAttribute(ParseContext context,
org.xml.sax.Attributes attrs,
java.lang.String qName)
Get the value of an attribute; if not found, send a warning to the error log. |
protected void |
logError(ParseContext context,
java.lang.String message,
java.lang.Exception e)
|
protected void |
logUnexpectedAttribute(ParseContext context,
java.lang.String qName)
|
protected void |
logUnexpectedElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName)
|
protected void |
logWarning(ParseContext context,
java.lang.String message)
|
protected void |
logWarning(ParseContext context,
java.lang.String message,
java.lang.Exception e)
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BaseNodeParser()
| Method Detail |
public static NodeParser getIgnoreParser()
public void startElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXParseException
NodeParserstartElement in interface NodeParseroracle.cabo.share.xml.NodeParsercontext - the parsing contextnamespaceURI - the namespace of the elementlocalName - the local name of the elementattrs - the attributes attached to the element
public java.lang.Object endElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName)
throws org.xml.sax.SAXParseException
NodeParserendElement in interface NodeParseroracle.cabo.share.xml.NodeParsercontext - 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 NodeParseroracle.cabo.share.xml.NodeParsercontext - the parsing contextnamespaceURI - the namespace of the child elementlocalName - the local name of the child elementattrs - the attributes attached to the elementNodeParserNodeParser.endChildElement(oracle.cabo.share.xml.ParseContext, java.lang.String, java.lang.String),
NodeParser.addCompletedChild(oracle.cabo.share.xml.ParseContext, java.lang.String, java.lang.String, java.lang.Object)
public void endChildElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName)
throws org.xml.sax.SAXParseException
NodeParserstartChildElement returned "this".
endChildElement in interface NodeParseroracle.cabo.share.xml.NodeParsercontext - the parsing contextnamespaceURI - the namespace of the child elementlocalName - the local name of the child element
public void addCompletedChild(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName,
java.lang.Object child)
throws org.xml.sax.SAXParseException
NodeParserstartChildElement returns a value
other than "null" or "this".
addCompletedChild in interface NodeParseroracle.cabo.share.xml.NodeParsercontext - 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.NodeParser.endElement(oracle.cabo.share.xml.ParseContext, java.lang.String, java.lang.String)
public void addText(ParseContext context,
char[] text,
int start,
int length)
throws org.xml.sax.SAXParseException
NodeParseraddText in interface NodeParseroracle.cabo.share.xml.NodeParsercontext - the parsing contexttext - an array of charactersstart - the start position in the arraylength - the number of characters to read from the array
protected final java.lang.String getRequiredAttribute(ParseContext context,
org.xml.sax.Attributes attrs,
java.lang.String qName)
context - the ParseContextattrs - the SAX2 attribute listqName - the XML 1.0 qualified name of the attribute
public void addWhitespace(ParseContext context,
char[] text,
int start,
int length)
throws org.xml.sax.SAXParseException
NodeParseraddWhitespace in interface NodeParseroracle.cabo.share.xml.NodeParsercontext - the parsing contexttext - an array of charactersstart - the start position in the arraylength - the number of characters to read from the array
protected final void logWarning(ParseContext context,
java.lang.String message)
protected void logWarning(ParseContext context,
java.lang.String message,
java.lang.Exception e)
protected void logError(ParseContext context,
java.lang.String message,
java.lang.Exception e)
throws org.xml.sax.SAXParseException
protected void logUnexpectedElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName)
protected void logUnexpectedAttribute(ParseContext context,
java.lang.String qName)
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||