Package org.ivoa.dm.adqlgeom
Class Box
java.lang.Object
org.ivoa.dm.adqlgeom.Shape
org.ivoa.dm.adqlgeom.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 ClassesModifier and TypeClassDescriptionstatic classA builder class for Box, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBox()Creates a new BoxCopy 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 TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static Boxcreate a Box in functional builder style.booleanvoidorg.javastro.ivoacore.pgsphere.types.PointReturns pos_ne Attribute.org.javastro.ivoacore.pgsphere.types.PointReturns pos_sw Attribute.inthashCode()voidsetPos_ne(org.javastro.ivoacore.pgsphere.types.Point pPos_ne) Set pos_ne Attribute.voidsetPos_sw(org.javastro.ivoacore.pgsphere.types.Point pPos_sw) Set pos_sw Attribute.voidupdateUsing(Box other) 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
-
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_swsouth-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_nenorth-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
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
make a clone of the object taking into account current polymorhic type. -
updateUsing
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
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
fluent setter for pos_ne Attribute.- Parameters:
pPos_ne- value to set- Returns:
- Box
-
createBox
create a Box in functional builder style.- Parameters:
f- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad() -
equals
-
hashCode
public int hashCode()
-