public class Pazpar2State
extends java.lang.Object
Constructor and Description |
---|
Pazpar2State() |
Pazpar2State(Pazpar2State previousState,
Pazpar2Command newCommand)
Creates new state by cloning all commands of the provided state and
then overriding one of them with the provided state changing command.
|
Modifier and Type | Method and Description |
---|---|
Pazpar2Command |
getCommand(java.lang.String name)
Returns a command from this state
|
java.lang.String |
getKey()
Generates a state key that can be used by the browser to pick
up this state again at a later point in time.
|
boolean |
stateMutating(Pazpar2Command command)
Checks if a command represents a change of this state
|
public Pazpar2State()
public Pazpar2State(Pazpar2State previousState, Pazpar2Command newCommand)
previousState
- newCommand
- public java.lang.String getKey()
com.indexdata.mkjsf.pazpar2.state.StateManager#setCurrentStateKey}
public boolean stateMutating(Pazpar2Command command)
command
- public Pazpar2Command getCommand(java.lang.String name)
name
-