|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.io.DefaultConfiguration
Default implementation of Configuration
.
Field Summary |
Fields inherited from interface org.drools.smf.Configuration |
EMPTY_ARRAY |
Constructor Summary | |
(package private) |
DefaultConfiguration(String name)
Construct. |
Method Summary | |
(package private) void |
addChild(Configuration config)
Add a child Configuration . |
String |
getAttribute(String name)
Retrieve an attribute value. |
String[] |
getAttributeNames()
Retrieve all attribute names. |
Configuration |
getChild(String name)
Retrieve a child node. |
Configuration[] |
getChildren()
Retrieve all children nodes. |
Configuration[] |
getChildren(String name)
Retrieve children nodes. |
String |
getName()
Retrieve the node name. |
String |
getText()
Retrieve the node text. |
(package private) void |
setAttribute(String name,
String value)
Set an attribute value. |
(package private) void |
setText(String text)
Set the node text. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
DefaultConfiguration(String name)
name
- The name of the node.Method Detail |
public String getName()
Configuration
getName
in interface Configuration
Configuration
void setText(String text)
text
- The text.public String getText()
Configuration
getText
in interface Configuration
Configuration
void setAttribute(String name, String value)
name
- The attribute name.value
- The attribute value.public String getAttribute(String name)
Configuration
getAttribute
in interface Configuration
name
- The attribute name.
null
if no attribute
matches the specified name.Configuration
public String[] getAttributeNames()
Configuration
getAttributeNames
in interface Configuration
Configuration
void addChild(Configuration config)
Configuration
.
config
- The child.public Configuration getChild(String name)
Configuration
getChild
in interface Configuration
name
- The child name.
null
if none match.Configuration
public Configuration[] getChildren(String name)
Configuration
getChildren
in interface Configuration
name
- The child name.
Configuration
public Configuration[] getChildren()
Configuration
getChildren
in interface Configuration
Configuration
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |