Class Shape

java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<ValueType,BoundType>

public class Shape extends AbstractXJdfType<String,Shape>
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 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

      public Shape(String expression)
      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

      public String marshal(Shape shape)
      Specified by:
      marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<String,Shape>
      See Also:
      • XmlAdapter.marshal(java.lang.Object)
    • unmarshal

      public Shape unmarshal(String v)
      Specified by:
      unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<String,Shape>
      See Also:
      • XmlAdapter.unmarshal(java.lang.Object)
    • toString

      public String toString()
      Specified by:
      toString in class AbstractXJdfType<String,Shape>
      See Also: