public class HumanName extends Element implements org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString
Java class for HumanName complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="HumanName">
<complexContent>
<extension base="{http://hl7.org/fhir}Element">
<sequence>
<element name="use" type="{http://hl7.org/fhir}NameUse" minOccurs="0"/>
<element name="text" type="{http://hl7.org/fhir}string" minOccurs="0"/>
<element name="family" type="{http://hl7.org/fhir}string" maxOccurs="unbounded" minOccurs="0"/>
<element name="given" type="{http://hl7.org/fhir}string" maxOccurs="unbounded" minOccurs="0"/>
<element name="prefix" type="{http://hl7.org/fhir}string" maxOccurs="unbounded" minOccurs="0"/>
<element name="suffix" type="{http://hl7.org/fhir}string" maxOccurs="unbounded" minOccurs="0"/>
<element name="period" type="{http://hl7.org/fhir}Period" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<String> |
family |
protected java.util.List<String> |
given |
protected Period |
period |
protected java.util.List<String> |
prefix |
protected java.util.List<String> |
suffix |
protected String |
text |
protected NameUse |
use |
| Constructor and Description |
|---|
HumanName() |
| 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) |
java.util.List<String> |
getFamily()
Gets the value of the family property.
|
java.util.List<String> |
getGiven()
Gets the value of the given property.
|
Period |
getPeriod()
Gets the value of the period property.
|
java.util.List<String> |
getPrefix()
Gets the value of the prefix property.
|
java.util.List<String> |
getSuffix()
Gets the value of the suffix property.
|
String |
getText()
Gets the value of the text property.
|
NameUse |
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 |
setPeriod(Period value)
Sets the value of the period property.
|
void |
setText(String value)
Sets the value of the text property.
|
void |
setUse(NameUse value)
Sets the value of the use property.
|
java.lang.String |
toString() |
HumanName |
withExtension(java.util.Collection<Extension> values) |
HumanName |
withExtension(Extension... values) |
HumanName |
withFamily(java.util.Collection<String> values) |
HumanName |
withFamily(String... values) |
HumanName |
withGiven(java.util.Collection<String> values) |
HumanName |
withGiven(String... values) |
HumanName |
withId(java.lang.String value) |
HumanName |
withPeriod(Period value) |
HumanName |
withPrefix(java.util.Collection<String> values) |
HumanName |
withPrefix(String... values) |
HumanName |
withSuffix(java.util.Collection<String> values) |
HumanName |
withSuffix(String... values) |
HumanName |
withText(String value) |
HumanName |
withUse(NameUse value) |
getExtension, getId, setIdprotected NameUse use
protected String text
protected java.util.List<String> family
protected java.util.List<String> given
protected java.util.List<String> prefix
protected java.util.List<String> suffix
protected Period period
public NameUse getUse()
NameUsepublic void setUse(NameUse value)
value - allowed object is
NameUsepublic String getText()
Stringpublic void setText(String value)
value - allowed object is
Stringpublic java.util.List<String> getFamily()
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 family property.
For example, to add a new item, do as follows:
getFamily().add(newItem);
Objects of the following type(s) are allowed in the list
String
public java.util.List<String> getGiven()
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 given property.
For example, to add a new item, do as follows:
getGiven().add(newItem);
Objects of the following type(s) are allowed in the list
String
public java.util.List<String> getPrefix()
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 prefix property.
For example, to add a new item, do as follows:
getPrefix().add(newItem);
Objects of the following type(s) are allowed in the list
String
public java.util.List<String> getSuffix()
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 suffix property.
For example, to add a new item, do as follows:
getSuffix().add(newItem);
Objects of the following type(s) are allowed in the list
String
public Period getPeriod()
Periodpublic void setPeriod(Period value)
value - allowed object is
Periodpublic HumanName withExtension(Extension... values)
withExtension in class Elementpublic HumanName 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