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
  • Field Details

    • alpha

      @VoDml(id="adqlgeom:Point.alpha", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double alpha
      longitude angle. : Attribute alpha : multiplicity 1
    • delta

      @VoDml(id="adqlgeom:Point.delta", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double delta
      latitude angle. : Attribute delta : multiplicity 1
  • Constructor Details

    • Point

      public Point()
      Creates a new Point
    • Point

      public Point(Double alpha, Double delta)
      full parameter constructor.
      Parameters:
      alpha - longitude angle.
      delta - latitude angle.
    • Point

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

    • updateUsing

      public void updateUsing(Point 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.
    • getAlpha

      public Double getAlpha()
      Returns alpha Attribute.
      Returns:
      alpha Attribute
    • setAlpha

      public void setAlpha(Double pAlpha)
      Set alpha Attribute.
      Parameters:
      pAlpha - value to set
    • withAlpha

      public Point withAlpha(Double pAlpha)
      fluent setter for alpha Attribute.
      Parameters:
      pAlpha - value to set
      Returns:
      Point
    • getDelta

      public Double getDelta()
      Returns delta Attribute.
      Returns:
      delta Attribute
    • setDelta

      public void setDelta(Double pDelta)
      Set delta Attribute.
      Parameters:
      pDelta - value to set
    • withDelta

      public Point withDelta(Double pDelta)
      fluent setter for delta Attribute.
      Parameters:
      pDelta - value to set
      Returns:
      Point
    • createPoint

      public static Point createPoint(Consumer<Point.PointBuilder> f)
      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:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations