Class ContactDetails

java.lang.Object
org.orcid.jaxb.model.message.ContactDetails
All Implemented Interfaces:
Serializable

public class ContactDetails extends Object implements Serializable
Java class for anonymous complex type. The following schema fragment specifies the expected content contained within this class.
 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{http://www.orcid.org/ns/orcid}email" maxOccurs="unbounded" minOccurs="0"/>
         <element ref="{http://www.orcid.org/ns/orcid}address" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
See Also:
  • Field Details

  • Constructor Details

    • ContactDetails

      public ContactDetails()
  • Method Details

    • getEmail

      public List<Email> getEmail()
      Gets the value of the email property. This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the email property. For example, to add a new item, do as follows:
       getEmail().add(newItem);
       
      Objects of the following type(s) are allowed in the list Email
      Returns:
      a List of Email objects
    • setEmail

      public void setEmail(List<Email> email)
    • getEmailByString

      public Email getEmailByString(String emailString)
    • addOrReplacePrimaryEmail

      public void addOrReplacePrimaryEmail(Email primaryEmail)
      This is a covenience method for setting the primary email. It is intentionally not called setPrimaryEmail so that is doesn't get called by the visibility filter, which looks at all getters and setters.
      Parameters:
      primaryEmail - - the primaryEmail
    • retrievePrimaryEmail

      public Email retrievePrimaryEmail()
      This is a covenience method for getting the primary email. It is intentionally not called getPrimaryEmail so that is doesn't get called by the visibility filter, which looks at all getters and setters.
      Returns:
      an Email object
    • primaryEmailVerified

      public boolean primaryEmailVerified()
      covenience method
      Returns:
      boolean
    • anyEmailVerified

      public boolean anyEmailVerified()
      covenience method
      Returns:
      boolean
    • getAddress

      public Address getAddress()
      Gets the value of the address property.
      Returns:
      possible object is Address
    • setAddress

      public void setAddress(Address value)
      Sets the value of the address property.
      Parameters:
      value - allowed object is Address
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object