Package org.ivoa.dm.proposal.prop.coords
Class CartesianPoint
java.lang.Object
org.ivoa.dm.proposal.prop.coords.CartesianPoint
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
@Embeddable
@VoDml(id="proposal:coords.CartesianPoint",
role=dataType)
public class CartesianPoint
extends Object
implements org.ivoa.vodml.jpa.JPAManipulations
.
dataType: CartesianPoint
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for CartesianPoint, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new CartesianPointCartesianPoint(org.ivoa.dm.ivoa.RealQuantity x, org.ivoa.dm.ivoa.RealQuantity y, org.ivoa.dm.ivoa.RealQuantity z, String refpos) full parameter constructor.CartesianPoint(CartesianPoint other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic CartesianPointcreate a CartesianPoint in functional builder style.booleanvoidReturns refpos Attribute.org.ivoa.dm.ivoa.RealQuantitygetX()Returns x Attribute.org.ivoa.dm.ivoa.RealQuantitygetY()Returns y Attribute.org.ivoa.dm.ivoa.RealQuantitygetZ()Returns z Attribute.inthashCode()voidSet refpos Attribute.voidsetX(org.ivoa.dm.ivoa.RealQuantity pX) Set x Attribute.voidsetY(org.ivoa.dm.ivoa.RealQuantity pY) Set y Attribute.voidsetZ(org.ivoa.dm.ivoa.RealQuantity pZ) Set z Attribute.voidupdateUsing(CartesianPoint other) Update this object with the content of the given object.withRefpos(String pRefpos) fluent setter for refpos Attribute.withX(org.ivoa.dm.ivoa.RealQuantity pX) fluent setter for x Attribute.withY(org.ivoa.dm.ivoa.RealQuantity pY) fluent setter for y Attribute.withZ(org.ivoa.dm.ivoa.RealQuantity pZ) fluent setter for z Attribute.
-
Field Details
-
x
@VoDml(id="proposal:coords.CartesianPoint.x", role=attribute, type="ivoa:RealQuantity", typeRole=dataType) protected org.ivoa.dm.ivoa.RealQuantity xx coord. : Attribute x type ivoa:RealQuantity : multiplicity 1 -
y
@VoDml(id="proposal:coords.CartesianPoint.y", role=attribute, type="ivoa:RealQuantity", typeRole=dataType) protected org.ivoa.dm.ivoa.RealQuantity yy coord. : Attribute y type ivoa:RealQuantity : multiplicity 1 -
z
@VoDml(id="proposal:coords.CartesianPoint.z", role=attribute, type="ivoa:RealQuantity", typeRole=dataType) protected org.ivoa.dm.ivoa.RealQuantity zz coord. : Attribute z type ivoa:RealQuantity : multiplicity 1 -
refpos
@VoDml(id="proposal:coords.CartesianPoint.refpos", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String refposThe reference position for this coordinate system. : Attribute refpos type ivoa:string : multiplicity 1
-
-
Constructor Details
-
CartesianPoint
public CartesianPoint()Creates a new CartesianPoint -
CartesianPoint
public CartesianPoint(org.ivoa.dm.ivoa.RealQuantity x, org.ivoa.dm.ivoa.RealQuantity y, org.ivoa.dm.ivoa.RealQuantity z, String refpos) full parameter constructor.- Parameters:
x- x coord.y- y coord.z- z coord.refpos- The reference position for this coordinate system.
-
CartesianPoint
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
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.
-
getX
public org.ivoa.dm.ivoa.RealQuantity getX()Returns x Attribute.- Returns:
- x Attribute
-
setX
public void setX(org.ivoa.dm.ivoa.RealQuantity pX) Set x Attribute.- Parameters:
pX- value to set
-
withX
fluent setter for x Attribute.- Parameters:
pX- value to set- Returns:
- CartesianPoint
-
getY
public org.ivoa.dm.ivoa.RealQuantity getY()Returns y Attribute.- Returns:
- y Attribute
-
setY
public void setY(org.ivoa.dm.ivoa.RealQuantity pY) Set y Attribute.- Parameters:
pY- value to set
-
withY
fluent setter for y Attribute.- Parameters:
pY- value to set- Returns:
- CartesianPoint
-
getZ
public org.ivoa.dm.ivoa.RealQuantity getZ()Returns z Attribute.- Returns:
- z Attribute
-
setZ
public void setZ(org.ivoa.dm.ivoa.RealQuantity pZ) Set z Attribute.- Parameters:
pZ- value to set
-
withZ
fluent setter for z Attribute.- Parameters:
pZ- value to set- Returns:
- CartesianPoint
-
getRefpos
Returns refpos Attribute.- Returns:
- refpos Attribute
-
setRefpos
Set refpos Attribute.- Parameters:
pRefpos- value to set
-
withRefpos
fluent setter for refpos Attribute.- Parameters:
pRefpos- value to set- Returns:
- CartesianPoint
-
createCartesianPoint
create a CartesianPoint 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
-
equals
-
hashCode
public int hashCode()
-