Class Polarization

java.lang.Object
org.ivoa.dm.caom2.Polarization
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="caom2:Polarization", role=objectType) public class Polarization extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
description of polarization measurements included in the data. objectType: Polarization
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • states

      @VoDml(id="caom2:Polarization.states", role=attribute, type="caom2:PolarizationState", typeRole=enumeration) protected List<PolarizationState> states
      standard polarization states included (CHANGED cardinality in CAOM-2.5). : Attribute states : multiplicity 1..*
    • dimension

      @VoDml(id="caom2:Polarization.dimension", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer dimension
      number of polarization states included. : Attribute dimension : multiplicity 0..1
  • Constructor Details

    • Polarization

      public Polarization()
      Creates a new Polarization
    • Polarization

      public Polarization(List<PolarizationState> states, Integer dimension)
      full parameter constructor.
      Parameters:
      states - standard polarization states included (CHANGED cardinality in CAOM-2.5).
      dimension - number of polarization states included.
    • Polarization

      public Polarization(Polarization 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(Polarization 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.
    • getStates

      public List<PolarizationState> getStates()
      Returns states Attribute.
      Returns:
      states Attribute
    • setStates

      public void setStates(List<PolarizationState> pStates)
      Set states Attribute.
      Parameters:
      pStates - value to set
    • withStates

      public Polarization withStates(List<PolarizationState> pStates)
      fluent setter for states Attribute.
      Parameters:
      pStates - value to set
      Returns:
      Polarization
    • getDimension

      public Integer getDimension()
      Returns dimension Attribute.
      Returns:
      dimension Attribute
    • setDimension

      public void setDimension(Integer pDimension)
      Set dimension Attribute.
      Parameters:
      pDimension - value to set
    • withDimension

      public Polarization withDimension(Integer pDimension)
      fluent setter for dimension Attribute.
      Parameters:
      pDimension - value to set
      Returns:
      Polarization
    • createPolarization

      public static Polarization createPolarization(Consumer<Polarization.PolarizationBuilder> f)
      create a Polarization 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
    • delete

      public void delete(jakarta.persistence.EntityManager em)
      Specified by:
      delete in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>