Package org.exolab.castor.xml.parsing
Class UnmarshalStateStack
- java.lang.Object
-
- org.exolab.castor.xml.parsing.UnmarshalStateStack
-
public class UnmarshalStateStack extends java.lang.Object
This class helps to access a stack in thatUnmarshalState
s are stored.- Author:
- Philipp Erlacher
-
-
Constructor Summary
Constructors Constructor Description UnmarshalStateStack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnmarshalState
getLastState()
Peeks the stack for the topUnmarshalState
, without removing it.boolean
hasAnotherParentState()
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-UnmarshalState
removeLastState()
Pops the topUnmarshalState
off the stack.UnmarshalState
removeParentState()
Removes a parent state from the stack.void
resetParentState()
-
-
-
Method Detail
-
getLastState
public UnmarshalState getLastState()
Peeks the stack for the topUnmarshalState
, without removing it.- Returns:
- Top
UnmarshalState
, without removing it.
-
removeLastState
public UnmarshalState 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
public void pushState(UnmarshalState state)
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
public UnmarshalState removeParentState()
Removes a parent state from the stack.- Returns:
- UnmarshalState that is a parent state
-
resetParentState
public void resetParentState()
-
-