Modifier and Type | Field and Description |
---|---|
private org.w3c.dom.Element |
element |
private static IState[] |
NO_CHILDREN |
Constructor and Description |
---|
StateElement(org.w3c.dom.Element element)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttribute(java.lang.String key)
Gets a named attribute value.
|
java.lang.String[] |
getAttributeKeys()
Return an array with the attribute keys for this state.
|
IState |
getChild(java.lang.String type)
Gets a child of the named type.
|
IState[] |
getChildren()
Gets all child nodes.
|
IState[] |
getChildren(java.lang.String type)
Gets all child nodes of a named type.
|
java.lang.String |
getType()
Get the node type of this state.
|
private static final IState[] NO_CHILDREN
private final org.w3c.dom.Element element
StateElement(org.w3c.dom.Element element)
element
- XML element to wrappublic java.lang.String getType()
IState
public java.lang.String[] getAttributeKeys()
IState
getAttributeKeys
in interface IState
public java.lang.String getAttribute(java.lang.String key)
IState
getAttribute
in interface IState
key
- attribute keypublic IState getChild(java.lang.String type)
IState
public IState[] getChildren()
IState
getChildren
in interface IState
public IState[] getChildren(java.lang.String type)
IState
getChildren
in interface IState
type
- node type