public class ContactMethod extends CommonHeader
| Constructor and Description |
|---|
ContactMethod()
Default constructor
|
ContactMethod(ContactMethod template)
Copy/clone constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object objectToCompare)
Equals method that returns true if containing properties are the same.
|
String |
getService()
Return the URL of the service used to contact the individual.
|
ContactMethodType |
getType()
Return the type of the contact method.
|
String |
getValue()
Return the account name or similar value used to direct the message to the individual.
|
int |
hashCode()
Hash code for this object
|
void |
setService(String service)
Set up theURL of the service used to contact the individual.
|
void |
setType(ContactMethodType type)
Set up the type of the contact method.
|
void |
setValue(String value)
Set up the account name or similar value used to direct the message to the individual.
|
String |
toString()
JSON-style toString.
|
getGUID, setGUIDgetOriginId, getOriginLicense, getOriginName, getOriginType, getTypeDescription, getTypeName, setOriginId, setOriginLicense, setOriginName, setOriginType, setTypeDescription, setTypeNamepublic ContactMethod()
public ContactMethod(ContactMethod template)
template - object to copypublic ContactMethodType getType()
public void setType(ContactMethodType type)
type - contact method type enumpublic String getService()
public void setService(String service)
service - service URLpublic String getValue()
public void setValue(String value)
value - value stringpublic String toString()
toString in class CommonHeaderpublic boolean equals(Object objectToCompare)
equals in class CommonHeaderobjectToCompare - object to comparepublic int hashCode()
hashCode in class CommonHeaderCopyright © 2018–2020 ODPi. All rights reserved.