public class AnyNodeUnmarshalHandler extends Object
Constructor and Description |
---|
AnyNodeUnmarshalHandler(NamespaceHandling namespaceHandling) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length)
delegates characters to SAX2ANY.
|
Object |
commonStartElement(String name,
String namespace,
boolean wsPreserve)
Delegates startElement to SAX2ANY.
|
void |
endElement(String name)
Delegates endElement to SAX2ANY.
|
void |
endPrefixMapping(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(String name,
AttributeList attList)
Preserves passed name and attributes.
|
void |
preservePassedArguments(String name,
Attributes atts)
Preserves passed name and attributes.
|
void |
startElement(String name,
AttributeList attList)
Delegates SAX1 startElement to SAX2ANY.
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
Delegates SAX2 startElement to SAX2ANY.
|
void |
startPrefixMapping(String prefix,
String uri)
delegates startPrefixMapping to SAX2ANY.
|
public AnyNodeUnmarshalHandler(NamespaceHandling namespaceHandling)
public Object commonStartElement(String name, String namespace, boolean wsPreserve) throws SAXException
name
- Name of the element if we use SAX 2namespace
- Namespace of the elementwsPreserve
- preserve whitespaces ?SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ch
- Charactersstart
- Offsetlength
- LengthSAXException
public void startElement(String name, AttributeList attList) throws SAXException
name
- Name of the element.attList
- Attribute list.SAXException
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
namespaceURI
- localName
- qName
- atts
- SAXException
public void endElement(String name) throws SAXException
name
- SAXException
public void characters(char[] ch, int start, int length) throws SAXException
ch
- start
- length
- SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
prefix
- uri
- SAXException
public void endPrefixMapping(String prefix) throws SAXException
prefix
- SAXException
public boolean hasAnyUnmarshaller()
public boolean isStartingNode()
public AnyNode getStartingNode()
public void preservePassedArguments(String name, Attributes atts)
name
- Nameatts
- Attributespublic void preservePassedArguments(String name, AttributeList attList)
name
- NameattList
- AttributeListCopyright © 2022. All rights reserved.