|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.composite.persistence.CompositeBuilder
com.tensegrity.composite.persistence.CompositeTableBuilder
This class builds a CompositeTable from an given
AttributeList.
| Constructor Summary | |
CompositeTableBuilder()
Default Constructor. |
|
| Method Summary | |
java.lang.Object |
build(AttributeList list)
Creates a composite instance from the given AttributeList. |
protected Size |
getSizeMayBeNull(AttributeList list,
java.lang.String attributeName,
Size defaultValue)
This method returns an instance of size read from the given AttributeList. |
protected void |
setGroupAttributes(CompositeTable group,
AttributeList list)
Applies the attributes from the given list to the given group. |
| Methods inherited from class com.tensegrity.composite.persistence.CompositeBuilder |
addPrimitives, getLocation, getSize, getSizeMayBeNull, getTransform, readFlag, readFlagMayBeNull, setCompositeAttributes, setGeometryAttributes, setStyleAttributes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CompositeTableBuilder()
| Method Detail |
public java.lang.Object build(AttributeList list)
throws BuildException
CompositeBuilderAttributeList.
build in interface Builderbuild in class CompositeBuilderBuildExceptionBuilder.build(com.tensegrity.generic.attribute.AttributeList)
protected void setGroupAttributes(CompositeTable group,
AttributeList list)
throws BuildException
group - the CompositeGroup to apply the
Attributes to.list - a AttributeList holding the
Attributes.
BuildException - thrown if one of the internally used methods
throws an exception.
protected Size getSizeMayBeNull(AttributeList list,
java.lang.String attributeName,
Size defaultValue)
throws BuildException
attributeName-attribute
and creates the Size instance from it. If no such attribute can be read
or the value is null, the parameter
defaultValue is returned.
list - the AttributeList to read the size attribute from.attributeName - the name of the attribute in the list which value is
a serialized Size instance.defaultValue - the value which should be returned, if no such
attribute is found or its value is null.
BuildException - thrown if
BuilderUtilities.getAttributeValueMayBeNull(AttributeList, String, Class)
throws an exception.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||