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
  • 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

      public EnergyTransition(String species, String transition)
      full parameter constructor.
      Parameters:
      species - .
      transition - .
    • EnergyTransition

      public EnergyTransition(EnergyTransition other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
  • Method Details

    • updateUsing

      public void updateUsing(EnergyTransition other)
      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

      public String getSpecies()
      Returns species Attribute.
      Returns:
      species Attribute
    • setSpecies

      public void setSpecies(String pSpecies)
      Set species Attribute.
      Parameters:
      pSpecies - value to set
    • withSpecies

      public EnergyTransition withSpecies(String pSpecies)
      fluent setter for species Attribute.
      Parameters:
      pSpecies - value to set
      Returns:
      EnergyTransition
    • getTransition

      public String getTransition()
      Returns transition Attribute.
      Returns:
      transition Attribute
    • setTransition

      public void setTransition(String pTransition)
      Set transition Attribute.
      Parameters:
      pTransition - value to set
    • withTransition

      public EnergyTransition withTransition(String pTransition)
      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:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations