Package org.cip4.lib.xjdf.type
Class Shape
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<ValueType,BoundType>
XML Attributes of type shape are used to describe a three dimensional box. A shape is represented as an array of
three (positive or zero) numbers — x y z —
specifying the Width x, height y and depth z coordinates of the shape, in that order.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.cip4.lib.xjdf.type.AbstractXJdfType
equals, hashCode
-
Constructor Details
-
Shape
public Shape()Default constructor. -
Shape
public Shape(float x, float y) Custom constructor, accepting several values for initializing. -
Shape
public Shape(float x, float y, float z) Custom constructor, accepting several values for initializing. -
Shape
Custom Constructor. Creates a new Shape instance by a String expression.- Parameters:
expression- Shape as String expression.
-
-
Method Details
-
getX
public double getX()Getter for x attribute.- Returns:
- the x
-
getY
public double getY()Getter for y attribute.- Returns:
- the y
-
getZ
public double getZ()Getter for z attribute.- Returns:
- the z
-
marshal
-
unmarshal
-
toString
- Specified by:
toStringin classAbstractXJdfType<String,Shape> - See Also:
-