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
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • name

      @VoDml(id="VOResource:Creator.name", role=attribute, type="VOResource:ResourceName", typeRole=dataType) protected ResourceName 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'). : Attribute name : multiplicity 1
    • altIdentifier

      @VoDml(id="VOResource:Creator.altIdentifier", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected List<String> altIdentifier
      A 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 ivoid
      An 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

      public Creator(ResourceName name, String logo, List<String> altIdentifier, IdentifierURI ivoid)
      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

      public Creator(Creator other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
      Returns:
      the id
    • updateUsing

      public void updateUsing(Creator other)
      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

      public ResourceName getName()
      Returns name Attribute.
      Returns:
      name Attribute
    • setName

      public void setName(ResourceName pName)
      Set name Attribute.
      Parameters:
      pName - value to set
    • withName

      public Creator withName(ResourceName pName)
      fluent setter for name Attribute.
      Parameters:
      pName - value to set
      Returns:
      Creator
    • getLogo

      public String getLogo()
      Returns logo Attribute.
      Returns:
      logo Attribute
    • setLogo

      public void setLogo(String pLogo)
      Set logo Attribute.
      Parameters:
      pLogo - value to set
    • withLogo

      public Creator withLogo(String pLogo)
      fluent setter for logo Attribute.
      Parameters:
      pLogo - value to set
      Returns:
      Creator
    • getAltIdentifier

      public List<String> getAltIdentifier()
      Returns altIdentifier Attribute.
      Returns:
      altIdentifier Attribute
    • setAltIdentifier

      public void setAltIdentifier(List<String> pAltIdentifier)
      Set altIdentifier Attribute.
      Parameters:
      pAltIdentifier - value to set
    • withAltIdentifier

      public Creator withAltIdentifier(List<String> pAltIdentifier)
      fluent setter for altIdentifier Attribute.
      Parameters:
      pAltIdentifier - value to set
      Returns:
      Creator
    • getIvoid

      public IdentifierURI getIvoid()
      Returns ivoid Attribute.
      Returns:
      ivoid Attribute
    • setIvoid

      public void setIvoid(IdentifierURI pIvoid)
      Set ivoid Attribute.
      Parameters:
      pIvoid - value to set
    • withIvoid

      public Creator withIvoid(IdentifierURI pIvoid)
      fluent setter for ivoid Attribute.
      Parameters:
      pIvoid - value to set
      Returns:
      Creator
    • createCreator

      public static Creator createCreator(Consumer<Creator.CreatorBuilder> f)
      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:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
    • delete

      public void delete(jakarta.persistence.EntityManager em)
      Specified by:
      delete in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>