Class Validation

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

@Entity @VoDml(id="RegTAP:Validation", role=objectType) public class Validation extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Validation levels for resources and capabilities. objectType: Validation
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • validated_by

      @VoDml(id="RegTAP:Validation.validated_by", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String validated_by
      The IVOA ID of the registry or organisation that assigned the validation level. : Attribute validated_by : multiplicity 1
    • val_level

      @VoDml(id="RegTAP:Validation.val_level", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer val_level
      A numeric grade describing the quality of the resource description, when applicable, to be used to indicate the confidence an end-user can put in the resource as part of a VO application or research study. : Attribute val_level : multiplicity 1
    • cap_index

      @VoDml(id="RegTAP:Validation.cap_index", role=attribute, type="ivoa:nonnegativeInteger", typeRole=primitiveType) protected Integer cap_index
      If non-NULL, the validation only refers to the capability referenced here. : Attribute cap_index : multiplicity 0..1
  • Constructor Details

    • Validation

      public Validation()
      Creates a new Validation
    • Validation

      public Validation(String validated_by, Integer val_level, Integer cap_index)
      full parameter constructor.
      Parameters:
      validated_by - The IVOA ID of the registry or organisation that assigned the validation level.
      val_level - A numeric grade describing the quality of the resource description, when applicable, to be used to indicate the confidence an end-user can put in the resource as part of a VO application or research study.
      cap_index - If non-NULL, the validation only refers to the capability referenced here.
    • Validation

      public Validation(Validation 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(Validation 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.
    • getValidated_by

      public String getValidated_by()
      Returns validated_by Attribute.
      Returns:
      validated_by Attribute
    • setValidated_by

      public void setValidated_by(String pValidated_by)
      Set validated_by Attribute.
      Parameters:
      pValidated_by - value to set
    • withValidated_by

      public Validation withValidated_by(String pValidated_by)
      fluent setter for validated_by Attribute.
      Parameters:
      pValidated_by - value to set
      Returns:
      Validation
    • getVal_level

      public Integer getVal_level()
      Returns val_level Attribute.
      Returns:
      val_level Attribute
    • setVal_level

      public void setVal_level(Integer pVal_level)
      Set val_level Attribute.
      Parameters:
      pVal_level - value to set
    • withVal_level

      public Validation withVal_level(Integer pVal_level)
      fluent setter for val_level Attribute.
      Parameters:
      pVal_level - value to set
      Returns:
      Validation
    • getCap_index

      public Integer getCap_index()
      Returns cap_index Attribute.
      Returns:
      cap_index Attribute
    • setCap_index

      public void setCap_index(Integer pCap_index)
      Set cap_index Attribute.
      Parameters:
      pCap_index - value to set
    • withCap_index

      public Validation withCap_index(Integer pCap_index)
      fluent setter for cap_index Attribute.
      Parameters:
      pCap_index - value to set
      Returns:
      Validation
    • createValidation

      public static Validation createValidation(Consumer<Validation.ValidationBuilder> f)
      create a Validation 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>