Package org.ivoa.dm.adqlgeom
Class Point
java.lang.Object
org.ivoa.dm.adqlgeom.Point
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
@Embeddable
@VoDml(id="adqlgeom:Point",
role=dataType)
public class Point
extends Object
implements org.ivoa.vodml.jpa.JPAManipulations
location on the sky in spherical coordinates.
dataType: Point
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Point, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Pointcreate a Point in functional builder style.voidgetAlpha()Returns alpha Attribute.getDelta()Returns delta Attribute.voidSet alpha Attribute.voidSet delta Attribute.voidupdateUsing(Point other) Update this object with the content of the given object.fluent setter for alpha Attribute.fluent setter for delta Attribute.
-
Field Details
-
alpha
@VoDml(id="adqlgeom:Point.alpha", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double alphalongitude angle. : Attribute alpha : multiplicity 1 -
delta
@VoDml(id="adqlgeom:Point.delta", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double deltalatitude angle. : Attribute delta : multiplicity 1
-
-
Constructor Details
-
Point
public Point()Creates a new Point -
Point
full parameter constructor.- Parameters:
alpha- longitude angle.delta- latitude angle.
-
Point
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
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.
-
getAlpha
Returns alpha Attribute.- Returns:
- alpha Attribute
-
setAlpha
Set alpha Attribute.- Parameters:
pAlpha- value to set
-
withAlpha
fluent setter for alpha Attribute.- Parameters:
pAlpha- value to set- Returns:
- Point
-
getDelta
Returns delta Attribute.- Returns:
- delta Attribute
-
setDelta
Set delta Attribute.- Parameters:
pDelta- value to set
-
withDelta
fluent setter for delta Attribute.- Parameters:
pDelta- value to set- Returns:
- Point
-
createPoint
create a Point in functional builder style.- Parameters:
f- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad()- Specified by:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-