Modifier and Type | Method and Description |
---|---|
static StatefulState |
create(IStateful state)
Create a new instance.
|
String |
getAttribute(String key)
Gets a named attribute value.
|
String[] |
getAttributeKeys()
Return an array with the attribute keys for this state.
|
StatefulState |
getChild(String type)
Gets a child of the named type.
|
StatefulState[] |
getChildren()
Gets all child nodes.
|
StatefulState[] |
getChildren(String type)
Gets all child nodes of a named type.
|
String |
getType()
Get the node type of this state.
|
void |
saveTo(IWritableState state)
Saves the state for this object into a state object.
|
String |
toString() |
public String getType()
IState
public StatefulState getChild(String type)
IState
public String[] getAttributeKeys()
IState
getAttributeKeys
in interface IState
public String getAttribute(String key)
IState
getAttribute
in interface IState
key
- attribute keypublic StatefulState[] getChildren()
IState
getChildren
in interface IState
public StatefulState[] getChildren(String type)
IState
getChildren
in interface IState
type
- node typepublic void saveTo(IWritableState state)
IStateful
public static StatefulState create(IStateful state)
state
- object whose state will be loaded into the new instanceCopyright © 2020. All rights reserved.