Class UnmarshalStateStack
java.lang.Object
org.exolab.castor.xml.parsing.UnmarshalStateStack
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPeeks the stack for the topUnmarshalState, without removing it.booleanChecks if there is a parent state on the stack.booleanisEmpty()Checks if the stack is empty.peekAtState(Integer index) voidpushState(UnmarshalState state) Pushes aUnmarshalStateinstance onto the stack-Pops the topUnmarshalStateoff the stack.Removes a parent state from the stack.voidsize()
-
Constructor Details
-
UnmarshalStateStack
public UnmarshalStateStack()
-
-
Method Details
-
getLastState
Peeks the stack for the topUnmarshalState, without removing it.- Returns:
- Top
UnmarshalState, without removing it.
-
removeLastState
Pops the topUnmarshalStateoff the stack.- Returns:
- Top
UnmarshalStateinstance, removing it from the stack as well.
-
isEmpty
public boolean isEmpty()Checks if the stack is empty.- Returns:
- True if there is no element on the stack.
-
pushState
Pushes aUnmarshalStateinstance onto the stack-- Parameters:
state- TheUnmarshalStateinstance to be pushed onto the stack.
-
hasAnotherParentState
public boolean hasAnotherParentState()Checks if there is a parent state on the stack.- Returns:
- True of there's a parent state.
-
removeParentState
Removes a parent state from the stack.- Returns:
- UnmarshalState that is a parent state
-
peekAtState
-
getFirstParentState
-
getFirstParentStateIndex
-
size
-
resetParentState
public void resetParentState()
-