Package org.ivoa.dm.proposal.prop
Class Point
java.lang.Object
org.ivoa.dm.proposal.prop.Field
org.ivoa.dm.proposal.prop.Point
- All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement
,org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="proposal:Point",
role=objectType)
public class Point
extends Field
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
Single point on the sky.
objectType: Point
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder class for Point, mainly for use in the functional builder pattern. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopyMe()
static Point
create a Point in functional builder style.void
org.ivoa.dm.stc.coords.Point
Returns centre Attributevoid
jpaClone
(jakarta.persistence.EntityManager em) void
persistRefs
(jakarta.persistence.EntityManager _em) void
setCentre
(org.ivoa.dm.stc.coords.Point pCentre) Defines centre Attributevoid
updateUsing
(Point other) Update this object with the content of the given object.withCentre
(org.ivoa.dm.stc.coords.Point pCentre) Methods inherited from class org.ivoa.dm.proposal.prop.Field
getId, getName, getXmlId, hasNaturalKey, setName, setXmlId, updateUsing, withName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType
getId
Methods inherited from interface org.ivoa.vodml.jaxb.XmlIdManagement
getXmlId, hasNaturalKey, setXmlId
-
Field Details
-
centre
@VoDml(id="proposal:Point.centre", role=attribute, type="coords:Point", typeRole=dataType) protected org.ivoa.dm.stc.coords.Point centre. : Attribute centre : multiplicity 1
-
-
Constructor Details
-
Point
public Point()Creates a new Point -
Point
full parameter constructor.- Parameters:
centre
- .name
- .
-
Point
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other
- the object to be copied.
-
Point
Constructor from supertype instance.- Parameters:
superinstance
- The supertype.centre
- .
-
-
Method Details
-
copyMe
-
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.
-
getCentre
public org.ivoa.dm.stc.coords.Point getCentre()Returns centre Attribute- Returns:
- centre Attribute
-
setCentre
public void setCentre(org.ivoa.dm.stc.coords.Point pCentre) Defines centre Attribute- Parameters:
pCentre
- value to set
-
withCentre
-
createPoint
create a Point in functional builder style.- Parameters:
f
- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad() -
jpaClone
public void jpaClone(jakarta.persistence.EntityManager em) -
persistRefs
public void persistRefs(jakarta.persistence.EntityManager _em) - Specified by:
persistRefs
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
- Overrides:
persistRefs
in classField
-