|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.composite.style.persistence.StyleDescriptorBuilder
The StyleDescriptorBuilder restores StyleDescriptor instances from an AttributeList. The style items arent restored here and must be available through the StyleItemPool, because the StyleDescriptorSerializer only stores the names of these items (to avoid redundancy).
| Constructor Summary | |
StyleDescriptorBuilder()
Creates the StyleDescriptorBuilder. |
|
| Method Summary | |
java.lang.Object |
build(AttributeList attributes)
Builds an object from the given AttributeList by reading all
required Attributes and its values and creating the object from. |
protected java.util.List |
getItems(AttributeList list)
Method getItems returns all stored StyleDescriptorItems of this StyleDescriptor. |
protected int |
getType(java.lang.String s)
This method returns the Composite Constant integer for a given string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StyleDescriptorBuilder()
StyleDescriptorBuilder.
| Method Detail |
public java.lang.Object build(AttributeList attributes)
throws BuildException
BuilderAttributeList by reading all
required Attributes and its values and creating the object from.
build in interface Builderattributes - the AttributeList holding the informations
specifying the object to be build.
BuildException - whenever an error occurs while building an object.
protected int getType(java.lang.String s)
throws BuildException
s - the composite type constant as string.
BuildException - thrown if null or empty string
has been passed or FormatUtilities.getIdentifier(String[], int[], String)
fails.
protected java.util.List getItems(AttributeList list)
throws BuildException,
StyleItemNotFoundException
list - the AttributeList with all the names of the
styleDescriptorItems.
ArrayList containing the StyleDescriptorItems.
BuildException - thrown if an error occurs during the attribute manipulation.
StyleItemNotFoundException - thrown if an empty or null
list has been passed.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||