Package org.ivoa.dm.registry.voresource
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
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Validation, mainly for use in the functional builder pattern. - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe IVOA ID of the registry or organisation that assigned the validation level.protected ValidationLevel. - 
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ValidationValidation(Validation other) Copy Constructor.Validation(ValidationLevel value, String validatedBy) full parameter constructor. - 
Method Summary
Modifier and TypeMethodDescriptionstatic Validationcreate a Validation in functional builder style.voidReturns validatedBy Attribute.getValue()Returns value Attribute.voidsetValidatedBy(String pValidatedBy) Set validatedBy Attribute.voidsetValue(ValidationLevel pValue) Set value Attribute.voidupdateUsing(Validation other) Update this object with the content of the given object.withValidatedBy(String pValidatedBy) fluent setter for validatedBy Attribute.withValue(ValidationLevel pValue) fluent setter for value Attribute. 
- 
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 validatedByThe 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
full parameter constructor.- Parameters:
 value- .validatedBy- The IVOA ID of the registry or organisation that assigned the validation level.
 - 
Validation
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
 other- the object to be copied.
 
 - 
 - 
Method Details
- 
updateUsing
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
Returns value Attribute.- Returns:
 - value Attribute
 
 - 
setValue
Set value Attribute.- Parameters:
 pValue- value to set
 - 
withValue
fluent setter for value Attribute.- Parameters:
 pValue- value to set- Returns:
 - Validation
 
 - 
getValidatedBy
Returns validatedBy Attribute.- Returns:
 - validatedBy Attribute
 
 - 
setValidatedBy
Set validatedBy Attribute.- Parameters:
 pValidatedBy- value to set
 - 
withValidatedBy
fluent setter for validatedBy Attribute.- Parameters:
 pValidatedBy- value to set- Returns:
 - Validation
 
 - 
createValidation
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:
 forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
 
 -