Class Box

All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations

@Embeddable @VoDml(id="adqlgeom:Box", role=dataType) public class Box extends Shape implements org.ivoa.vodml.jpa.JPAManipulations
a simple bounding box. dataType: Box
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    A builder class for Box, mainly for use in the functional builder pattern.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.javastro.ivoacore.pgsphere.types.Point
    north-east edge of the box.
    protected org.javastro.ivoacore.pgsphere.types.Point
    south-west edge of the box.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Box()
    Creates a new Box
    Box(Box other)
    Copy Constructor.
    Box(Shape superinstance, org.javastro.ivoacore.pgsphere.types.Point pos_sw, org.javastro.ivoacore.pgsphere.types.Point pos_ne)
    Constructor from supertype instance.
    Box(org.javastro.ivoacore.pgsphere.types.Point pos_sw, org.javastro.ivoacore.pgsphere.types.Point pos_ne)
    full parameter constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    make a clone of the object taking into account current polymorhic type.
    static Box
    create a Box in functional builder style.
    boolean
     
    void
     
    org.javastro.ivoacore.pgsphere.types.Point
    Returns pos_ne Attribute.
    org.javastro.ivoacore.pgsphere.types.Point
    Returns pos_sw Attribute.
    int
     
    void
    setPos_ne(org.javastro.ivoacore.pgsphere.types.Point pPos_ne)
    Set pos_ne Attribute.
    void
    setPos_sw(org.javastro.ivoacore.pgsphere.types.Point pPos_sw)
    Set pos_sw Attribute.
    void
    Update this object with the content of the given object.
    withPos_ne(org.javastro.ivoacore.pgsphere.types.Point pPos_ne)
    fluent setter for pos_ne Attribute.
    withPos_sw(org.javastro.ivoacore.pgsphere.types.Point pPos_sw)
    fluent setter for pos_sw Attribute.

    Methods inherited from class org.ivoa.dm.adqlgeom.Shape

    updateUsing

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • pos_sw

      @VoDml(id="adqlgeom:Box.pos_sw", role=attribute, type="adqlgeom:Point", typeRole=dataType) protected org.javastro.ivoacore.pgsphere.types.Point pos_sw
      south-west edge of the box. : Attribute pos_sw : multiplicity 1
    • pos_ne

      @VoDml(id="adqlgeom:Box.pos_ne", role=attribute, type="adqlgeom:Point", typeRole=dataType) protected org.javastro.ivoacore.pgsphere.types.Point pos_ne
      north-east edge of the box. : Attribute pos_ne : multiplicity 1
  • Constructor Details

    • Box

      public Box()
      Creates a new Box
    • Box

      public Box(org.javastro.ivoacore.pgsphere.types.Point pos_sw, org.javastro.ivoacore.pgsphere.types.Point pos_ne)
      full parameter constructor.
      Parameters:
      pos_sw - south-west edge of the box.
      pos_ne - north-east edge of the box.
    • Box

      public Box(Box other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • Box

      public Box(Shape superinstance, org.javastro.ivoacore.pgsphere.types.Point pos_sw, org.javastro.ivoacore.pgsphere.types.Point pos_ne)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      pos_sw - south-west edge of the box.
      pos_ne - north-east edge of the box.
  • Method Details

    • copyMe

      public Shape copyMe()
      make a clone of the object taking into account current polymorhic type.
      Specified by:
      copyMe in class Shape
      Returns:
      the cloned object.
    • updateUsing

      public void updateUsing(Box other)
      Update this object with the content of the given object. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • getPos_sw

      public org.javastro.ivoacore.pgsphere.types.Point getPos_sw()
      Returns pos_sw Attribute.
      Returns:
      pos_sw Attribute
    • setPos_sw

      public void setPos_sw(org.javastro.ivoacore.pgsphere.types.Point pPos_sw)
      Set pos_sw Attribute.
      Parameters:
      pPos_sw - value to set
    • withPos_sw

      public Box withPos_sw(org.javastro.ivoacore.pgsphere.types.Point pPos_sw)
      fluent setter for pos_sw Attribute.
      Parameters:
      pPos_sw - value to set
      Returns:
      Box
    • getPos_ne

      public org.javastro.ivoacore.pgsphere.types.Point getPos_ne()
      Returns pos_ne Attribute.
      Returns:
      pos_ne Attribute
    • setPos_ne

      public void setPos_ne(org.javastro.ivoacore.pgsphere.types.Point pPos_ne)
      Set pos_ne Attribute.
      Parameters:
      pPos_ne - value to set
    • withPos_ne

      public Box withPos_ne(org.javastro.ivoacore.pgsphere.types.Point pPos_ne)
      fluent setter for pos_ne Attribute.
      Parameters:
      pPos_ne - value to set
      Returns:
      Box
    • createBox

      public static Box createBox(Consumer<Box.BoxBuilder> f)
      create a Box in functional builder style.
      Parameters:
      f - the functional builder.
      Returns:
      an object initialized from the builder.
    • forceLoad

      public void forceLoad()
      Specified by:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      forceLoad in class Shape
    • equals

      public boolean equals(Object o_)
      Overrides:
      equals in class Shape
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Shape