|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.composite.persistence.CompositeSerializer
com.tensegrity.composite.persistence.CompositeGroupSerializer
The CompositeGroupSerializer is responsible to create AttributeLists for a given CompositeGroup instance.
| Field Summary | |
protected CompositeGroup |
group
Holding the CompositeGroup to serialize. |
| Constructor Summary | |
CompositeGroupSerializer(CompositeGroup group)
Constructor specifying the CompositeGroup to serialize. |
|
| Method Summary | |
protected void |
addBoundingBox(AttributeList list)
Adds the Boundingbox of the internal group to the given
AttributeList. |
protected void |
addCompositeGroupAttributes(AttributeList list)
Adds the attributes of the internal CompositeGroup instance to the given AttributeList. |
protected void |
addComposites(AttributeList composites)
Adds all Composites of the internal
CompositeGroup to the given AttributeList. |
protected void |
addContentBorder(AttributeList list)
Method addContentBorder adds the content border sizes of the internal group to the parameter list. |
protected void |
addFoldStateAttributes(AttributeList list)
Adds all fold-relevant elements of the internal group to the given AttributeList. |
protected Attribute |
getAnchorAttribute(java.lang.String attributeName,
Anchor anchor)
|
protected CompositeGroup |
getGroup()
Returns the CompositeGroup to serialize. |
protected Attribute |
getSizeAttribute(java.lang.String attributeName,
Size size)
Returns an Attribute for a given Size instance. |
AttributeList |
serialize()
Returns the CustomAttributes, CoordinateSystem, Location, Size, Transform and Primitives as AttributeList. |
| Methods inherited from class com.tensegrity.composite.persistence.CompositeSerializer |
addCompositeAttributes, addFlag, addLocation, addSize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected CompositeGroup group
CompositeGroup to serialize.
| Constructor Detail |
public CompositeGroupSerializer(CompositeGroup group)
CompositeGroup to serialize.
group - the CompositeGroup to serialize.| Method Detail |
public AttributeList serialize()
throws SerializeException
CompositeSerializer
serialize in interface Serializerserialize in class CompositeSerializerSerializeExceptionSerializer.serialize()
protected void addCompositeGroupAttributes(AttributeList list)
throws SerializeException
list - target list to add the values too.
SerializeException - thrown whenever one of the attribute related
operations throws an exception.
protected void addComposites(AttributeList composites)
throws AttributeException,
ConstraintViolationException,
SerializeException
Composites of the internal
CompositeGroup to the given AttributeList.
composites - the AttributeList to add the composites to.
AttributeException - thrown when one of the attribute related operation
throws an exception.
ConstraintViolationException - might be thrown if constraints are
violated.
SerializeException - thrown if one of the internally used Serializers
throws an exception.
protected void addBoundingBox(AttributeList list)
throws AttributeException,
ConstraintViolationException
Boundingbox of the internal group to the given
AttributeList.
list - the AttributeList to add the
BoundingBox to.
AttributeException - thrown when one of the attribute related operation
throws an exception.
ConstraintViolationException - might be thrown if constraints are
violated.
protected void addContentBorder(AttributeList list)
throws AttributeException,
ConstraintViolationException
list - the AttributeList to add the content border
sizes to.
AttributeException - thrown when one of the attribute related operation
throws an exception.
ConstraintViolationException - might be thrown if constraints are
violated.
protected void addFoldStateAttributes(AttributeList list)
throws AttributeException,
ConstraintViolationException
AttributeList.
list - the AttributeList to add the content border
sizes to.
AttributeException - thrown when one of the attribute related operation
throws an exception.
ConstraintViolationException - might be thrown if constraints are
violated.
protected Attribute getSizeAttribute(java.lang.String attributeName,
Size size)
throws ConstraintViolationException,
AttributeException
Attribute for a given Size instance. The method
concatenates the size values comma separated and puts them into the value
part of the resulting Attribute.
attributeName - a name for the returned Attribute.size - the Size to retrieve an Attribute
holding all significant properties for.
AttributeException - thrown when one of the attribute related operation
throws an exception.
ConstraintViolationException - might be thrown if constraints are
violated.
protected final Attribute getAnchorAttribute(java.lang.String attributeName,
Anchor anchor)
throws IllegalNameException,
IllegalValueException,
ConstraintViolationException
IllegalNameException
IllegalValueException
ConstraintViolationExceptionprotected CompositeGroup getGroup()
CompositeGroup to serialize.
CompositeGroup to serialize.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||