Class Justification

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

@Entity @VoDml(id="proposal:Justification", role=objectType) public class Justification extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
The justification for the proposal. Note that the justification is for reading by humans and is not parsed to extract things like source lists - that sort of information must be entered in the correct place in the model. objectType: Justification
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • text

      @VoDml(id="proposal:Justification.text", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String text
      the full text of the justification. : Attribute text : multiplicity 1
    • format

      @VoDml(id="proposal:Justification.format", role=attribute, type="proposal:TextFormats", typeRole=enumeration) protected TextFormats format
      the format of the text. : Attribute format : multiplicity 1
  • Constructor Details

    • Justification

      public Justification()
      Creates a new Justification
    • Justification

      public Justification(String text, TextFormats format)
      full parameter constructor.
      Parameters:
      text - the full text of the justification.
      format - the format of the text.
    • Justification

      public Justification(Justification 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(Justification 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.
    • getText

      public String getText()
      Returns text Attribute
      Returns:
      text Attribute
    • setText

      public void setText(String pText)
      Defines text Attribute
      Parameters:
      pText - value to set
    • withText

      public Justification withText(String pText)
    • getFormat

      public TextFormats getFormat()
      Returns format Attribute
      Returns:
      format Attribute
    • setFormat

      public void setFormat(TextFormats pFormat)
      Defines format Attribute
      Parameters:
      pFormat - value to set
    • withFormat

      public Justification withFormat(TextFormats pFormat)
    • createJustification

      public static Justification createJustification(Consumer<Justification.JustificationBuilder> f)
      create a Justification 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