Package org.ivoa.dm.tool
Class Author
java.lang.Object
org.ivoa.dm.tool.Author
- All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement,org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="tool:Author",
role=objectType)
public class Author
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
Details about an author of the image.
objectType: Author
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Author, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected StringAffiliation .protected StringContact email address for the author.protected StringGitHub username .protected StringGitLab username .protected StringName of the author.protected StringORCID identity.protected StringRole of the author; default maintainer. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Authorcreate a Author in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns affiliation Attribute.getEmail()Returns email Attribute.Returns github Attribute.Returns gitlab Attribute.getId()getName()Returns name Attribute.getOrcid()Returns orcid Attribute.getRole()Returns role Attribute.getXmlId()getter for XMLIDbooleanvoidsetAffiliation(String pAffiliation) Set affiliation Attribute.voidSet email Attribute.voidSet github Attribute.voidSet gitlab Attribute.voidSet name Attribute.voidSet orcid Attribute.voidSet role Attribute.voidvoidupdateUsing(Author other) Update this object with the content of the given object.withAffiliation(String pAffiliation) fluent setter for affiliation Attribute.fluent setter for email Attribute.withGithub(String pGithub) fluent setter for github Attribute.withGitlab(String pGitlab) fluent setter for gitlab Attribute.fluent setter for name Attribute.fluent setter for orcid Attribute.fluent setter for role Attribute.
-
Field Details
-
_id
inserted database key -
name
@VoDml(id="tool:Author.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String nameName of the author. : Attribute name type ivoa:string : multiplicity 1 -
email
@VoDml(id="tool:Author.email", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String emailContact email address for the author. : Attribute email type ivoa:string : multiplicity 1 -
role
@VoDml(id="tool:Author.role", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String roleRole of the author; default maintainer. : Attribute role type ivoa:string : multiplicity 0..1 -
github
@VoDml(id="tool:Author.github", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String githubGitHub username . : Attribute github type ivoa:string : multiplicity 0..1 -
gitlab
@VoDml(id="tool:Author.gitlab", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String gitlabGitLab username . : Attribute gitlab type ivoa:string : multiplicity 0..1 -
orcid
@VoDml(id="tool:Author.orcid", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String orcidORCID identity. : Attribute orcid type ivoa:string : multiplicity 0..1 -
affiliation
@VoDml(id="tool:Author.affiliation", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String affiliationAffiliation . : Attribute affiliation type ivoa:string : multiplicity 0..1
-
-
Constructor Details
-
Author
public Author()Creates a new Author -
Author
public Author(String name, String email, String role, String github, String gitlab, String orcid, String affiliation) full parameter constructor.- Parameters:
name- Name of the author.email- Contact email address for the author.role- Role of the author; default maintainer.github- GitHub username .gitlab- GitLab username .orcid- ORCID identity.affiliation- Affiliation .
-
Author
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
-
getXmlId
getter for XMLID- Specified by:
getXmlIdin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
setXmlId
- Specified by:
setXmlIdin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
hasNaturalKey
public boolean hasNaturalKey()- Specified by:
hasNaturalKeyin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
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:
- Author
-
getEmail
Returns email Attribute.- Returns:
- email Attribute
-
setEmail
Set email Attribute.- Parameters:
pEmail- value to set
-
withEmail
fluent setter for email Attribute.- Parameters:
pEmail- value to set- Returns:
- Author
-
getRole
Returns role Attribute.- Returns:
- role Attribute
-
setRole
Set role Attribute.- Parameters:
pRole- value to set
-
withRole
fluent setter for role Attribute.- Parameters:
pRole- value to set- Returns:
- Author
-
getGithub
Returns github Attribute.- Returns:
- github Attribute
-
setGithub
Set github Attribute.- Parameters:
pGithub- value to set
-
withGithub
fluent setter for github Attribute.- Parameters:
pGithub- value to set- Returns:
- Author
-
getGitlab
Returns gitlab Attribute.- Returns:
- gitlab Attribute
-
setGitlab
Set gitlab Attribute.- Parameters:
pGitlab- value to set
-
withGitlab
fluent setter for gitlab Attribute.- Parameters:
pGitlab- value to set- Returns:
- Author
-
getOrcid
Returns orcid Attribute.- Returns:
- orcid Attribute
-
setOrcid
Set orcid Attribute.- Parameters:
pOrcid- value to set
-
withOrcid
fluent setter for orcid Attribute.- Parameters:
pOrcid- value to set- Returns:
- Author
-
getAffiliation
Returns affiliation Attribute.- Returns:
- affiliation Attribute
-
setAffiliation
Set affiliation Attribute.- Parameters:
pAffiliation- value to set
-
withAffiliation
fluent setter for affiliation Attribute.- Parameters:
pAffiliation- value to set- Returns:
- Author
-
createAuthor
create a Author 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>
-