Package org.ivoa.dm.registry.voresource
Class Contact
java.lang.Object
org.ivoa.dm.registry.voresource.Contact
- All Implemented Interfaces:
 org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="VOResource:Contact",
       role=objectType)
public class Contact
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Information allowing establishing contact, e.g., for purposes
                         of support. 
 objectType:  Contact
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Contact, mainly for use in the functional builder pattern. - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected Stringthe contact mailing address All components of the mailing address are given in one string, e.g.A reference to this entitiy in a non-IVOA identifier scheme, e.g., orcid.protected Stringthe contact email address.protected IdentifierURIAn IVOA identifier for the contact (typically when it is an organization).protected ResourceNamethe name or title of the contact person.protected Stringthe contact telephone number Complete international dialing codes should be given, e.g. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic Contactcreate a Contact in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns address Attribute.Returns altIdentifier Attribute.getEmail()Returns email Attribute.getId()getIvoid()Returns ivoid Attribute.getName()Returns name Attribute.Returns telephone Attribute.voidsetAddress(String pAddress) Set address Attribute.voidsetAltIdentifier(List<String> pAltIdentifier) Set altIdentifier Attribute.voidSet email Attribute.voidsetIvoid(IdentifierURI pIvoid) Set ivoid Attribute.voidsetName(ResourceName pName) Set name Attribute.voidsetTelephone(String pTelephone) Set telephone Attribute.voidupdateUsing(Contact other) Update this object with the content of the given object.withAddress(String pAddress) fluent setter for address Attribute.withAltIdentifier(List<String> pAltIdentifier) fluent setter for altIdentifier Attribute.fluent setter for email Attribute.withIvoid(IdentifierURI pIvoid) fluent setter for ivoid Attribute.withName(ResourceName pName) fluent setter for name Attribute.withTelephone(String pTelephone) fluent setter for telephone Attribute. 
- 
Field Details
- 
_id
inserted database key - 
name
@VoDml(id="VOResource:Contact.name", role=attribute, type="VOResource:ResourceName", typeRole=dataType) protected ResourceName namethe name or title of the contact person. This can be a person's name, e.g. “John P. Jones” or a group, “Archive Support Team”. : Attribute name : multiplicity 1 - 
address
@VoDml(id="VOResource:Contact.address", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String addressthe contact mailing address All components of the mailing address are given in one string, e.g. “3700 San Martin Drive, Baltimore, MD 21218 USA”. : Attribute address : multiplicity 0..1 - 
email
@VoDml(id="VOResource:Contact.email", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String emailthe contact email address. : Attribute email : multiplicity 0..1 - 
telephone
@VoDml(id="VOResource:Contact.telephone", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String telephonethe contact telephone number Complete international dialing codes should be given, e.g. “+1-410-338-1234”. : Attribute telephone : multiplicity 0..1 - 
altIdentifier
@VoDml(id="VOResource:Contact.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:Contact.ivoid", role=attribute, type="VOResource:IdentifierURI", typeRole=primitiveType) protected IdentifierURI ivoidAn IVOA identifier for the contact (typically when it is an organization). : Attribute ivoid : multiplicity 1 
 - 
 - 
Constructor Details
- 
Contact
public Contact()Creates a new Contact - 
Contact
public Contact(ResourceName name, String address, String email, String telephone, List<String> altIdentifier, IdentifierURI ivoid) full parameter constructor.- Parameters:
 name- the name or title of the contact person. This can be a person's name, e.g. “John P. Jones” or a group, “Archive Support Team”.address- the contact mailing address All components of the mailing address are given in one string, e.g. “3700 San Martin Drive, Baltimore, MD 21218 USA”.email- the contact email address.telephone- the contact telephone number Complete international dialing codes should be given, e.g. “+1-410-338-1234”.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 contact (typically when it is an organization).
 - 
Contact
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:
 - Contact
 
 - 
getAddress
Returns address Attribute.- Returns:
 - address Attribute
 
 - 
setAddress
Set address Attribute.- Parameters:
 pAddress- value to set
 - 
withAddress
fluent setter for address Attribute.- Parameters:
 pAddress- value to set- Returns:
 - Contact
 
 - 
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:
 - Contact
 
 - 
getTelephone
Returns telephone Attribute.- Returns:
 - telephone Attribute
 
 - 
setTelephone
Set telephone Attribute.- Parameters:
 pTelephone- value to set
 - 
withTelephone
fluent setter for telephone Attribute.- Parameters:
 pTelephone- value to set- Returns:
 - Contact
 
 - 
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:
 - Contact
 
 - 
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:
 - Contact
 
 - 
createContact
create a Contact 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>
 
 -