Package org.ivoa.dm.proposal.prop
Class ExpectedSpectralLine
java.lang.Object
org.ivoa.dm.proposal.prop.ExpectedSpectralLine
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="proposal:ExpectedSpectralLine",
role=objectType)
public class ExpectedSpectralLine
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Brief description of a spectral line.
objectType: ExpectedSpectralLine
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for ExpectedSpectralLine, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ExpectedSpectralLineExpectedSpectralLine(org.ivoa.dm.ivoa.RealQuantity restFrequency, String transition, org.ivoa.dm.ivoa.StringIdentifier splatalogId, String description) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExpectedSpectralLinecreate a ExpectedSpectralLine in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns description Attribute.getId()org.ivoa.dm.ivoa.RealQuantityReturns restFrequency Attribute.org.ivoa.dm.ivoa.StringIdentifierReturns splatalogId Attribute.Returns transition Attribute.voidsetDescription(String pDescription) Set description Attribute.voidsetRestFrequency(org.ivoa.dm.ivoa.RealQuantity pRestFrequency) Set restFrequency Attribute.voidsetSplatalogId(org.ivoa.dm.ivoa.StringIdentifier pSplatalogId) Set splatalogId Attribute.voidsetTransition(String pTransition) Set transition Attribute.voidupdateUsing(ExpectedSpectralLine other) Update this object with the content of the given object.withDescription(String pDescription) fluent setter for description Attribute.withRestFrequency(org.ivoa.dm.ivoa.RealQuantity pRestFrequency) fluent setter for restFrequency Attribute.withSplatalogId(org.ivoa.dm.ivoa.StringIdentifier pSplatalogId) fluent setter for splatalogId Attribute.withTransition(String pTransition) fluent setter for transition Attribute.
-
Field Details
-
_id
inserted database key -
restFrequency
@VoDml(id="proposal:ExpectedSpectralLine.restFrequency", role=attribute, type="ivoa:RealQuantity", typeRole=dataType) protected org.ivoa.dm.ivoa.RealQuantity restFrequency. : Attribute restFrequency : multiplicity 1 -
transition
@VoDml(id="proposal:ExpectedSpectralLine.transition", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String transition. : Attribute transition : multiplicity 0..1 -
splatalogId
@VoDml(id="proposal:ExpectedSpectralLine.splatalogId", role=attribute, type="ivoa:stringIdentifier", typeRole=primitiveType) protected org.ivoa.dm.ivoa.StringIdentifier splatalogId. : Attribute splatalogId : multiplicity 1 -
description
@VoDml(id="proposal:ExpectedSpectralLine.description", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String description. : Attribute description : multiplicity 1
-
-
Constructor Details
-
ExpectedSpectralLine
public ExpectedSpectralLine()Creates a new ExpectedSpectralLine -
ExpectedSpectralLine
public ExpectedSpectralLine(org.ivoa.dm.ivoa.RealQuantity restFrequency, String transition, org.ivoa.dm.ivoa.StringIdentifier splatalogId, String description) full parameter constructor.- Parameters:
restFrequency- .transition- .splatalogId- .description- .
-
ExpectedSpectralLine
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.
-
getRestFrequency
public org.ivoa.dm.ivoa.RealQuantity getRestFrequency()Returns restFrequency Attribute.- Returns:
- restFrequency Attribute
-
setRestFrequency
public void setRestFrequency(org.ivoa.dm.ivoa.RealQuantity pRestFrequency) Set restFrequency Attribute.- Parameters:
pRestFrequency- value to set
-
withRestFrequency
fluent setter for restFrequency Attribute.- Parameters:
pRestFrequency- value to set- Returns:
- ExpectedSpectralLine
-
getTransition
Returns transition Attribute.- Returns:
- transition Attribute
-
setTransition
Set transition Attribute.- Parameters:
pTransition- value to set
-
withTransition
fluent setter for transition Attribute.- Parameters:
pTransition- value to set- Returns:
- ExpectedSpectralLine
-
getSplatalogId
public org.ivoa.dm.ivoa.StringIdentifier getSplatalogId()Returns splatalogId Attribute.- Returns:
- splatalogId Attribute
-
setSplatalogId
public void setSplatalogId(org.ivoa.dm.ivoa.StringIdentifier pSplatalogId) Set splatalogId Attribute.- Parameters:
pSplatalogId- value to set
-
withSplatalogId
fluent setter for splatalogId Attribute.- Parameters:
pSplatalogId- value to set- Returns:
- ExpectedSpectralLine
-
getDescription
Returns description Attribute.- Returns:
- description Attribute
-
setDescription
Set description Attribute.- Parameters:
pDescription- value to set
-
withDescription
fluent setter for description Attribute.- Parameters:
pDescription- value to set- Returns:
- ExpectedSpectralLine
-
createExpectedSpectralLine
public static ExpectedSpectralLine createExpectedSpectralLine(Consumer<ExpectedSpectralLine.ExpectedSpectralLineBuilder> f) create a ExpectedSpectralLine 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>
-