public class Address extends Element implements org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString
Java class for Address complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Address">
<complexContent>
<extension base="{http://hl7.org/fhir}Element">
<sequence>
<element name="use" type="{http://hl7.org/fhir}AddressUse" minOccurs="0"/>
<element name="type" type="{http://hl7.org/fhir}AddressType" minOccurs="0"/>
<element name="text" type="{http://hl7.org/fhir}string" minOccurs="0"/>
<element name="line" type="{http://hl7.org/fhir}string" maxOccurs="unbounded" minOccurs="0"/>
<element name="city" type="{http://hl7.org/fhir}string" minOccurs="0"/>
<element name="district" type="{http://hl7.org/fhir}string" minOccurs="0"/>
<element name="state" type="{http://hl7.org/fhir}string" minOccurs="0"/>
<element name="postalCode" type="{http://hl7.org/fhir}string" minOccurs="0"/>
<element name="country" type="{http://hl7.org/fhir}string" minOccurs="0"/>
<element name="period" type="{http://hl7.org/fhir}Period" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
city |
protected String |
country |
protected String |
district |
protected java.util.List<String> |
line |
protected Period |
period |
protected String |
postalCode |
protected String |
state |
protected String |
text |
protected AddressType |
type |
protected AddressUse |
use |
| Constructor and Description |
|---|
Address() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.StringBuilder |
append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy) |
java.lang.StringBuilder |
appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy) |
boolean |
equals(java.lang.Object object) |
boolean |
equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
java.lang.Object object,
org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy) |
String |
getCity()
Gets the value of the city property.
|
String |
getCountry()
Gets the value of the country property.
|
String |
getDistrict()
Gets the value of the district property.
|
java.util.List<String> |
getLine()
Gets the value of the line property.
|
Period |
getPeriod()
Gets the value of the period property.
|
String |
getPostalCode()
Gets the value of the postalCode property.
|
String |
getState()
Gets the value of the state property.
|
String |
getText()
Gets the value of the text property.
|
AddressType |
getType()
Gets the value of the type property.
|
AddressUse |
getUse()
Gets the value of the use property.
|
int |
hashCode() |
int |
hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy) |
void |
setCity(String value)
Sets the value of the city property.
|
void |
setCountry(String value)
Sets the value of the country property.
|
void |
setDistrict(String value)
Sets the value of the district property.
|
void |
setPeriod(Period value)
Sets the value of the period property.
|
void |
setPostalCode(String value)
Sets the value of the postalCode property.
|
void |
setState(String value)
Sets the value of the state property.
|
void |
setText(String value)
Sets the value of the text property.
|
void |
setType(AddressType value)
Sets the value of the type property.
|
void |
setUse(AddressUse value)
Sets the value of the use property.
|
java.lang.String |
toString() |
Address |
withCity(String value) |
Address |
withCountry(String value) |
Address |
withDistrict(String value) |
Address |
withExtension(java.util.Collection<Extension> values) |
Address |
withExtension(Extension... values) |
Address |
withId(java.lang.String value) |
Address |
withLine(java.util.Collection<String> values) |
Address |
withLine(String... values) |
Address |
withPeriod(Period value) |
Address |
withPostalCode(String value) |
Address |
withState(String value) |
Address |
withText(String value) |
Address |
withType(AddressType value) |
Address |
withUse(AddressUse value) |
getExtension, getId, setIdprotected AddressUse use
protected AddressType type
protected String text
protected java.util.List<String> line
protected String city
protected String district
protected String state
protected String postalCode
protected String country
protected Period period
public AddressUse getUse()
AddressUsepublic void setUse(AddressUse value)
value - allowed object is
AddressUsepublic AddressType getType()
AddressTypepublic void setType(AddressType value)
value - allowed object is
AddressTypepublic String getText()
Stringpublic void setText(String value)
value - allowed object is
Stringpublic java.util.List<String> getLine()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the line property.
For example, to add a new item, do as follows:
getLine().add(newItem);
Objects of the following type(s) are allowed in the list
String
public String getCity()
Stringpublic void setCity(String value)
value - allowed object is
Stringpublic String getDistrict()
Stringpublic void setDistrict(String value)
value - allowed object is
Stringpublic String getState()
Stringpublic void setState(String value)
value - allowed object is
Stringpublic String getPostalCode()
Stringpublic void setPostalCode(String value)
value - allowed object is
Stringpublic String getCountry()
Stringpublic void setCountry(String value)
value - allowed object is
Stringpublic Period getPeriod()
Periodpublic void setPeriod(Period value)
value - allowed object is
Periodpublic Address withUse(AddressUse value)
public Address withType(AddressType value)
public Address withExtension(Extension... values)
withExtension in class Elementpublic Address withExtension(java.util.Collection<Extension> values)
withExtension in class Elementpublic boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
java.lang.Object object,
org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
public java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
appendFields in interface org.jvnet.jaxb2_commons.lang.ToStringappendFields in class Element