Class Telescope

java.lang.Object
org.ivoa.dm.proposal.management.ObservingPlatform
org.ivoa.dm.proposal.management.Telescope
All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement, org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="proposalManagement:Telescope", role=objectType) public class Telescope extends ObservingPlatform implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
. objectType: Telescope
  • Field Details

    • name

      @VoDml(id="proposalManagement:Telescope.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String name
      telescope name. : Attribute name : multiplicity 1
    • wikiId

      @VoDml(id="proposalManagement:Telescope.wikiId", role=attribute, type="proposal:WikiDataId", typeRole=primitiveType) protected WikiDataId wikiId
      the wikidata id for the Telescope. : Attribute wikiId : multiplicity 0..1
    • location

      @VoDml(id="proposalManagement:Telescope.location", role=attribute, type="coords:RealCartesianPoint", typeRole=dataType) protected org.ivoa.dm.stc.coords.RealCartesianPoint location
      the location of the telescope. : Attribute location : multiplicity 1
  • Constructor Details

    • Telescope

      public Telescope()
      Creates a new Telescope
    • Telescope

      public Telescope(String name, WikiDataId wikiId, org.ivoa.dm.stc.coords.RealCartesianPoint location)
      full parameter constructor.
      Parameters:
      name - telescope name.
      wikiId - the wikidata id for the Telescope.
      location - the location of the telescope.
    • Telescope

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

      public Telescope(ObservingPlatform superinstance, String name, WikiDataId wikiId, org.ivoa.dm.stc.coords.RealCartesianPoint location)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      name - telescope name.
      wikiId - the wikidata id for the Telescope.
      location - the location of the telescope.
  • Method Details

    • copyMe

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

      public void updateUsing(Telescope 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.
    • getName

      public String getName()
      Returns name Attribute.
      Returns:
      name Attribute
    • setName

      public void setName(String pName)
      Set name Attribute.
      Parameters:
      pName - value to set
    • withName

      public Telescope withName(String pName)
      fluent setter for name Attribute.
      Parameters:
      pName - value to set
      Returns:
      Telescope
    • getWikiId

      public WikiDataId getWikiId()
      Returns wikiId Attribute.
      Returns:
      wikiId Attribute
    • setWikiId

      public void setWikiId(WikiDataId pWikiId)
      Set wikiId Attribute.
      Parameters:
      pWikiId - value to set
    • withWikiId

      public Telescope withWikiId(WikiDataId pWikiId)
      fluent setter for wikiId Attribute.
      Parameters:
      pWikiId - value to set
      Returns:
      Telescope
    • getLocation

      public org.ivoa.dm.stc.coords.RealCartesianPoint getLocation()
      Returns location Attribute.
      Returns:
      location Attribute
    • setLocation

      public void setLocation(org.ivoa.dm.stc.coords.RealCartesianPoint pLocation)
      Set location Attribute.
      Parameters:
      pLocation - value to set
    • withLocation

      public Telescope withLocation(org.ivoa.dm.stc.coords.RealCartesianPoint pLocation)
      fluent setter for location Attribute.
      Parameters:
      pLocation - value to set
      Returns:
      Telescope
    • createTelescope

      public static Telescope createTelescope(Consumer<Telescope.TelescopeBuilder> f)
      create a Telescope 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 ObservingPlatform
    • persistRefs

      @Deprecated public void persistRefs(jakarta.persistence.EntityManager _em)
      Deprecated.
      generally better to use the model level reference persistence as only this can deal with "contained" references properly.
      Specified by:
      persistRefs in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      persistRefs in class ObservingPlatform