org.gxml.xs
Interface SmContentFiniteStateMachine<A,S>


public interface SmContentFiniteStateMachine<A,S>

State-machine abstraction used for XML content model validation of a child axis.


Method Summary
 boolean end()
          Steps the state machine upon completion of all elements.
 SmElement<A,S> getElement()
          Returns an element declaration if an element is matched.
 SmWildcard<A,S> getWildcard()
          Returns a wildcard if a wildcard is matched.
 boolean isElementMatch()
          Determines whether the last step matched an element declaration.
 boolean isWildcardMatch()
          Determines whether the last step matched a wildcard.
 boolean step(SmName<S> name)
          Steps the state machine upon arrival of an element with the specified name.
 

Method Detail

end

boolean end()
Steps the state machine upon completion of all elements.

Returns:
true if no more elements are expected.

getElement

SmElement<A,S> getElement()
Returns an element declaration if an element is matched.


getWildcard

SmWildcard<A,S> getWildcard()
Returns a wildcard if a wildcard is matched.


isElementMatch

boolean isElementMatch()
Determines whether the last step matched an element declaration.


isWildcardMatch

boolean isWildcardMatch()
Determines whether the last step matched a wildcard.


step

boolean step(SmName<S> name)
Steps the state machine upon arrival of an element with the specified name.

Parameters:
name - The name of the element.
Returns:
true if a transition exists for the element.


Copyright © 2009 TIBCO Software Inc. All Rights Reserved.