java.lang.Object
org.odpi.openmetadata.frameworks.integration.dcat.properties.DcatContactPoint

public class DcatContactPoint extends Object
DcatContactPoint describes who to contact about a resource (vcard:Kind).
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object objectToCompare)
    Compare the values of the supplied object with those stored in the current object.
    Return the email address of the contact (vcard:hasEmail).
    Return the IRI that identifies the contact point.
    Return the formatted name of the contact (vcard:fn).
    Return the name of the contact's organization (vcard:organization-name).
    Return the telephone number of the contact (vcard:hasTelephone).
    Return the web page for the contact (vcard:hasURL).
    int
    Return hash code based on properties.
    void
    Set up the email address of the contact (vcard:hasEmail).
    void
    Set up the IRI that identifies the contact point.
    void
    Set up the formatted name of the contact (vcard:fn).
    void
    setOrganizationName(String organizationName)
    Set up the name of the contact's organization (vcard:organization-name).
    void
    setTelephone(String telephone)
    Set up the telephone number of the contact (vcard:hasTelephone).
    void
    Set up the web page for the contact (vcard:hasURL).
    Standard toString method.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DcatContactPoint

      public DcatContactPoint()
      Default constructor
  • Method Details

    • getIri

      public String getIri()
      Return the IRI that identifies the contact point.
      Returns:
      string IRI
    • setIri

      public void setIri(String iri)
      Set up the IRI that identifies the contact point.
      Parameters:
      iri - string IRI
    • getName

      public String getName()
      Return the formatted name of the contact (vcard:fn).
      Returns:
      string name
    • setName

      public void setName(String name)
      Set up the formatted name of the contact (vcard:fn).
      Parameters:
      name - string name
    • getEmail

      public String getEmail()
      Return the email address of the contact (vcard:hasEmail).
      Returns:
      string email address
    • setEmail

      public void setEmail(String email)
      Set up the email address of the contact (vcard:hasEmail).
      Parameters:
      email - string email address
    • getTelephone

      public String getTelephone()
      Return the telephone number of the contact (vcard:hasTelephone).
      Returns:
      string telephone number
    • setTelephone

      public void setTelephone(String telephone)
      Set up the telephone number of the contact (vcard:hasTelephone).
      Parameters:
      telephone - string telephone number
    • getUrl

      public String getUrl()
      Return the web page for the contact (vcard:hasURL).
      Returns:
      string URL
    • setUrl

      public void setUrl(String url)
      Set up the web page for the contact (vcard:hasURL).
      Parameters:
      url - string URL
    • getOrganizationName

      public String getOrganizationName()
      Return the name of the contact's organization (vcard:organization-name).
      Returns:
      string name
    • setOrganizationName

      public void setOrganizationName(String organizationName)
      Set up the name of the contact's organization (vcard:organization-name).
      Parameters:
      organizationName - string name
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code based on properties.
      Overrides:
      hashCode in class Object
      Returns:
      int