com.tensegrity.graph.rule.persistence
Class RuleBuilder

java.lang.Object
  extended bycom.tensegrity.graph.rule.persistence.RuleBuilder
All Implemented Interfaces:
Builder

public class RuleBuilder
extends java.lang.Object
implements Builder

RuleBuilder creates a Rule instance from a given AttributeList.

The following items are optional, all other items are mandatory. This is true for all rules but the GraphRule.

The following items are optional for a GraphRule, all other items are mandatory.

Only the first attribute with a specific name is significant in the method build(AttributeList). All further attributes with the same name are not considered.

Version:
$Id: RuleBuilder.java,v 1.45 2005/11/02 16:16:22 MichaelKegel Exp $
Author:
Gilles Iachelini, Stepan Rutz

Constructor Summary
RuleBuilder()
          Constructs a new RuleBuilder instance.
 
Method Summary
 java.lang.Object build(AttributeList attributes)
          Builds an object from the given AttributeList by reading all required Attributes and its values and creating the object from.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleBuilder

public RuleBuilder()
Constructs a new RuleBuilder instance.

Method Detail

build

public java.lang.Object build(AttributeList attributes)
                       throws BuildException
Description copied from interface: Builder
Builds an object from the given AttributeList by reading all required Attributes and its values and creating the object from.

Specified by:
build in interface Builder
Parameters:
attributes - the AttributeList holding the informations specifying the object to be build.
Returns:
Object the built object.
Throws:
BuildException - whenever an error occurs while building an object.
See Also:
Builder.build(AttributeList)


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.