Package org.ivoa.dm.proposal.management
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Telescope, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.ivoa.dm.stc.coords.RealCartesianPointthe location of the telescope.protected Stringtelescope name.protected WikiDataIdthe wikidata id for the Telescope.Fields inherited from class org.ivoa.dm.proposal.management.ObservingPlatform
_id -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new TelescopeTelescope(String name, WikiDataId wikiId, org.ivoa.dm.stc.coords.RealCartesianPoint location) full parameter constructor.Telescope(ObservingPlatform superinstance, String name, WikiDataId wikiId, org.ivoa.dm.stc.coords.RealCartesianPoint location) Constructor from supertype instance.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static Telescopecreate a Telescope in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidorg.ivoa.dm.stc.coords.RealCartesianPointReturns location Attribute.getName()Returns name Attribute.Returns wikiId Attribute.voidsetLocation(org.ivoa.dm.stc.coords.RealCartesianPoint pLocation) Set location Attribute.voidSet name Attribute.voidsetWikiId(WikiDataId pWikiId) Set wikiId Attribute.voidupdateUsing(Telescope other) Update this object with the content of the given object.withLocation(org.ivoa.dm.stc.coords.RealCartesianPoint pLocation) fluent setter for location Attribute.fluent setter for name Attribute.withWikiId(WikiDataId pWikiId) fluent setter for wikiId Attribute.Methods inherited from class org.ivoa.dm.proposal.management.ObservingPlatform
getId, getXmlId, hasNaturalKey, setXmlId, updateClonedReferences, updateUsingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType
getIdMethods inherited from interface org.ivoa.vodml.jaxb.XmlIdManagement
getXmlId, hasNaturalKey, setXmlId
-
Field Details
-
name
@VoDml(id="proposalManagement:Telescope.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String nametelescope name. : Attribute name : multiplicity 1 -
wikiId
@VoDml(id="proposalManagement:Telescope.wikiId", role=attribute, type="proposal:WikiDataId", typeRole=primitiveType) protected WikiDataId wikiIdthe 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 locationthe 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
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
make a clone of the object taking into account current polymorhic type.- Specified by:
copyMein classObservingPlatform- Returns:
- the cloned object.
-
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.
-
getName
Returns name Attribute.- Returns:
- name Attribute
-
setName
Set name Attribute.- Parameters:
pName- value to set
-
withName
fluent setter for name Attribute.- Parameters:
pName- value to set- Returns:
- Telescope
-
getWikiId
Returns wikiId Attribute.- Returns:
- wikiId Attribute
-
setWikiId
Set wikiId Attribute.- Parameters:
pWikiId- value to set
-
withWikiId
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
fluent setter for location Attribute.- Parameters:
pLocation- value to set- Returns:
- Telescope
-
createTelescope
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:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations- Overrides:
forceLoadin classObservingPlatform
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-