|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.composite.style.persistence.StyleItemBuilder
The StyleItemBuilder creates StyleItem instances from a given AttributeList. Basically it means to restore the name and type value and create the appropriate Format instance from a (canonical) string.
| Constructor Summary | |
StyleItemBuilder()
Constructor for StyleItemBuilder. |
|
| 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 AttributeSet |
convertSet(AttributeSet set)
Method convertSet creates an AttributeSet from a given set of Formats. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StyleItemBuilder()
| 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.Builder.build(AttributeList)
protected AttributeSet convertSet(AttributeSet set)
throws BuildException,
ConstraintViolationException,
AttributeException
null is passed. The set is
immediately returned, if its empty. Every non-empty set is asserted to contain
either a Border or a Stroke attribute.
set - the AttributeSet to convert.
BuildException - thrown if null is passed as argument.
ConstraintViolationException - thrown if the AttributeSet manipulation fails.
IllegalAttributeException - thrown if the AttributeSet manipulation fails.
AttributeException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||