Class SinglePointing

java.lang.Object
org.ivoa.dm.proposal.prop.Field
org.ivoa.dm.proposal.prop.SinglePointing
All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement, org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity(name="SinglePointing") @VoDml(id="proposal:SinglePointing", role=objectType) public class SinglePointing extends Field implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
Single point on the sky.

objectType: SinglePointing

  • Field Details

    • centre

      @VoDml(id="proposal:SinglePointing.centre", role=attribute, type="proposal:CelestialPosition", typeRole=dataType) protected CelestialPosition centre
      Where to point. : Attribute centre type proposal:CelestialPosition : multiplicity 1
  • Constructor Details

    • SinglePointing

      public SinglePointing()
      Creates a new SinglePointing
    • SinglePointing

      public SinglePointing(CelestialPosition centre, String name)
      full parameter constructor.
      Parameters:
      centre - Where to point.
      name - .
    • SinglePointing

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

      public SinglePointing(Field superinstance, CelestialPosition centre)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      centre - Where to point.
  • Method Details

    • copyMe

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

      public void updateUsing(SinglePointing 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.
    • getCentre

      public CelestialPosition getCentre()
      Returns centre Attribute.
      Returns:
      centre Attribute
    • setCentre

      public void setCentre(CelestialPosition pCentre)
      Set centre Attribute.
      Parameters:
      pCentre - value to set
    • withCentre

      public SinglePointing withCentre(CelestialPosition pCentre)
      fluent setter for centre Attribute.
      Parameters:
      pCentre - value to set
      Returns:
      SinglePointing
    • createSinglePointing

      public static SinglePointing createSinglePointing(Consumer<SinglePointing.SinglePointingBuilder> f)
      create a SinglePointing 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 Field
    • delete

      public void delete(jakarta.persistence.EntityManager em)
      Specified by:
      delete in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>