public class AnyNodeUnmarshalHandler
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
(package private) class |
AnyNodeUnmarshalHandler.ElementInfo |
A utility class for keeping track of the qName and how the SAX parser
passed attributes.
|
Constructor | Description |
---|---|
AnyNodeUnmarshalHandler(NamespaceHandling namespaceHandling) |
Modifier and Type | Method | Description |
---|---|---|
void |
characters(char[] ch,
int start,
int length) |
delegates characters to SAX2ANY.
|
java.lang.Object |
commonStartElement(java.lang.String name,
java.lang.String namespace,
boolean wsPreserve) |
Delegates startElement to SAX2ANY.
|
void |
endElement(java.lang.String name) |
Delegates endElement to SAX2ANY.
|
void |
endPrefixMapping(java.lang.String prefix) |
delegates endPrefixMapping to SAX2ANY.
|
AnyNode |
getStartingNode() |
Returns SAX2ANY startingNode.
|
boolean |
hasAnyUnmarshaller() |
Checks if there is a SAX2ANY object
|
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
delegates ignorableWhitespace call to SAX2ANY.
|
boolean |
isStartingNode() |
Checks if any branch depth counter is zero.
|
void |
preservePassedArguments(java.lang.String name,
org.xml.sax.AttributeList attList) |
Preserves passed name and attributes.
|
void |
preservePassedArguments(java.lang.String name,
org.xml.sax.Attributes atts) |
Preserves passed name and attributes.
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts) |
Delegates SAX2 startElement to SAX2ANY.
|
void |
startElement(java.lang.String name,
org.xml.sax.AttributeList attList) |
Delegates SAX1 startElement to SAX2ANY.
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri) |
delegates startPrefixMapping to SAX2ANY.
|
public AnyNodeUnmarshalHandler(NamespaceHandling namespaceHandling)
public java.lang.Object commonStartElement(java.lang.String name, java.lang.String namespace, boolean wsPreserve) throws org.xml.sax.SAXException
name
- Name of the element if we use SAX 2namespace
- Namespace of the elementwsPreserve
- preserve whitespaces ?org.xml.sax.SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
ch
- Charactersstart
- Offsetlength
- Lengthorg.xml.sax.SAXException
public void startElement(java.lang.String name, org.xml.sax.AttributeList attList) throws org.xml.sax.SAXException
name
- Name of the element.attList
- Attribute list.org.xml.sax.SAXException
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
namespaceURI
- localName
- qName
- atts
- org.xml.sax.SAXException
public void endElement(java.lang.String name) throws org.xml.sax.SAXException
name
- org.xml.sax.SAXException
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
ch
- start
- length
- org.xml.sax.SAXException
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
prefix
- uri
- org.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
prefix
- org.xml.sax.SAXException
public boolean hasAnyUnmarshaller()
public boolean isStartingNode()
public AnyNode getStartingNode()
public void preservePassedArguments(java.lang.String name, org.xml.sax.Attributes atts)
name
- Nameatts
- Attributespublic void preservePassedArguments(java.lang.String name, org.xml.sax.AttributeList attList)
name
- NameattList
- AttributeListIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com