|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.generic.attribute.AttributePersistenceUtilities
The AttributePersistenceUtilities class provides some
functionalities used for serializing and building attributes.
| Field Summary | |
static java.lang.String |
CUSTOM_ATTGENERATORKEY
Constants holding unique names for the various custom attribute properties. |
static java.lang.String |
CUSTOM_ATTNAME
Constants holding unique names for the various custom attribute properties. |
static java.lang.String |
CUSTOM_ATTREPRESENTATION
Constants holding unique names for the various custom attribute properties. |
static java.lang.String |
CUSTOM_ATTSETNAME
Constants holding unique names for the various custom attribute properties. |
static java.lang.String |
CUSTOM_SETNAME
Constants holding unique names for the various custom attribute properties. |
| Method Summary | |
static AttributeList |
convertCustomAttributes(AttributeFactory aFactory,
AttributeSet customAttributes)
Converts the custom attributes within the AttributeSet
given by customAttributes into an AttributeList
that can be serialized. |
static AttributeSet |
createCustomAttributes(AttributeList graphobjectlist)
Creates an AttributeSet holding custom
Attributes from the AttributeList of serialized
Attributes given by graphobjectlist. |
static Attribute |
serializeAttribute(Attribute attribute)
Adds the given Attribute to an AttributeSet and
then wraps it in an Attribute so that it's ready for
serialization. |
| 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 CUSTOM_SETNAME
public static final java.lang.String CUSTOM_ATTSETNAME
public static final java.lang.String CUSTOM_ATTNAME
public static final java.lang.String CUSTOM_ATTREPRESENTATION
public static final java.lang.String CUSTOM_ATTGENERATORKEY
| Method Detail |
public static final AttributeList convertCustomAttributes(AttributeFactory aFactory,
AttributeSet customAttributes)
AttributeSet
given by customAttributes into an AttributeList
that can be serialized.
aFactory - an instance of an AttributeFactorycustomAttributes - the AttributeSet that holds the
custom attributes currently assigned to the Node
AttributeList with the custom
attributes of the Node
public static final AttributeSet createCustomAttributes(AttributeList graphobjectlist)
throws BuildException
AttributeSet holding custom
Attributes from the AttributeList of serialized
Attributes given by graphobjectlist.
graphobjectlist - the AttributeList of serialized graph
model object.
AttributeSet that contains the deserialized
custom Attributes.
BuildException, - if an error occurs.
BuildExceptionpublic static final Attribute serializeAttribute(Attribute attribute)
Attribute to an AttributeSet and
then wraps it in an Attribute so that it's ready for
serialization.
attribute - the Attribute to serialize.
Attribute holding an AttributeSet.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||