|
UIX 2.2.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.share.xml.BaseNodeParser | +--oracle.cabo.share.xml.beans.BeanParser
The node parser for UIX Beans.
Constructor Summary | |
BeanParser(BeanDef beanDef) Creates a BeanParser based on a bean definition. |
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 |
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. |
protected java.lang.Object |
getBean() An accessor function for retrieving the bean currently being built. |
protected BeanDef |
getBeanDef() An accessor function for retrieving the bean defintion. |
protected boolean |
isInlineChildProperty(ParseContext context, java.lang.String namespaceURI, java.lang.String localName, PropertyDef def) Returns whether a given property definition is parsed inline. |
protected void |
logUnknownAttribute(ParseContext context, java.lang.String namespaceURI, java.lang.String localName) Records that an attribute was unknown. |
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. |
protected NodeParser |
startChildProperty(ParseContext context, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs, PropertyDef def) Called when an XML element is being parsed as a bean property. |
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. |
protected NodeParser |
startEnvelopeChildProperty(ParseContext context, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs, PropertyDef def) Called to parse an XML element an inline bean property. |
protected NodeParser |
startInlineChildProperty(ParseContext context, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs, PropertyDef def) Called to parse an XML element an inline bean property. |
Methods inherited from class oracle.cabo.share.xml.BaseNodeParser |
addWhitespace, getIgnoreParser, getRequiredAttribute, logError, logUnexpectedAttribute, logUnexpectedElement, logWarning, logWarning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BeanParser(BeanDef beanDef)
beanDef
- the bean definitionMethod Detail |
public void startElement(ParseContext context, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
NodeParser
startElement
in class BaseNodeParser
oracle.cabo.share.xml.NodeParser
context
- the parsing contextnamespaceURI
- the namespace of the elementlocalName
- the local name of the elementattrs
- the attributes attached to the elementpublic NodeParser startChildElement(ParseContext context, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
NodeParser
addCompletedChild()
startChildElement
in class BaseNodeParser
oracle.cabo.share.xml.NodeParser
context
- the parsing contextnamespaceURI
- the namespace of the child elementlocalName
- the local name of the child elementattrs
- the attributes attached to the elementNodeParser
NodeParser.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)
NodeParser
startChildElement
returned "this".endChildElement
in class BaseNodeParser
oracle.cabo.share.xml.NodeParser
context
- the parsing contextnamespaceURI
- the namespace of the child elementlocalName
- the local name of the child elementpublic void addText(ParseContext context, char[] text, int start, int length)
NodeParser
addText
in class BaseNodeParser
oracle.cabo.share.xml.NodeParser
context
- the parsing contexttext
- an array of charactersstart
- the start position in the arraylength
- the number of characters to read from the arraypublic void addCompletedChild(ParseContext context, java.lang.String namespaceURI, java.lang.String localName, java.lang.Object child)
NodeParser
startChildElement
returns a value other than "null" or "this".addCompletedChild
in class BaseNodeParser
oracle.cabo.share.xml.NodeParser
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.NodeParser.endElement(oracle.cabo.share.xml.ParseContext, java.lang.String, java.lang.String)
public java.lang.Object endElement(ParseContext context, java.lang.String namespaceURI, java.lang.String localName)
NodeParser
endElement
in class BaseNodeParser
oracle.cabo.share.xml.NodeParser
context
- the parsing contextnamespaceURI
- the namespace of the elementlocalName
- the local name of the elementprotected final NodeParser startChildProperty(ParseContext context, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs, PropertyDef def)
context
- the parsing contextnamespaceURI
- the namespace of the elementlocalName
- the local name of the elementattrs
- the attributes attached to the elementdef
- the property definitionstartInlineChildProperty(oracle.cabo.share.xml.ParseContext, java.lang.String, java.lang.String, org.xml.sax.Attributes, oracle.cabo.share.xml.beans.PropertyDef)
, startEnvelopeChildProperty(oracle.cabo.share.xml.ParseContext, java.lang.String, java.lang.String, org.xml.sax.Attributes, oracle.cabo.share.xml.beans.PropertyDef)
protected NodeParser startInlineChildProperty(ParseContext context, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs, PropertyDef def)
context
- the parsing contextnamespaceURI
- the namespace of the elementlocalName
- the local name of the elementattrs
- the attributes attached to the elementdef
- the property definitionprotected NodeParser startEnvelopeChildProperty(ParseContext context, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs, PropertyDef def)
context
- the parsing contextnamespaceURI
- the namespace of the elementlocalName
- the local name of the elementattrs
- the attributes attached to the elementdef
- the property definitionprotected boolean isInlineChildProperty(ParseContext context, java.lang.String namespaceURI, java.lang.String localName, PropertyDef def)
context
- the parsing contextdef
- the property definitionprotected final BeanDef getBeanDef()
protected final java.lang.Object getBean()
protected void logUnknownAttribute(ParseContext context, java.lang.String namespaceURI, java.lang.String localName)
context
- the parsing contextnamespaceURI
- the namespace of the attribute, or an empty string for no namespacelocalName
- the local name of the attribute
|
UIX 2.2.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |