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

Configuration - JBoss RULES 3.0.6 API 英文版文档


org.drools.xml
Interface Configuration

All Known Implementing Classes:
DefaultConfiguration

public interface Configuration

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

EMPTY_ARRAY

static final Configuration[] EMPTY_ARRAY
Empty Configuration array.

Method Detail

getName

java.lang.String getName()
Retrieve the node name.

Returns:
The node name.

getText

java.lang.String getText()
Retrieve the node text.

Returns:
The node text.

getAttribute

java.lang.String getAttribute(java.lang.String name)
Retrieve an attribute value.

Parameters:
name - The attribute name.
Returns:
The attribute value or null if no attribute matches the specified name.

getAttributeNames

java.lang.String[] getAttributeNames()
Retrieve all attribute names.

Returns:
The attribute names.

getChild

Configuration getChild(java.lang.String name)
Retrieve a child node.

Parameters:
name - The child name.
Returns:
The first child matching the specified name, otherwise null if none match.

getChildren

Configuration[] getChildren(java.lang.String name)
Retrieve children nodes.

Parameters:
name - The child name.
Returns:
All children matching the specified name, otherwise an empty array if none match.

getChildren

Configuration[] getChildren()
Retrieve all children nodes.

Returns:
All children nodes, otherwise an empty array if this node contains no children.