|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.drools.xml.DefaultConfiguration
public class DefaultConfiguration
Default implementation of Configuration
.
Field Summary |
---|
Fields inherited from interface org.drools.xml.Configuration |
---|
EMPTY_ARRAY |
Constructor Summary | |
---|---|
DefaultConfiguration(String name)
Construct. |
Method Summary | |
---|---|
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. |
void |
setAttribute(String name,
String value)
Set an attribute value. |
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 |
---|
public DefaultConfiguration(String name)
name
- The name of the node.Method Detail |
---|
public String getName()
Configuration
getName
in interface Configuration
Configuration
public void setText(String text)
text
- The text.public String getText()
Configuration
getText
in interface Configuration
Configuration
public 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
public 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 |