public class Location extends Resource
Constructor and Description |
---|
Location()
Initializes a new instance of the
Location class. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress()
Gets the address of the location.
|
java.lang.String |
getCity()
Gets the city of this location.
|
java.lang.String |
getCountry()
Gets the country of this location.
|
java.lang.String |
getState()
Gets the state of this location.
|
java.lang.String |
getZipCode()
Gets the ZIP code of this location.
|
void |
loadFrom(org.w3c.dom.Element element,
XmlSerializationContext context)
Loads location data from an XML document.
|
void |
loadFrom(JsonObject obj,
JsonSerializationContext context)
Loads the location from a JSON object.
|
void |
saveTo(org.w3c.dom.Element element,
XmlSerializationContext context)
Saves the location data to an XML document.
|
void |
saveTo(JsonObject obj,
JsonSerializationContext context)
Saves the location as a JSON object.
|
void |
setAddress(java.lang.String value)
Sets the address of the location.
|
void |
setCity(java.lang.String value)
Sets the city of this location.
|
void |
setCountry(java.lang.String value)
Sets the country of this location.
|
void |
setState(java.lang.String value)
Sets the state of this location.
|
void |
setZipCode(java.lang.String value)
Sets the ZIP code of this location.
|
getCustomBrushes, getId, getName, getTag, setCustomBrushes, setId, setName, setTag
public Location()
Location
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 getAddress()
public void setAddress(java.lang.String value)
value
- A string specifying the address of this location. The default is an empty string.public java.lang.String getCountry()
public void setCountry(java.lang.String value)
value
- A string specifying the country where this location is located.
The default is an empty string.public java.lang.String getCity()
public void setCity(java.lang.String value)
value
- A string specifying the city where this location is located.
The default is an empty string.public java.lang.String getState()
public void setState(java.lang.String value)
value
- A string identifying the state where this location is.
The default is an empty string.public java.lang.String getZipCode()
public void setZipCode(java.lang.String value)
value
- A string containing the location's ZIP code. The default is an empty string.