org.apache.ws.commons.schema.docpath
Class XmlSchemaStateMachineNode

java.lang.Object
  extended by org.apache.ws.commons.schema.docpath.XmlSchemaStateMachineNode

public final class XmlSchemaStateMachineNode
extends Object

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:

As a 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

getNodeType

public XmlSchemaStateMachineNode.Type getNodeType()
The XML Schema node XmlSchemaStateMachineNode.Type this SchemaStateMachineNode represents.


getElement

public XmlSchemaElement getElement()
If this SchemaStateMachineNode represents an XmlSchemaElement, the XmlSchemaElement it represents.


getElementType

public XmlSchemaTypeInfo getElementType()
If this SchemaStateMachineNode represents an XmlSchemaElement, the XmlSchemaTypeInfo of the element it represents.


getAttributes

public List<XmlSchemaAttrInfo> getAttributes()
If this SchemaStateMachineNode represents an XmlSchemaElement, the set of XmlSchemaAttrInfos associated with the element it represents.


getMinOccurs

public long getMinOccurs()
The minimum number of times this SchemaStateMachineNode may appear in succession.


getMaxOccurs

public long getMaxOccurs()
The maximum number of times this SchemaStateMachineNode may appear in succession.


getAny

public XmlSchemaAny getAny()
Returns the XmlSchemaAny associated with this node, or null

getPossibleNextStates

public List<XmlSchemaStateMachineNode> getPossibleNextStates()
All of the known possible states that could follow this one.


toString

public String toString()
Builds a String representing this XmlSchemaStateMachineNode.

Overrides:
toString in class Object


Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.