| 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()
IStatepublic java.lang.String[] getAttributeKeys()
IStategetAttributeKeys in interface IStatepublic java.lang.String getAttribute(java.lang.String key)
IStategetAttribute in interface IStatekey - attribute keypublic IState getChild(java.lang.String type)
IStatepublic IState[] getChildren()
IStategetChildren in interface IStatepublic IState[] getChildren(java.lang.String type)
IStategetChildren in interface IStatetype - node type