|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.composite.geometry.persistence.GeometryPersistenceUtilities
This class contains static methods that are of good use when it comes to
serializing GeometryItems.
| Method Summary | |
static void |
addSize(AttributeCollection collection,
java.lang.String attName,
Size size)
This methods adds the parameter Size to the given
AttributeCollection by creating a comma separated string
from the values of the Size.extensions array and using the
parameter String attName as name for the newly added
attribute. |
static int[] |
getIntegers(java.lang.String s)
Method getIntegers extracts 2 integer's from a string containing 2 integer string representations separated by a comma. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static final int[] getIntegers(java.lang.String s)
throws java.lang.NumberFormatException
s - A String like "12, 45"
java.lang.NumberFormatException - thrown if the given string is not
convertable into a Number.
public static void addSize(AttributeCollection collection,
java.lang.String attName,
Size size)
throws IllegalNameException,
IllegalAttributeException,
ConstraintViolationException,
IllegalValueException
Size to the given
AttributeCollection by creating a comma separated string
from the values of the Size.extensions array and using the
parameter String attName as name for the newly added
attribute.
attName - The name for the newly added attribute.size - the instance of class Size.
IllegalNameException
IllegalAttributeException
ConstraintViolationException
IllegalValueException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||