站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

DefaultConfiguration (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.xml
Class DefaultConfiguration

java.lang.Object
  extended by org.drools.xml.DefaultConfiguration
All Implemented Interfaces:
Configuration

public class DefaultConfiguration
extends Object
implements Configuration

Default implementation of Configuration.

Version:
$Id: DefaultConfiguration.java,v 1.2 2004/09/17 00:25:09 mproctor Exp $
Author:
bob mcwhirter

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

DefaultConfiguration

public DefaultConfiguration(String name)
Construct.

Parameters:
name - The name of the node.
Method Detail

getName

public String getName()
Description copied from interface: Configuration
Retrieve the node name.

Specified by:
getName in interface Configuration
Returns:
The node name.
See Also:
Configuration

setText

public void setText(String text)
Set the node text.

Parameters:
text - The text.

getText

public String getText()
Description copied from interface: Configuration
Retrieve the node text.

Specified by:
getText in interface Configuration
Returns:
The node text.
See Also:
Configuration

setAttribute

public void setAttribute(String name,
                         String value)
Set an attribute value.

Parameters:
name - The attribute name.
value - The attribute value.

getAttribute

public String getAttribute(String name)
Description copied from interface: Configuration
Retrieve an attribute value.

Specified by:
getAttribute in interface Configuration
Parameters:
name - The attribute name.
Returns:
The attribute value or null if no attribute matches the specified name.
See Also:
Configuration

getAttributeNames

public String[] getAttributeNames()
Description copied from interface: Configuration
Retrieve all attribute names.

Specified by:
getAttributeNames in interface Configuration
Returns:
The attribute names.
See Also:
Configuration

addChild

public void addChild(Configuration config)
Add a child Configuration.

Parameters:
config - The child.

getChild

public Configuration getChild(String name)
Description copied from interface: Configuration
Retrieve a child node.

Specified by:
getChild in interface Configuration
Parameters:
name - The child name.
Returns:
The first child matching the specified name, otherwise null if none match.
See Also:
Configuration

getChildren

public Configuration[] getChildren(String name)
Description copied from interface: Configuration
Retrieve children nodes.

Specified by:
getChildren in interface Configuration
Parameters:
name - The child name.
Returns:
All children matching the specified name, otherwise an empty array if none match.
See Also:
Configuration

getChildren

public Configuration[] getChildren()
Description copied from interface: Configuration
Retrieve all children nodes.

Specified by:
getChildren in interface Configuration
Returns:
All children nodes, otherwise an empty array if this node contains no children.
See Also:
Configuration


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.