Package org.ivoa.dm.caom2
Class CustomAxis
java.lang.Object
org.ivoa.dm.caom2.CustomAxis
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="caom2:CustomAxis",
role=objectType)
public class CustomAxis
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
description of a custom coordinate axis (new in CAOM-2.4).
objectType: CustomAxis
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for CustomAxis, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected Intervalcustom coordinate coverage (cardinality changed in CAOM-2.5).protected Stringcoordinate type code.protected Integernumber of discrete samples (pixels) along custom axis.detailed custom coordinate coverage (refactored in CAOM-2.5). -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new CustomAxisfull parameter constructor.CustomAxis(CustomAxis other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a org.ivoa.dm.caom2.types.IntervalM to the composition.static CustomAxiscreate a CustomAxis in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns bounds Attribute.getCtype()Returns ctype Attribute.Returns dimension Attribute.getId()Returns samples composition as an immutable list.voidRemove a org.ivoa.dm.caom2.types.IntervalM from the composition.voidupdate a org.ivoa.dm.caom2.types.IntervalM in the composition.voidSet bounds Attribute.voidSet ctype Attribute.voidsetDimension(Integer pDimension) Set dimension Attribute.voidsetSamples(List<IntervalM> pSamples) Defines whole samples composition.voidupdateUsing(CustomAxis other) Update this object with the content of the given object.withBounds(Interval pBounds) fluent setter for bounds Attribute.fluent setter for ctype Attribute.withDimension(Integer pDimension) fluent setter for dimension Attribute.
-
Field Details
-
_id
inserted database key -
ctype
@VoDml(id="caom2:CustomAxis.ctype", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String ctypecoordinate type code. : Attribute ctype : multiplicity 1 -
bounds
@VoDml(id="caom2:CustomAxis.bounds", role=attribute, type="caom2:types.Interval", typeRole=dataType) protected Interval boundscustom coordinate coverage (cardinality changed in CAOM-2.5). : Attribute bounds : multiplicity 1 -
samples
@VoDml(id="caom2:CustomAxis.samples", role=composition, type="caom2:types.IntervalM", typeRole=objectType) protected List<IntervalM> samplesdetailed custom coordinate coverage (refactored in CAOM-2.5). composition samples : ( Multiplicity : 1..* ) -
dimension
@VoDml(id="caom2:CustomAxis.dimension", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer dimensionnumber of discrete samples (pixels) along custom axis. : Attribute dimension : multiplicity 0..1
-
-
Constructor Details
-
CustomAxis
public CustomAxis()Creates a new CustomAxis -
CustomAxis
full parameter constructor.- Parameters:
ctype- coordinate type code.bounds- custom coordinate coverage (cardinality changed in CAOM-2.5).samples- detailed custom coordinate coverage (refactored in CAOM-2.5).dimension- number of discrete samples (pixels) along custom axis.
-
CustomAxis
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Returns:
- the id
-
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.
-
getCtype
Returns ctype Attribute.- Returns:
- ctype Attribute
-
setCtype
Set ctype Attribute.- Parameters:
pCtype- value to set
-
withCtype
fluent setter for ctype Attribute.- Parameters:
pCtype- value to set- Returns:
- CustomAxis
-
getBounds
Returns bounds Attribute.- Returns:
- bounds Attribute
-
setBounds
Set bounds Attribute.- Parameters:
pBounds- value to set
-
withBounds
fluent setter for bounds Attribute.- Parameters:
pBounds- value to set- Returns:
- CustomAxis
-
getSamples
Returns samples composition as an immutable list.- Returns:
- samples composition.
-
setSamples
Defines whole samples composition.- Parameters:
pSamples- composition to set.
-
addToSamples
Add a org.ivoa.dm.caom2.types.IntervalM to the composition.- Parameters:
p- org.ivoa.dm.caom2.types.IntervalM to add
-
removeFromSamples
Remove a org.ivoa.dm.caom2.types.IntervalM from the composition.- Parameters:
p- org.ivoa.dm.caom2.types.IntervalM to remove
-
replaceInSamples
update a org.ivoa.dm.caom2.types.IntervalM in the composition.- Parameters:
_p- org.ivoa.dm.caom2.types.IntervalM to update the match is done via the database key
-
getDimension
Returns dimension Attribute.- Returns:
- dimension Attribute
-
setDimension
Set dimension Attribute.- Parameters:
pDimension- value to set
-
withDimension
fluent setter for dimension Attribute.- Parameters:
pDimension- value to set- Returns:
- CustomAxis
-
createCustomAxis
create a CustomAxis 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
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-