Package org.ivoa.dm.registry.voresource
Class Curation
java.lang.Object
org.ivoa.dm.registry.voresource.Curation
- All Implemented Interfaces:
 org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="VOResource:Curation",
       role=objectType)
public class Curation
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Information regarding the general curation of a resource .
 objectType:  Curation
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Curation, mainly for use in the functional builder pattern. - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyInformation that can be used for contacting someone with regard to this resource.protected List<ResourceName>Entity responsible for contributions to the content of the resource .The entity/ies (e.g.Date associated with an event in the life cycle of the resource.protected ResourceNameEntity (e.g.protected StringLabel associated with creation or availablilty of a version of a resource. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a org.ivoa.dm.registry.voresource.Contact to the composition.voidAdd a org.ivoa.dm.registry.voresource.Creator to the composition.static Curationcreate a Curation in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns contact composition as an immutable list.Returns contributor Attribute.Returns creator composition as an immutable list.getDate()Returns date Attribute.getId()Returns publisher Attribute.Returns version Attribute.voidRemove a org.ivoa.dm.registry.voresource.Contact from the composition.voidRemove a org.ivoa.dm.registry.voresource.Creator from the composition.voidupdate a org.ivoa.dm.registry.voresource.Contact in the composition.voidupdate a org.ivoa.dm.registry.voresource.Creator in the composition.voidsetContact(List<Contact> pContact) Defines whole contact composition.voidsetContributor(List<ResourceName> pContributor) Set contributor Attribute.voidsetCreator(List<Creator> pCreator) Defines whole creator composition.voidSet date Attribute.voidsetPublisher(ResourceName pPublisher) Set publisher Attribute.voidsetVersion(String pVersion) Set version Attribute.voidupdateUsing(Curation other) Update this object with the content of the given object.withContributor(List<ResourceName> pContributor) fluent setter for contributor Attribute.fluent setter for date Attribute.withPublisher(ResourceName pPublisher) fluent setter for publisher Attribute.withVersion(String pVersion) fluent setter for version Attribute. 
- 
Field Details
- 
_id
inserted database key - 
publisher
@VoDml(id="VOResource:Curation.publisher", role=attribute, type="VOResource:ResourceName", typeRole=dataType) protected ResourceName publisherEntity (e.g. person or organisation) responsible for making the resource available . : Attribute publisher : multiplicity 1 - 
creator
@VoDml(id="VOResource:Curation.creator", role=composition, type="VOResource:Creator", typeRole=objectType) protected List<Creator> creatorThe entity/ies (e.g. person(s) or organisation) primarily responsible for creating the content or constitution of the resource. This is the equivalent of the author of a publication. composition creator : ( Multiplicity : 0..* ) - 
contributor
@VoDml(id="VOResource:Curation.contributor", role=attribute, type="VOResource:ResourceName", typeRole=dataType) protected List<ResourceName> contributorEntity responsible for contributions to the content of the resource . : Attribute contributor : multiplicity 0..* - 
date
@VoDml(id="VOResource:Curation.date", role=attribute, type="VOResource:Date", typeRole=dataType) protected List<Date> dateDate associated with an event in the life cycle of the resource. This will typically be associated with the creation or availability (i.e., most recent release or version) of the resource. Use the role attribute to clarify. : Attribute date : multiplicity 0..* - 
version
@VoDml(id="VOResource:Curation.version", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String versionLabel associated with creation or availablilty of a version of a resource. : Attribute version : multiplicity 0..1 - 
contact
@VoDml(id="VOResource:Curation.contact", role=composition, type="VOResource:Contact", typeRole=objectType) protected List<Contact> contactInformation that can be used for contacting someone with regard to this resource. composition contact : ( Multiplicity : 1..* ) 
 - 
 - 
Constructor Details
- 
Curation
public Curation()Creates a new Curation - 
Curation
public Curation(ResourceName publisher, List<Creator> creator, List<ResourceName> contributor, List<Date> date, String version, List<Contact> contact) full parameter constructor.- Parameters:
 publisher- Entity (e.g. person or organisation) responsible for making the resource available .creator- The entity/ies (e.g. person(s) or organisation) primarily responsible for creating the content or constitution of the resource. This is the equivalent of the author of a publication.contributor- Entity responsible for contributions to the content of the resource .date- Date associated with an event in the life cycle of the resource. This will typically be associated with the creation or availability (i.e., most recent release or version) of the resource. Use the role attribute to clarify.version- Label associated with creation or availablilty of a version of a resource.contact- Information that can be used for contacting someone with regard to this resource.
 - 
Curation
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:
 getIdin 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.
 - 
getPublisher
Returns publisher Attribute.- Returns:
 - publisher Attribute
 
 - 
setPublisher
Set publisher Attribute.- Parameters:
 pPublisher- value to set
 - 
withPublisher
fluent setter for publisher Attribute.- Parameters:
 pPublisher- value to set- Returns:
 - Curation
 
 - 
getCreator
Returns creator composition as an immutable list.- Returns:
 - creator composition.
 
 - 
setCreator
Defines whole creator composition.- Parameters:
 pCreator- composition to set.
 - 
addToCreator
Add a org.ivoa.dm.registry.voresource.Creator to the composition.- Parameters:
 p- org.ivoa.dm.registry.voresource.Creator to add
 - 
removeFromCreator
Remove a org.ivoa.dm.registry.voresource.Creator from the composition.- Parameters:
 p- org.ivoa.dm.registry.voresource.Creator to remove
 - 
replaceInCreator
update a org.ivoa.dm.registry.voresource.Creator in the composition.- Parameters:
 _p- org.ivoa.dm.registry.voresource.Creator to update the match is done via the database key
 - 
getContributor
Returns contributor Attribute.- Returns:
 - contributor Attribute
 
 - 
setContributor
Set contributor Attribute.- Parameters:
 pContributor- value to set
 - 
withContributor
fluent setter for contributor Attribute.- Parameters:
 pContributor- value to set- Returns:
 - Curation
 
 - 
getDate
Returns date Attribute.- Returns:
 - date Attribute
 
 - 
setDate
Set date Attribute.- Parameters:
 pDate- value to set
 - 
withDate
fluent setter for date Attribute.- Parameters:
 pDate- value to set- Returns:
 - Curation
 
 - 
getVersion
Returns version Attribute.- Returns:
 - version Attribute
 
 - 
setVersion
Set version Attribute.- Parameters:
 pVersion- value to set
 - 
withVersion
fluent setter for version Attribute.- Parameters:
 pVersion- value to set- Returns:
 - Curation
 
 - 
getContact
Returns contact composition as an immutable list.- Returns:
 - contact composition.
 
 - 
setContact
Defines whole contact composition.- Parameters:
 pContact- composition to set.
 - 
addToContact
Add a org.ivoa.dm.registry.voresource.Contact to the composition.- Parameters:
 p- org.ivoa.dm.registry.voresource.Contact to add
 - 
removeFromContact
Remove a org.ivoa.dm.registry.voresource.Contact from the composition.- Parameters:
 p- org.ivoa.dm.registry.voresource.Contact to remove
 - 
replaceInContact
update a org.ivoa.dm.registry.voresource.Contact in the composition.- Parameters:
 _p- org.ivoa.dm.registry.voresource.Contact to update the match is done via the database key
 - 
createCuration
create a Curation 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
 - 
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
 deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
 
 -