Package org.ivoa.dm.registry.voresource
Class Creator
java.lang.Object
org.ivoa.dm.registry.voresource.Creator
- All Implemented Interfaces:
 org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="VOResource:Creator",
       role=objectType)
public class Creator
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
The entity (e.g. person or organisation) primarily responsible
                           for creating something .
 objectType:  Creator
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Creator, mainly for use in the functional builder pattern. - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyA reference to this entitiy in a non-IVOA identifier scheme, e.g., orcid.protected IdentifierURIAn IVOA identifier for the creator (typically when it is an organization).protected StringURL pointing to a graphical logo, which may be used to help identify the information source A logo needs only be provided for the first occurrence.protected ResourceNamethe name or title of the creating person or organisation Users of the creation should use this name in subsequent credits and acknowledgements. - 
Constructor Summary
ConstructorsConstructorDescriptionCreator()Creates a new CreatorCopy Constructor.Creator(ResourceName name, String logo, List<String> altIdentifier, IdentifierURI ivoid) full parameter constructor. - 
Method Summary
Modifier and TypeMethodDescriptionstatic Creatorcreate a Creator in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns altIdentifier Attribute.getId()getIvoid()Returns ivoid Attribute.getLogo()Returns logo Attribute.getName()Returns name Attribute.voidsetAltIdentifier(List<String> pAltIdentifier) Set altIdentifier Attribute.voidsetIvoid(IdentifierURI pIvoid) Set ivoid Attribute.voidSet logo Attribute.voidsetName(ResourceName pName) Set name Attribute.voidupdateUsing(Creator other) Update this object with the content of the given object.withAltIdentifier(List<String> pAltIdentifier) fluent setter for altIdentifier Attribute.withIvoid(IdentifierURI pIvoid) fluent setter for ivoid Attribute.fluent setter for logo Attribute.withName(ResourceName pName) fluent setter for name Attribute. 
- 
Field Details
- 
_id
inserted database key - 
name
@VoDml(id="VOResource:Creator.name", role=attribute, type="VOResource:ResourceName", typeRole=dataType) protected ResourceName namethe name or title of the creating person or organisation Users of the creation should use this name in subsequent credits and acknowledgements. This should be exactly one name, preferably last name first (as in 'van der Waals, Johannes Diderik'). : Attribute name : multiplicity 1 - 
logo
@VoDml(id="VOResource:Creator.logo", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String logoURL pointing to a graphical logo, which may be used to help identify the information source A logo needs only be provided for the first occurrence. When multiple logos are supplied via multiple creator elements, the application is free to choose which to use. : Attribute logo : multiplicity 0..1 - 
altIdentifier
@VoDml(id="VOResource:Creator.altIdentifier", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected List<String> altIdentifierA reference to this entitiy in a non-IVOA identifier scheme, e.g., orcid. Always use a URI form including a scheme here. : Attribute altIdentifier : multiplicity 0..* - 
ivoid
@VoDml(id="VOResource:Creator.ivoid", role=attribute, type="VOResource:IdentifierURI", typeRole=primitiveType) protected IdentifierURI ivoidAn IVOA identifier for the creator (typically when it is an organization). : Attribute ivoid : multiplicity 1 
 - 
 - 
Constructor Details
- 
Creator
public Creator()Creates a new Creator - 
Creator
full parameter constructor.- Parameters:
 name- the name or title of the creating person or organisation Users of the creation should use this name in subsequent credits and acknowledgements. This should be exactly one name, preferably last name first (as in 'van der Waals, Johannes Diderik').logo- URL pointing to a graphical logo, which may be used to help identify the information source A logo needs only be provided for the first occurrence. When multiple logos are supplied via multiple creator elements, the application is free to choose which to use.altIdentifier- A reference to this entitiy in a non-IVOA identifier scheme, e.g., orcid. Always use a URI form including a scheme here.ivoid- An IVOA identifier for the creator (typically when it is an organization).
 - 
Creator
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.
 - 
getName
Returns name Attribute.- Returns:
 - name Attribute
 
 - 
setName
Set name Attribute.- Parameters:
 pName- value to set
 - 
withName
fluent setter for name Attribute.- Parameters:
 pName- value to set- Returns:
 - Creator
 
 - 
getLogo
Returns logo Attribute.- Returns:
 - logo Attribute
 
 - 
setLogo
Set logo Attribute.- Parameters:
 pLogo- value to set
 - 
withLogo
fluent setter for logo Attribute.- Parameters:
 pLogo- value to set- Returns:
 - Creator
 
 - 
getAltIdentifier
Returns altIdentifier Attribute.- Returns:
 - altIdentifier Attribute
 
 - 
setAltIdentifier
Set altIdentifier Attribute.- Parameters:
 pAltIdentifier- value to set
 - 
withAltIdentifier
fluent setter for altIdentifier Attribute.- Parameters:
 pAltIdentifier- value to set- Returns:
 - Creator
 
 - 
getIvoid
Returns ivoid Attribute.- Returns:
 - ivoid Attribute
 
 - 
setIvoid
Set ivoid Attribute.- Parameters:
 pIvoid- value to set
 - 
withIvoid
fluent setter for ivoid Attribute.- Parameters:
 pIvoid- value to set- Returns:
 - Creator
 
 - 
createCreator
create a Creator 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>
 
 -