Package org.ivoa.dm.caom2
Class EnergyTransition
java.lang.Object
org.ivoa.dm.caom2.EnergyTransition
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
@Embeddable
@VoDml(id="caom2:EnergyTransition",
role=dataType)
public class EnergyTransition
extends Object
implements org.ivoa.vodml.jpa.JPAManipulations
.
dataType: EnergyTransition
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for EnergyTransition, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new EnergyTransitionEnergyTransition(String species, String transition) full parameter constructor.EnergyTransition(EnergyTransition other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic EnergyTransitioncreate a EnergyTransition in functional builder style.voidReturns species Attribute.Returns transition Attribute.voidsetSpecies(String pSpecies) Set species Attribute.voidsetTransition(String pTransition) Set transition Attribute.voidupdateUsing(EnergyTransition other) Update this object with the content of the given object.withSpecies(String pSpecies) fluent setter for species Attribute.withTransition(String pTransition) fluent setter for transition Attribute.
-
Field Details
-
species
@VoDml(id="caom2:EnergyTransition.species", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String species. : Attribute species : multiplicity 1 -
transition
@VoDml(id="caom2:EnergyTransition.transition", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String transition. : Attribute transition : multiplicity 1
-
-
Constructor Details
-
EnergyTransition
public EnergyTransition()Creates a new EnergyTransition -
EnergyTransition
full parameter constructor.- Parameters:
species- .transition- .
-
EnergyTransition
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.
-
getSpecies
Returns species Attribute.- Returns:
- species Attribute
-
setSpecies
Set species Attribute.- Parameters:
pSpecies- value to set
-
withSpecies
fluent setter for species Attribute.- Parameters:
pSpecies- value to set- Returns:
- EnergyTransition
-
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:
- EnergyTransition
-
createEnergyTransition
public static EnergyTransition createEnergyTransition(Consumer<EnergyTransition.EnergyTransitionBuilder> f) create a EnergyTransition 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
-