oracle.cabo.share.xml
Class LeafNodeParser
java.lang.Object
|
+--oracle.cabo.share.xml.BaseNodeParser
|
+--oracle.cabo.share.xml.LeafNodeParser
- All Implemented Interfaces:
- NodeParser
- Direct Known Subclasses:
- AttributeMapParser, BundleNodeParser, ClassRendererParser, ColorParser, ContextMapParser, IncludePropertyNodeParser, InstanceIconParser, NullIconParser, TemplateImportParser, TemplateRendererParser, UINodeListParser
- public abstract class LeafNodeParser
- extends BaseNodeParser
An implementation of NodeParser that works only
on leaf XML elements - or XML elements that ignore
all of their contents.
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 oracle.cabo.share.xml.BaseNodeParser |
addCompletedChild, addText, addWhitespace, endChildElement, 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 |
LeafNodeParser
public LeafNodeParser()
- Creates a LeafNodeParser
startElement
public void startElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXParseException
- Implementation of NodeParser.startElement()
- Overrides:
startElement
in class BaseNodeParser
- Following copied from interface:
oracle.cabo.share.xml.NodeParser
- Parameters:
context
- the parsing contextnamespaceURI
- the namespace of the elementlocalName
- the local name of the elementattrs
- the attributes attached to the element
endElement
public java.lang.Object endElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName)
- Implementation of NodeParser.endElement()
- Overrides:
endElement
in class BaseNodeParser
- Following copied from interface:
oracle.cabo.share.xml.NodeParser
- Parameters:
context
- the parsing contextnamespaceURI
- the namespace of the elementlocalName
- the local name of the element- Returns:
- the fully-initialized Java object corresponding
to this release
startChildElement
public NodeParser startChildElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXParseException
- Description copied from interface:
NodeParser
- Receives notification of the start of a child element. If this
method returns "this", further processing of that child element
will be continue with this same parser. If it returns "null",
the element will be ignored, and a warning logged. Otherwise, handling
will be delegated to the new parser, and the next call made to
this interface will be
addCompletedChild()
- Overrides:
startChildElement
in class BaseNodeParser
- Following copied from interface:
oracle.cabo.share.xml.NodeParser
- Parameters:
context
- the parsing contextnamespaceURI
- the namespace of the child elementlocalName
- the local name of the child elementattrs
- the attributes attached to the element- Returns:
- the node parser that should be used for this
child element, or null if processing should continue with
this
NodeParser
- See Also:
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)
getNodeValue
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
- Method called to get the node's value. Clients
must override this method.