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

Configuration (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 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.

Version:
$Id: Configuration.java,v 1.5 2005/01/23 18:16:20 mproctor Exp $
Author:
bob mcwhirter

Field Summary
static Configuration[] EMPTY_ARRAY
          Empty Configuration array.
 
Method Summary
 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.
 

Field Detail

EMPTY_ARRAY

static final Configuration[] EMPTY_ARRAY
Empty Configuration array.

Method Detail

getName

String getName()
Retrieve the node name.

Returns:
The node name.

getText

String getText()
Retrieve the node text.

Returns:
The node text.

getAttribute

String getAttribute(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

String[] getAttributeNames()
Retrieve all attribute names.

Returns:
The attribute names.

getChild

Configuration getChild(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(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.


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