Class Shape


  • public class Shape
    extends AbstractXJdfType<java.lang.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 Summary

      Constructors 
      Constructor Description
      Shape()
      Default constructor.
      Shape​(float x, float y)
      Custom constructor, accepting several values for initializing.
      Shape​(float x, float y, float z)
      Custom constructor, accepting several values for initializing.
      Shape​(java.lang.String expression)
      Custom Constructor.
    • Constructor Detail

      • 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​(java.lang.String expression)
        Custom Constructor. Creates a new Shape instance by a String expression.
        Parameters:
        expression - Shape as String expression.
    • Method Detail

      • 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 java.lang.String marshal​(Shape shape)
        Specified by:
        marshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​Shape>
        See Also:
        XmlAdapter.marshal(java.lang.Object)
      • unmarshal

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

        public java.lang.String toString()
        Specified by:
        toString in class AbstractXJdfType<java.lang.String,​Shape>
        See Also:
        Object.toString()