Package org.ivoa.dm.regtap
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder class for Validation, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Long
inserted database keyprotected Integer
If non-NULL, the validation only refers to the capability referenced here.protected Integer
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.protected String
The IVOA ID of the registry or organisation that assigned the validation level. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ValidationValidation
(String validated_by, Integer val_level, Integer cap_index) full parameter constructor.Validation
(Validation other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic Validation
create a Validation in functional builder style.void
delete
(jakarta.persistence.EntityManager em) void
Returns cap_index Attribute.getId()
Returns val_level Attribute.Returns validated_by Attribute.void
setCap_index
(Integer pCap_index) Set cap_index Attribute.void
setVal_level
(Integer pVal_level) Set val_level Attribute.void
setValidated_by
(String pValidated_by) Set validated_by Attribute.void
updateUsing
(Validation other) Update this object with the content of the given object.withCap_index
(Integer pCap_index) fluent setter for cap_index Attribute.withVal_level
(Integer pVal_level) fluent setter for val_level Attribute.withValidated_by
(String pValidated_by) fluent setter for validated_by Attribute.
-
Field Details
-
_id
inserted database key -
validated_by
@VoDml(id="RegTAP:Validation.validated_by", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String validated_byThe 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_levelA 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_indexIf 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
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
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other
- the object to be copied.
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
- Returns:
- the id
-
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.
-
getValidated_by
Returns validated_by Attribute.- Returns:
- validated_by Attribute
-
setValidated_by
Set validated_by Attribute.- Parameters:
pValidated_by
- value to set
-
withValidated_by
fluent setter for validated_by Attribute.- Parameters:
pValidated_by
- value to set- Returns:
- Validation
-
getVal_level
Returns val_level Attribute.- Returns:
- val_level Attribute
-
setVal_level
Set val_level Attribute.- Parameters:
pVal_level
- value to set
-
withVal_level
fluent setter for val_level Attribute.- Parameters:
pVal_level
- value to set- Returns:
- Validation
-
getCap_index
Returns cap_index Attribute.- Returns:
- cap_index Attribute
-
setCap_index
Set cap_index Attribute.- Parameters:
pCap_index
- value to set
-
withCap_index
fluent setter for cap_index Attribute.- Parameters:
pCap_index
- 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:
forceLoad
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
delete
in interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-