|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.composite.style.persistence.StyleDescriptorSerializer
The StyleDescriptorSerializer creates an AttributeList from a given StyleDescriptor instance by creating simple Attributes for the name and type part and string based references to the (hopefully) previously stored StyleItems.
| Constructor Summary | |
StyleDescriptorSerializer(StyleDescriptor item)
Creates a new StyleDescriptorSerializer. |
|
| Method Summary | |
static java.lang.String |
getTypeName(int type)
This method returns the matching string constant to a given CompositeType constant. |
AttributeList |
serialize()
Translates the information of the object to be serialized into an AttributeList. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StyleDescriptorSerializer(StyleDescriptor item)
StyleDescriptorSerializer.
item - to serialize.| Method Detail |
public AttributeList serialize()
throws SerializeException
SerializerAttributeList.
serialize in interface SerializerSerializeException - is thrown whenever an error occurs while
serializing the given object.Serializer.serialize()
public static final java.lang.String getTypeName(int type)
throws SerializeException
type - the integer constant of a Composite.
SerializeException - thrown if the type identifier is smaller than 0
or bigger than the length of the
StyleConstantsPersistence#compositeTypeFormats
array.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||