Package org.exolab.castor.xml.parsing
Class UnmarshalStateStack
java.lang.Object
org.exolab.castor.xml.parsing.UnmarshalStateStack
This class helps to access a stack in that
UnmarshalState
s are stored.- Author:
- Philipp Erlacher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPeeks the stack for the topUnmarshalState
, without removing it.boolean
Checks if there is a parent state on the stack.boolean
isEmpty()
Checks if the stack is empty.void
pushState
(UnmarshalState state) Pushes aUnmarshalState
instance onto the stack-Pops the topUnmarshalState
off the stack.Removes a parent state from the stack.void
-
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 topUnmarshalState
off the stack.- Returns:
- Top
UnmarshalState
instance, 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 aUnmarshalState
instance onto the stack-- Parameters:
state
- TheUnmarshalState
instance 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
-
resetParentState
public void resetParentState()
-