Package org.hl7.fhir
Class Address
- java.lang.Object
-
- org.hl7.fhir.Element
-
- org.hl7.fhir.Address
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class Address extends Element implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
If the element is present, it must have a value for at least one of the defined elements, an @id referenced from the Narrative, or extensionsJava 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>
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringcityprotected Stringcountryprotected Stringdistrictprotected java.util.List<String>lineprotected Periodperiodprotected StringpostalCodeprotected Stringstateprotected Stringtextprotected AddressTypetypeprotected AddressUseuse
-
Constructor Summary
Constructors Constructor Description Address()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)java.lang.StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)booleanequals(java.lang.Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)StringgetCity()Gets the value of the city property.StringgetCountry()Gets the value of the country property.StringgetDistrict()Gets the value of the district property.java.util.List<String>getLine()Gets the value of the line property.PeriodgetPeriod()Gets the value of the period property.StringgetPostalCode()Gets the value of the postalCode property.StringgetState()Gets the value of the state property.StringgetText()Gets the value of the text property.AddressTypegetType()Gets the value of the type property.AddressUsegetUse()Gets the value of the use property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetCity(String value)Sets the value of the city property.voidsetCountry(String value)Sets the value of the country property.voidsetDistrict(String value)Sets the value of the district property.voidsetPeriod(Period value)Sets the value of the period property.voidsetPostalCode(String value)Sets the value of the postalCode property.voidsetState(String value)Sets the value of the state property.voidsetText(String value)Sets the value of the text property.voidsetType(AddressType value)Sets the value of the type property.voidsetUse(AddressUse value)Sets the value of the use property.java.lang.StringtoString()AddresswithCity(String value)AddresswithCountry(String value)AddresswithDistrict(String value)AddresswithExtension(java.util.Collection<Extension> values)AddresswithExtension(Extension... values)AddresswithId(java.lang.String value)AddresswithLine(java.util.Collection<String> values)AddresswithLine(String... values)AddresswithPeriod(Period value)AddresswithPostalCode(String value)AddresswithState(String value)AddresswithText(String value)AddresswithType(AddressType value)AddresswithUse(AddressUse value)-
Methods inherited from class org.hl7.fhir.Element
getExtension, getId, setId
-
-
-
-
Field Detail
-
use
protected AddressUse use
-
type
protected AddressType type
-
text
protected String text
-
line
protected java.util.List<String> line
-
city
protected String city
-
district
protected String district
-
state
protected String state
-
postalCode
protected String postalCode
-
country
protected String country
-
period
protected Period period
-
-
Method Detail
-
getUse
public AddressUse getUse()
Gets the value of the use property.- Returns:
- possible object is
AddressUse
-
setUse
public void setUse(AddressUse value)
Sets the value of the use property.- Parameters:
value- allowed object isAddressUse
-
getType
public AddressType getType()
Gets the value of the type property.- Returns:
- possible object is
AddressType
-
setType
public void setType(AddressType value)
Sets the value of the type property.- Parameters:
value- allowed object isAddressType
-
getText
public String getText()
Gets the value of the text property.- Returns:
- possible object is
String
-
setText
public void setText(String value)
Sets the value of the text property.- Parameters:
value- allowed object isString
-
getLine
public java.util.List<String> getLine()
Gets the value of the line property.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
setmethod 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
-
getCity
public String getCity()
Gets the value of the city property.- Returns:
- possible object is
String
-
setCity
public void setCity(String value)
Sets the value of the city property.- Parameters:
value- allowed object isString
-
getDistrict
public String getDistrict()
Gets the value of the district property.- Returns:
- possible object is
String
-
setDistrict
public void setDistrict(String value)
Sets the value of the district property.- Parameters:
value- allowed object isString
-
getState
public String getState()
Gets the value of the state property.- Returns:
- possible object is
String
-
setState
public void setState(String value)
Sets the value of the state property.- Parameters:
value- allowed object isString
-
getPostalCode
public String getPostalCode()
Gets the value of the postalCode property.- Returns:
- possible object is
String
-
setPostalCode
public void setPostalCode(String value)
Sets the value of the postalCode property.- Parameters:
value- allowed object isString
-
getCountry
public String getCountry()
Gets the value of the country property.- Returns:
- possible object is
String
-
setCountry
public void setCountry(String value)
Sets the value of the country property.- Parameters:
value- allowed object isString
-
getPeriod
public Period getPeriod()
Gets the value of the period property.- Returns:
- possible object is
Period
-
setPeriod
public void setPeriod(Period value)
Sets the value of the period property.- Parameters:
value- allowed object isPeriod
-
withUse
public Address withUse(AddressUse value)
-
withType
public Address withType(AddressType value)
-
withExtension
public Address withExtension(Extension... values)
- Overrides:
withExtensionin classElement
-
withExtension
public Address withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classElement
-
equals
public 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.EqualsStrategy2 strategy)
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
-
append
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
-
appendFields
public java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classElement
-
-