|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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(java.lang.String name)
Construct. |
|
| Method Summary | |
|---|---|
void |
addChild(Configuration config)
Add a child Configuration. |
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. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Set an attribute value. |
void |
setText(java.lang.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(java.lang.String name)
name - The name of the node.| Method Detail |
|---|
public java.lang.String getName()
Configuration
getName in interface ConfigurationConfigurationpublic void setText(java.lang.String text)
text - The text.public java.lang.String getText()
Configuration
getText in interface ConfigurationConfiguration
public void setAttribute(java.lang.String name,
java.lang.String value)
name - The attribute name.value - The attribute value.public java.lang.String getAttribute(java.lang.String name)
Configuration
getAttribute in interface Configurationname - The attribute name.
null if no attribute
matches the specified name.Configurationpublic java.lang.String[] getAttributeNames()
Configuration
getAttributeNames in interface ConfigurationConfigurationpublic void addChild(Configuration config)
Configuration.
config - The child.public Configuration getChild(java.lang.String name)
Configuration
getChild in interface Configurationname - The child name.
null if none match.Configurationpublic Configuration[] getChildren(java.lang.String name)
Configuration
getChildren in interface Configurationname - The child name.
Configurationpublic Configuration[] getChildren()
Configuration
getChildren in interface ConfigurationConfiguration
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||