Class Validation

java.lang.Object
org.ivoa.dm.registry.voresource.Validation
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations

@Embeddable @VoDml(id="VOResource:Validation", role=dataType) public class Validation extends Object implements org.ivoa.vodml.jpa.JPAManipulations
a validation stamp combining a validation level and the ID of the validator. dataType: Validation
  • Field Details

    • value

      @VoDml(id="VOResource:Validation.value", role=attribute, type="VOResource:ValidationLevel", typeRole=enumeration) protected ValidationLevel value
      . : Attribute value : multiplicity 1
    • validatedBy

      @VoDml(id="VOResource:Validation.validatedBy", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String validatedBy
      The IVOA ID of the registry or organisation that assigned the validation level. : Attribute validatedBy : multiplicity 1
  • Constructor Details

    • Validation

      public Validation()
      Creates a new Validation
    • Validation

      public Validation(ValidationLevel value, String validatedBy)
      full parameter constructor.
      Parameters:
      value - .
      validatedBy - The IVOA ID of the registry or organisation that assigned the validation level.
    • 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

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

      public ValidationLevel getValue()
      Returns value Attribute.
      Returns:
      value Attribute
    • setValue

      public void setValue(ValidationLevel pValue)
      Set value Attribute.
      Parameters:
      pValue - value to set
    • withValue

      public Validation withValue(ValidationLevel pValue)
      fluent setter for value Attribute.
      Parameters:
      pValue - value to set
      Returns:
      Validation
    • getValidatedBy

      public String getValidatedBy()
      Returns validatedBy Attribute.
      Returns:
      validatedBy Attribute
    • setValidatedBy

      public void setValidatedBy(String pValidatedBy)
      Set validatedBy Attribute.
      Parameters:
      pValidatedBy - value to set
    • withValidatedBy

      public Validation withValidatedBy(String pValidatedBy)
      fluent setter for validatedBy Attribute.
      Parameters:
      pValidatedBy - 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