|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.composite.geometry.persistence.GeometryDescriptorItemBuilder
The GeometryDescriptorItemBuilder build an instance of GeometryDescriptorItem from an AttributeList. This class uses the GeometryItemPool to retrieve the GeometryItems.
| Constructor Summary | |
GeometryDescriptorItemBuilder()
Constructor for GeometryDescriptorItemBuilder. |
|
| 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. |
static GeometryItemCoordinates |
getCoordinates(AttributeList list)
Returns an instance of GeometryItemCoordinates with
all the coordinates from the given AttributeList. |
protected GeometryItem |
getGeometryItem(java.lang.String name)
Method getGeometryItem returns the GeometryItem with the given name from the GeometryItemPool. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GeometryDescriptorItemBuilder()
| Method Detail |
public java.lang.Object build(AttributeList attributes)
throws BuildException
BuilderAttributeList by reading all
required Attributes and its values and creating the object from.
build in interface Builderattributes - the AttributeList holding the informations
specifying the object to be build.
BuildException - whenever an error occurs while building an object.
public static final GeometryItemCoordinates getCoordinates(AttributeList list)
throws BuildException
GeometryItemCoordinates with
all the coordinates from the given AttributeList.
list - the AttributeList with all the
Coordinates.
GeometryItemCoordinates build from the given
AttributeList.
BuildException - thrown if the internal used #
#buildArrayLists(AttributeList, String, ArrayListInt, ArrayListInt)
fails.
protected GeometryItem getGeometryItem(java.lang.String name)
throws BuildException
name - the name of the Item.
GeometryItem from the Pool.
BuildException - thrown if you try to retrieve an item which doesn't
exist.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||