Package org.ivoa.dm.registry.standard
Class Standard
java.lang.Object
org.ivoa.dm.registry.voresource.Resource
org.ivoa.dm.registry.standard.Standard
- All Implemented Interfaces:
 org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
- Direct Known Subclasses:
 ServiceStandard
@Entity
@VoDml(id="StandardsRegExt:Standard",
       role=objectType)
public class Standard
extends Resource
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
a description of a standard specification.
                         
                          This typically refers to an IVOA standard but is not
                          limited to such.  
 objectType:  Standard
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Standard, mainly for use in the functional builder pattern.Nested classes/interfaces inherited from class org.ivoa.dm.registry.voresource.Resource
Resource.ResourceBuilder - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringwhen present, this element indicates that all versions of the standard are considered deprecated by the publisher.protected List<EndorsedVersion>the version of the standard that is recommended for use.protected List<StandardKey>a defined key associated with this standard.a description and pointer to a schema document defined by this standard.Fields inherited from class org.ivoa.dm.registry.voresource.Resource
_id, altIdentifier, content, created, curation, identifier, shortName, status, title, updated, validationLevel, version - 
Constructor Summary
ConstructorsConstructorDescriptionStandard()Creates a new StandardStandard(List<EndorsedVersion> endorsedVersion, List<Schema> schema, String deprecated, List<StandardKey> key, List<Validation> validationLevel, String title, ShortName shortName, IdentifierURI identifier, List<String> altIdentifier, Curation curation, Content content, UTCTimestamp created, UTCTimestamp updated, Resource_status status, String version) full parameter constructor.Copy Constructor.Standard(Resource superinstance, List<EndorsedVersion> endorsedVersion, List<Schema> schema, String deprecated, List<StandardKey> key) Constructor from supertype instance. - 
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a org.ivoa.dm.registry.standard.StandardKey to the composition.voidAdd a org.ivoa.dm.registry.standard.Schema to the composition.copyMe()make a clone of the object taking into account current polymorhic type.static Standardcreate a Standard in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns deprecated Attribute.Returns endorsedVersion Attribute.getKey()Returns key composition as an immutable list.Returns schema composition as an immutable list.voidRemove a org.ivoa.dm.registry.standard.StandardKey from the composition.voidRemove a org.ivoa.dm.registry.standard.Schema from the composition.voidupdate a org.ivoa.dm.registry.standard.StandardKey in the composition.voidupdate a org.ivoa.dm.registry.standard.Schema in the composition.voidsetDeprecated(String pDeprecated) Set deprecated Attribute.voidsetEndorsedVersion(List<EndorsedVersion> pEndorsedVersion) Set endorsedVersion Attribute.voidsetKey(List<StandardKey> pKey) Defines whole key composition.voidDefines whole schema composition.voidupdateUsing(Standard other) Update this object with the content of the given object.withDeprecated(String pDeprecated) fluent setter for deprecated Attribute.withEndorsedVersion(List<EndorsedVersion> pEndorsedVersion) fluent setter for endorsedVersion Attribute.Methods inherited from class org.ivoa.dm.registry.voresource.Resource
createResource, getAltIdentifier, getContent, getCreated, getCuration, getId, getIdentifier, getShortName, getStatus, getTitle, getUpdated, getValidationLevel, getVersion, setAltIdentifier, setContent, setCreated, setCuration, setIdentifier, setShortName, setStatus, setTitle, setUpdated, setValidationLevel, setVersion, updateUsing, withAltIdentifier, withContent, withCreated, withCuration, withIdentifier, withShortName, withStatus, withTitle, withUpdated, withValidationLevel, withVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType
getId 
- 
Field Details
- 
endorsedVersion
@VoDml(id="StandardsRegExt:Standard.endorsedVersion", role=attribute, type="StandardsRegExt:EndorsedVersion", typeRole=dataType) protected List<EndorsedVersion> endorsedVersionthe version of the standard that is recommended for use. More than one version can be listed, indicating that any of these versions are recognized as acceptable for use. : Attribute endorsedVersion : multiplicity 1..* - 
schema
@VoDml(id="StandardsRegExt:Standard.schema", role=composition, type="StandardsRegExt:Schema", typeRole=objectType) protected List<Schema> schemaa description and pointer to a schema document defined by this standard. This is most typically an XML Schema, but it need not be strictly. composition schema : ( Multiplicity : 0..* ) - 
deprecated
@VoDml(id="StandardsRegExt:Standard.deprecated", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String deprecatedwhen present, this element indicates that all versions of the standard are considered deprecated by the publisher. The value is a human-readable explanation for the designation. The explanation should indicate if another standard should be preferred. : Attribute deprecated : multiplicity 0..1 - 
key
@VoDml(id="StandardsRegExt:Standard.key", role=composition, type="StandardsRegExt:StandardKey", typeRole=objectType) protected List<StandardKey> keya defined key associated with this standard. composition key : ( Multiplicity : 0..* ) 
 - 
 - 
Constructor Details
- 
Standard
public Standard()Creates a new Standard - 
Standard
public Standard(List<EndorsedVersion> endorsedVersion, List<Schema> schema, String deprecated, List<StandardKey> key, List<Validation> validationLevel, String title, ShortName shortName, IdentifierURI identifier, List<String> altIdentifier, Curation curation, Content content, UTCTimestamp created, UTCTimestamp updated, Resource_status status, String version) full parameter constructor.- Parameters:
 endorsedVersion- the version of the standard that is recommended for use. More than one version can be listed, indicating that any of these versions are recognized as acceptable for use.schema- a description and pointer to a schema document defined by this standard. This is most typically an XML Schema, but it need not be strictly.deprecated- when present, this element indicates that all versions of the standard are considered deprecated by the publisher. The value is a human-readable explanation for the designation. The explanation should indicate if another standard should be preferred.key- a defined key associated with this standard.validationLevel- 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. See VOResource:Validation for an explanation of the allowed levels. Note that when this resource is a Service, this grade applies to the core set of metadata. Capability and interface metadata, as well as the compliance of the service with the interface standard, is rated by validationLevel tag in the capability element (see the VOResource:Service complex type).title- the full name given to the resource .shortName- A short name or abbreviation given to the resource. This name will be used where brief annotations for the resource name are required. Applications may use to refer to this resource in a compact display. One word or a few letters is recommended. No more than sixteen characters are allowed.identifier- Unambiguous reference to the resource conforming to the IVOA standard for identifiers .altIdentifier- A reference to this resource in a non-IVOA identifier scheme, e.g., DOI or bibcode. Always use the an URI scheme here, e.g., doi:10.1016/j.epsl.2011.11.037. For bibcodes, use a form like bibcode:2008ivoa.spec.0222P.curation- Information regarding the general curation of the resource .content- Information regarding the general content of the resource .created- The UTC date and time this resource metadata description was created. This timestamp must not be in the future. This time is not required to be accurate; it should be at least accurate to the day. Any non-significant time fields should be set to zero.updated- The UTC date this resource metadata description was last updated. This timestamp must not be in the future. This time is not required to be accurate; it should be at least accurate to the day. Any non-significant time fields should be set to zero.status- a tag indicating whether this resource is believed to be still actively maintained.version- The VOResource XML schema version against which this instance was written. Implementors should set this to the value of the version attribute of their schema's root (xs:schema) element. Clients may assume version 1.0 if this attribute is missing.
 - 
Standard
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
 other- the object to be copied.
 - 
Standard
public Standard(Resource superinstance, List<EndorsedVersion> endorsedVersion, List<Schema> schema, String deprecated, List<StandardKey> key) Constructor from supertype instance.- Parameters:
 superinstance- The supertype.endorsedVersion- the version of the standard that is recommended for use. More than one version can be listed, indicating that any of these versions are recognized as acceptable for use.schema- a description and pointer to a schema document defined by this standard. This is most typically an XML Schema, but it need not be strictly.deprecated- when present, this element indicates that all versions of the standard are considered deprecated by the publisher. The value is a human-readable explanation for the designation. The explanation should indicate if another standard should be preferred.key- a defined key associated with this standard.
 
 - 
 - 
Method Details
- 
copyMe
make a clone of the object taking into account current polymorhic type. - 
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.
 - 
getEndorsedVersion
Returns endorsedVersion Attribute.- Returns:
 - endorsedVersion Attribute
 
 - 
setEndorsedVersion
Set endorsedVersion Attribute.- Parameters:
 pEndorsedVersion- value to set
 - 
withEndorsedVersion
fluent setter for endorsedVersion Attribute.- Parameters:
 pEndorsedVersion- value to set- Returns:
 - Standard
 
 - 
getSchema
Returns schema composition as an immutable list.- Returns:
 - schema composition.
 
 - 
setSchema
Defines whole schema composition.- Parameters:
 pSchema- composition to set.
 - 
addToSchema
Add a org.ivoa.dm.registry.standard.Schema to the composition.- Parameters:
 p- org.ivoa.dm.registry.standard.Schema to add
 - 
removeFromSchema
Remove a org.ivoa.dm.registry.standard.Schema from the composition.- Parameters:
 p- org.ivoa.dm.registry.standard.Schema to remove
 - 
replaceInSchema
update a org.ivoa.dm.registry.standard.Schema in the composition.- Parameters:
 _p- org.ivoa.dm.registry.standard.Schema to update the match is done via the database key
 - 
getDeprecated
Returns deprecated Attribute.- Returns:
 - deprecated Attribute
 
 - 
setDeprecated
Set deprecated Attribute.- Parameters:
 pDeprecated- value to set
 - 
withDeprecated
fluent setter for deprecated Attribute.- Parameters:
 pDeprecated- value to set- Returns:
 - Standard
 
 - 
getKey
Returns key composition as an immutable list.- Returns:
 - key composition.
 
 - 
setKey
Defines whole key composition.- Parameters:
 pKey- composition to set.
 - 
addToKey
Add a org.ivoa.dm.registry.standard.StandardKey to the composition.- Parameters:
 p- org.ivoa.dm.registry.standard.StandardKey to add
 - 
removeFromKey
Remove a org.ivoa.dm.registry.standard.StandardKey from the composition.- Parameters:
 p- org.ivoa.dm.registry.standard.StandardKey to remove
 - 
replaceInKey
update a org.ivoa.dm.registry.standard.StandardKey in the composition.- Parameters:
 _p- org.ivoa.dm.registry.standard.StandardKey to update the match is done via the database key
 - 
createStandard
create a Standard in functional builder style.- Parameters:
 f- the functional builder.- Returns:
 - an object initialized from the builder.
 
 - 
forceLoad
public void forceLoad() - 
delete
public void delete(jakarta.persistence.EntityManager em)  
 -