@NotThreadSafe public class PDContact extends Object implements com.helger.json.IHasJson, Serializable, com.helger.commons.lang.ICloneable<PDContact>
| Constructor and Description |
|---|
PDContact() |
PDContact(String sType,
String sName,
String sPhoneNumber,
String sEmail) |
| Modifier and Type | Method and Description |
|---|---|
void |
cloneTo(PDContact ret)
This method clones all values from
this to the passed object. |
boolean |
equals(Object o) |
com.helger.json.IJsonObject |
getAsJson() |
com.helger.xml.microdom.IMicroElement |
getAsMicroXML(String sNamespaceURI,
String sElementName) |
PDContact |
getClone() |
String |
getEmail()
Gets the value of the email property.
|
String |
getName()
Gets the value of the name property.
|
String |
getPhoneNumber()
Gets the value of the phoneNumber property.
|
String |
getType()
Gets the value of the type property.
|
int |
hashCode() |
static PDContact |
of(com.helger.json.IJsonObject aJson) |
PDContact |
setEmail(String sEmail)
Sets the value of the email property.
|
PDContact |
setName(String sName)
Sets the value of the name property.
|
PDContact |
setPhoneNumber(String sPhoneNumber)
Sets the value of the phoneNumber property.
|
PDContact |
setType(String sType)
Sets the value of the type property.
|
String |
toString() |
@Nullable public final String getType()
null.@Nonnull public final PDContact setType(@Nullable String sType)
sType - The contact type. Maybe null.@Nullable public final String getName()
null.@Nonnull public final PDContact setName(@Nullable String sName)
sName - The contact name. Maybe null.@Nullable public final String getPhoneNumber()
null.@Nonnull public final PDContact setPhoneNumber(@Nullable String sPhoneNumber)
sPhoneNumber - The contact phone number. Maybe null.@Nullable public final String getEmail()
null.@Nonnull public final PDContact setEmail(@Nullable String sEmail)
sEmail - The contact email address to use. May be null.public void cloneTo(@Nonnull PDContact ret)
this to the passed object.
All data in the parameter object is overwritten!ret - The target object to clone to. May not be null.@Nonnull @ReturnsMutableCopy public PDContact getClone()
getClone in interface com.helger.commons.lang.ICloneable<PDContact>@Nonnull public com.helger.xml.microdom.IMicroElement getAsMicroXML(@Nullable String sNamespaceURI, @Nonnull @Nonempty String sElementName)
@Nonnull public com.helger.json.IJsonObject getAsJson()
getAsJson in interface com.helger.json.IHasJsonCopyright © 2015–2021 Philip Helger. All rights reserved.