|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.composite.geometry.persistence.GeometryDescriptorBuilder
The GeometryDescriptorBuilder creates an instance of GeometryDescriptor from an AttributeList. It uses the GeometryDescriptorItemBuilder to reconstruct the GeometryDescriptorItem's. Coordinates are restored by using the CoordinateSystemPool.
| Constructor Summary | |
GeometryDescriptorBuilder()
Constructor for GeometryDescriptorBuilder. |
|
| 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. |
protected CoordinateSystem |
createCoordinateSystem(AttributeList list)
Creates a CoordinateSystem from the given list of double
values. |
protected int |
getType(java.lang.String s)
Returns the int constant descriptor type for a given
String from a XML file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GeometryDescriptorBuilder()
| 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.
protected CoordinateSystem createCoordinateSystem(AttributeList list)
throws BuildException
CoordinateSystem from the given list of double
values.
list - AttributeList with the 4 necessary attributes.
CoordinateSystem.
BuildException - thrown if GeometryPersistenceUtilities#getDoubles(String)
throws a NumberFormatException.
protected int getType(java.lang.String s)
throws BuildException
int constant descriptor type for a given
String from a XML file.
s - the String to get the type for.
int constant descriptor.
BuildException - thrown if the passed string could not be identified.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||