|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.commons.schema.docpath.XmlSchemaStateMachineNode
public final class XmlSchemaStateMachineNode
This represents a node in the state machine used when parsing an XML
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.
| Nested Class Summary | |
|---|---|
static class |
XmlSchemaStateMachineNode.Type
|
| Method Summary | |
|---|---|
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()
If this SchemaStateMachineNode represents an
XmlSchemaElement, the XmlSchemaElement it
represents. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public XmlSchemaStateMachineNode.Type getNodeType()
XmlSchemaStateMachineNode.Type this SchemaStateMachineNode
represents.
public XmlSchemaElement getElement()
SchemaStateMachineNode represents an
XmlSchemaElement, the XmlSchemaElement it
represents.
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()
public String toString()
String representing this
XmlSchemaStateMachineNode.
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||