|
|||||||||||
| 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.CompositeTableSerializer
This class serializes a CompositeTable into an
AttributeList that than can be written out to an
XML-file.
| Field Summary | |
static java.lang.String |
COMPOSITETABLECELL
Constant used to serialize/build a cell of a CompositeTable |
static java.lang.String |
COMPOSITETABLECELLS
Constant used to serialize/build the list of cells of a CompositeTable |
| Constructor Summary | |
CompositeTableSerializer(CompositeTable table)
Constructor specifying the CompositeGroup to serialize. |
|
| Method Summary | |
protected void |
addCompositeGroupAttributes(AttributeList list)
Adds the attributes of the internal CompositeGroup instance to the given AttributeList. |
protected void |
addFoldStateAttributes(AttributeList list)
Adds all fold-relevant elements of the internal group to the given AttributeList. |
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 |
public static final java.lang.String COMPOSITETABLECELL
CompositeTable
public static final java.lang.String COMPOSITETABLECELLS
CompositeTable
| Constructor Detail |
public CompositeTableSerializer(CompositeTable table)
CompositeGroup to serialize.
table - the CompositeTable 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 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.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||