Class ScienceSpectralWindow

java.lang.Object
org.ivoa.dm.proposal.prop.ScienceSpectralWindow
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="proposal:ScienceSpectralWindow", role=objectType) public class ScienceSpectralWindow extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A spectral window for science use. objectType: ScienceSpectralWindow
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • spectralWindowSetup

      @VoDml(id="proposal:ScienceSpectralWindow.spectralWindowSetup", role=composition, type="proposal:SpectralWindowSetup", typeRole=objectType) protected SpectralWindowSetup spectralWindowSetup
      . composition spectralWindowSetup : ( Multiplicity : 0..1 )
    • expectedSpectralLine

      @VoDml(id="proposal:ScienceSpectralWindow.expectedSpectralLine", role=composition, type="proposal:ExpectedSpectralLine", typeRole=objectType) protected List<ExpectedSpectralLine> expectedSpectralLine
      . composition expectedSpectralLine : ( Multiplicity : 0..* )
  • Constructor Details

    • ScienceSpectralWindow

      public ScienceSpectralWindow()
      Creates a new ScienceSpectralWindow
    • ScienceSpectralWindow

      public ScienceSpectralWindow(SpectralWindowSetup spectralWindowSetup, List<ExpectedSpectralLine> expectedSpectralLine)
      full parameter constructor.
      Parameters:
      spectralWindowSetup - .
      expectedSpectralLine - .
    • ScienceSpectralWindow

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

    • getId

      public Long getId()
      Specified by:
      getId in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
      Returns:
      the id
    • updateUsing

      public void updateUsing(ScienceSpectralWindow 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.
    • getSpectralWindowSetup

      public SpectralWindowSetup getSpectralWindowSetup()
      Returns spectralWindowSetup Attribute
      Returns:
      spectralWindowSetup Attribute
    • setSpectralWindowSetup

      public void setSpectralWindowSetup(SpectralWindowSetup pSpectralWindowSetup)
      Defines spectralWindowSetup Attribute
      Parameters:
      pSpectralWindowSetup - value to set
    • withSpectralWindowSetup

      public ScienceSpectralWindow withSpectralWindowSetup(SpectralWindowSetup pSpectralWindowSetup)
    • getExpectedSpectralLine

      public List<ExpectedSpectralLine> getExpectedSpectralLine()
      Returns expectedSpectralLine composition as an immutable list.
      Returns:
      expectedSpectralLine composition
    • setExpectedSpectralLine

      public void setExpectedSpectralLine(List<ExpectedSpectralLine> pExpectedSpectralLine)
      Defines whole expectedSpectralLine composition.
      Parameters:
      pExpectedSpectralLine - composition to set
    • addToExpectedSpectralLine

      public void addToExpectedSpectralLine(ExpectedSpectralLine p)
      Add a org.ivoa.dm.proposal.prop.ExpectedSpectralLine to the composition.
      Parameters:
      p - org.ivoa.dm.proposal.prop.ExpectedSpectralLine to add
    • removeFromExpectedSpectralLine

      public void removeFromExpectedSpectralLine(ExpectedSpectralLine p)
      Remove a org.ivoa.dm.proposal.prop.ExpectedSpectralLine from the composition.
      Parameters:
      p - org.ivoa.dm.proposal.prop.ExpectedSpectralLine to remove
    • replaceInExpectedSpectralLine

      public void replaceInExpectedSpectralLine(ExpectedSpectralLine _p)
      update a org.ivoa.dm.proposal.prop.ExpectedSpectralLine in the composition.
      Parameters:
      _p - org.ivoa.dm.proposal.prop.ExpectedSpectralLine to update the match is done via the database key
    • createScienceSpectralWindow

      create a ScienceSpectralWindow 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
    • jpaClone

      public void jpaClone(jakarta.persistence.EntityManager em)
      Specified by:
      jpaClone in interface org.ivoa.vodml.jpa.JPAManipulations
    • persistRefs

      public void persistRefs(jakarta.persistence.EntityManager _em)
      Specified by:
      persistRefs in interface org.ivoa.vodml.jpa.JPAManipulations