|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Configuration passed to a configurable SemanticComponent
.
A Configuration
may actually form a tree-shaped structure in
order to hold complex configuration data. Each node in the tree is
represented by a Configuration
object that has a name and may
contain attributes, children and text.
Field Summary | |
static Configuration[] |
EMPTY_ARRAY
Empty Configuration array. |
Method Summary | |
java.lang.String |
getAttribute(java.lang.String name)
Retrieve an attribute value. |
java.lang.String[] |
getAttributeNames()
Retrieve all attribute names. |
Configuration |
getChild(java.lang.String name)
Retrieve a child node. |
Configuration[] |
getChildren()
Retrieve all children nodes. |
Configuration[] |
getChildren(java.lang.String name)
Retrieve children nodes. |
java.lang.String |
getName()
Retrieve the node name. |
java.lang.String |
getText()
Retrieve the node text. |
Field Detail |
public static final Configuration[] EMPTY_ARRAY
Configuration
array.
Method Detail |
public java.lang.String getName()
public java.lang.String getText()
public java.lang.String getAttribute(java.lang.String name)
name
- The attribute name.
null
if no attribute
matches the specified name.public java.lang.String[] getAttributeNames()
public Configuration getChild(java.lang.String name)
name
- The child name.
null
if none match.public Configuration[] getChildren(java.lang.String name)
name
- The child name.
public Configuration[] getChildren()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |