public final class XmlSchemaStateMachineNode extends Object
Document based on its
XmlSchema and Avro
org.apache.avro.Schema.
A SchemaStateMachineNode represents one of:
Document is traversed, the state machine is used to
determine how to process the current element. Two passes will be needed: the
first pass will determine the correct path through the document's schema in
order to properly parse the elements, and the second traversal will read the
elements while following that path.
| Modifier and Type | Class and Description |
|---|---|
static class |
XmlSchemaStateMachineNode.Type |
| Modifier and Type | Method and Description |
|---|---|
XmlSchemaAny |
getAny()
Returns the XmlSchemaAny associated with this node, or
null
|
List<XmlSchemaAttrInfo> |
getAttributes()
If this
SchemaStateMachineNode represents an
XmlSchemaElement, the set of XmlSchemaAttrInfos
associated with the element it represents. |
XmlSchemaElement |
getElement()
|
XmlSchemaTypeInfo |
getElementType()
If this
SchemaStateMachineNode represents an
XmlSchemaElement, the XmlSchemaTypeInfo of the element it
represents. |
long |
getMaxOccurs()
The maximum number of times this
SchemaStateMachineNode may
appear in succession. |
long |
getMinOccurs()
The minimum number of times this
SchemaStateMachineNode may
appear in succession. |
XmlSchemaStateMachineNode.Type |
getNodeType()
The XML Schema node
XmlSchemaStateMachineNode.Type this SchemaStateMachineNode
represents. |
List<XmlSchemaStateMachineNode> |
getPossibleNextStates()
All of the known possible states that could follow this one.
|
String |
toString()
Builds a
String representing this
XmlSchemaStateMachineNode. |
public XmlSchemaStateMachineNode.Type getNodeType()
XmlSchemaStateMachineNode.Type this SchemaStateMachineNode
represents.public XmlSchemaElement getElement()
public XmlSchemaTypeInfo getElementType()
SchemaStateMachineNode represents an
XmlSchemaElement, the XmlSchemaTypeInfo of the element it
represents.public List<XmlSchemaAttrInfo> getAttributes()
SchemaStateMachineNode represents an
XmlSchemaElement, the set of XmlSchemaAttrInfos
associated with the element it represents.public long getMinOccurs()
SchemaStateMachineNode may
appear in succession.public long getMaxOccurs()
SchemaStateMachineNode may
appear in succession.public XmlSchemaAny getAny()
XmlSchemaAny associated with this node, or
null
public List<XmlSchemaStateMachineNode> getPossibleNextStates()
Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.