Constructor and Description |
---|
Contact()
Initializes a new instance of the
Contact class. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress()
Gets the address of the contact.
|
java.lang.String |
getEmail()
Gets the e-mail address of the contact.
|
java.lang.String |
getFirstName()
Gets the first name of the contact.
|
java.lang.String |
getLastName()
Gets the last name of the contact.
|
java.lang.String |
getMiddleName()
Gets the middle name of the contact.
|
java.lang.String |
getPhone()
Gets the phone of the contact.
|
void |
loadFrom(org.w3c.dom.Element element,
XmlSerializationContext context)
Loads contact data from an XML document.
|
void |
loadFrom(JsonObject obj,
JsonSerializationContext context)
Loads the contact from a JSON object.
|
void |
saveTo(org.w3c.dom.Element element,
XmlSerializationContext context)
Saves the contact data to an XML document.
|
void |
saveTo(JsonObject obj,
JsonSerializationContext context)
Saves the contact as a JSON object.
|
void |
setAddress(java.lang.String value)
Sets the address of the contact.
|
void |
setEmail(java.lang.String value)
Sets the e-mail address of the contact.
|
void |
setFirstName(java.lang.String value)
Sets the first name of the contact.
|
void |
setLastName(java.lang.String value)
Sets the last name of the contact.
|
void |
setMiddleName(java.lang.String value)
Sets the middle name of the contact.
|
void |
setPhone(java.lang.String value)
Sets the phone of the contact.
|
getCustomBrushes, getId, getName, getTag, setCustomBrushes, setId, setName, setTag
public Contact()
Contact
class.public void saveTo(org.w3c.dom.Element element, XmlSerializationContext context)
saveTo
in class Resource
element
- Allows adding data to the XML document.context
- The context object contains the file format revision number
of the schedule being loaded. It also provides methods that
facilitate reading and writing various data types from and
to the XML document.public void loadFrom(org.w3c.dom.Element element, XmlSerializationContext context)
loadFrom
in class Resource
element
- Allows reading data from the XML document.context
- The context object contains the file format revision number
of the schedule being loaded. It also provides methods that
facilitate reading and writing various data types from and
to the XML document.public void saveTo(JsonObject obj, JsonSerializationContext context)
public void loadFrom(JsonObject obj, JsonSerializationContext context)
public java.lang.String getFirstName()
public void setFirstName(java.lang.String value)
value
- A string containing the first name of a person. The default is an empty string.public java.lang.String getMiddleName()
public void setMiddleName(java.lang.String value)
value
- A string containing person's middle name. The default is an empty string.public java.lang.String getLastName()
public void setLastName(java.lang.String value)
value
- A string containing person's last name. The default is an empty string.public java.lang.String getAddress()
public void setAddress(java.lang.String value)
value
- A string containing address information. The default is an empty string.public java.lang.String getPhone()
public void setPhone(java.lang.String value)
value
- A string containing a phone number. The default is an empty string.public java.lang.String getEmail()
public void setEmail(java.lang.String value)
value
- A string containing an e-mail address. The default is an empty string.