public class QuestionnaireResponseAnswer extends BackboneElement implements org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString
Java class for QuestionnaireResponse.Answer complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="QuestionnaireResponse.Answer">
<complexContent>
<extension base="{http://hl7.org/fhir}BackboneElement">
<sequence>
<choice minOccurs="0">
<element name="valueBoolean" type="{http://hl7.org/fhir}boolean"/>
<element name="valueDecimal" type="{http://hl7.org/fhir}decimal"/>
<element name="valueInteger" type="{http://hl7.org/fhir}integer"/>
<element name="valueDate" type="{http://hl7.org/fhir}date"/>
<element name="valueDateTime" type="{http://hl7.org/fhir}dateTime"/>
<element name="valueInstant" type="{http://hl7.org/fhir}instant"/>
<element name="valueTime" type="{http://hl7.org/fhir}time"/>
<element name="valueString" type="{http://hl7.org/fhir}string"/>
<element name="valueUri" type="{http://hl7.org/fhir}uri"/>
<element name="valueAttachment" type="{http://hl7.org/fhir}Attachment"/>
<element name="valueCoding" type="{http://hl7.org/fhir}Coding"/>
<element name="valueQuantity" type="{http://hl7.org/fhir}Quantity"/>
<element name="valueReference" type="{http://hl7.org/fhir}Reference"/>
</choice>
<element name="item" type="{http://hl7.org/fhir}QuestionnaireResponse.Item" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<QuestionnaireResponseItem> |
item |
protected Attachment |
valueAttachment |
protected Boolean |
valueBoolean |
protected Coding |
valueCoding |
protected Date |
valueDate |
protected DateTime |
valueDateTime |
protected Decimal |
valueDecimal |
protected Instant |
valueInstant |
protected Integer |
valueInteger |
protected Quantity |
valueQuantity |
protected Reference |
valueReference |
protected String |
valueString |
protected Time |
valueTime |
protected Uri |
valueUri |
modifierExtension| Constructor and Description |
|---|
QuestionnaireResponseAnswer() |
| 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<QuestionnaireResponseItem> |
getItem()
Gets the value of the item property.
|
Attachment |
getValueAttachment()
Gets the value of the valueAttachment property.
|
Boolean |
getValueBoolean()
Gets the value of the valueBoolean property.
|
Coding |
getValueCoding()
Gets the value of the valueCoding property.
|
Date |
getValueDate()
Gets the value of the valueDate property.
|
DateTime |
getValueDateTime()
Gets the value of the valueDateTime property.
|
Decimal |
getValueDecimal()
Gets the value of the valueDecimal property.
|
Instant |
getValueInstant()
Gets the value of the valueInstant property.
|
Integer |
getValueInteger()
Gets the value of the valueInteger property.
|
Quantity |
getValueQuantity()
Gets the value of the valueQuantity property.
|
Reference |
getValueReference()
Gets the value of the valueReference property.
|
String |
getValueString()
Gets the value of the valueString property.
|
Time |
getValueTime()
Gets the value of the valueTime property.
|
Uri |
getValueUri()
Gets the value of the valueUri property.
|
int |
hashCode() |
int |
hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy) |
void |
setValueAttachment(Attachment value)
Sets the value of the valueAttachment property.
|
void |
setValueBoolean(Boolean value)
Sets the value of the valueBoolean property.
|
void |
setValueCoding(Coding value)
Sets the value of the valueCoding property.
|
void |
setValueDate(Date value)
Sets the value of the valueDate property.
|
void |
setValueDateTime(DateTime value)
Sets the value of the valueDateTime property.
|
void |
setValueDecimal(Decimal value)
Sets the value of the valueDecimal property.
|
void |
setValueInstant(Instant value)
Sets the value of the valueInstant property.
|
void |
setValueInteger(Integer value)
Sets the value of the valueInteger property.
|
void |
setValueQuantity(Quantity value)
Sets the value of the valueQuantity property.
|
void |
setValueReference(Reference value)
Sets the value of the valueReference property.
|
void |
setValueString(String value)
Sets the value of the valueString property.
|
void |
setValueTime(Time value)
Sets the value of the valueTime property.
|
void |
setValueUri(Uri value)
Sets the value of the valueUri property.
|
java.lang.String |
toString() |
QuestionnaireResponseAnswer |
withExtension(java.util.Collection<Extension> values) |
QuestionnaireResponseAnswer |
withExtension(Extension... values) |
QuestionnaireResponseAnswer |
withId(java.lang.String value) |
QuestionnaireResponseAnswer |
withItem(java.util.Collection<QuestionnaireResponseItem> values) |
QuestionnaireResponseAnswer |
withItem(QuestionnaireResponseItem... values) |
QuestionnaireResponseAnswer |
withModifierExtension(java.util.Collection<Extension> values) |
QuestionnaireResponseAnswer |
withModifierExtension(Extension... values) |
QuestionnaireResponseAnswer |
withValueAttachment(Attachment value) |
QuestionnaireResponseAnswer |
withValueBoolean(Boolean value) |
QuestionnaireResponseAnswer |
withValueCoding(Coding value) |
QuestionnaireResponseAnswer |
withValueDate(Date value) |
QuestionnaireResponseAnswer |
withValueDateTime(DateTime value) |
QuestionnaireResponseAnswer |
withValueDecimal(Decimal value) |
QuestionnaireResponseAnswer |
withValueInstant(Instant value) |
QuestionnaireResponseAnswer |
withValueInteger(Integer value) |
QuestionnaireResponseAnswer |
withValueQuantity(Quantity value) |
QuestionnaireResponseAnswer |
withValueReference(Reference value) |
QuestionnaireResponseAnswer |
withValueString(String value) |
QuestionnaireResponseAnswer |
withValueTime(Time value) |
QuestionnaireResponseAnswer |
withValueUri(Uri value) |
getModifierExtensiongetExtension, getId, setIdprotected Boolean valueBoolean
protected Decimal valueDecimal
protected Integer valueInteger
protected Date valueDate
protected DateTime valueDateTime
protected Instant valueInstant
protected Time valueTime
protected String valueString
protected Uri valueUri
protected Attachment valueAttachment
protected Coding valueCoding
protected Quantity valueQuantity
protected Reference valueReference
protected java.util.List<QuestionnaireResponseItem> item
public Boolean getValueBoolean()
Booleanpublic void setValueBoolean(Boolean value)
value - allowed object is
Booleanpublic Decimal getValueDecimal()
Decimalpublic void setValueDecimal(Decimal value)
value - allowed object is
Decimalpublic Integer getValueInteger()
Integerpublic void setValueInteger(Integer value)
value - allowed object is
Integerpublic Date getValueDate()
Datepublic void setValueDate(Date value)
value - allowed object is
Datepublic DateTime getValueDateTime()
DateTimepublic void setValueDateTime(DateTime value)
value - allowed object is
DateTimepublic Instant getValueInstant()
Instantpublic void setValueInstant(Instant value)
value - allowed object is
Instantpublic Time getValueTime()
Timepublic void setValueTime(Time value)
value - allowed object is
Timepublic String getValueString()
Stringpublic void setValueString(String value)
value - allowed object is
Stringpublic Uri getValueUri()
Uripublic void setValueUri(Uri value)
value - allowed object is
Uripublic Attachment getValueAttachment()
Attachmentpublic void setValueAttachment(Attachment value)
value - allowed object is
Attachmentpublic Coding getValueCoding()
Codingpublic void setValueCoding(Coding value)
value - allowed object is
Codingpublic Quantity getValueQuantity()
Quantitypublic void setValueQuantity(Quantity value)
value - allowed object is
Quantitypublic Reference getValueReference()
Referencepublic void setValueReference(Reference value)
value - allowed object is
Referencepublic java.util.List<QuestionnaireResponseItem> getItem()
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 item property.
For example, to add a new item, do as follows:
getItem().add(newItem);
Objects of the following type(s) are allowed in the list
QuestionnaireResponseItem
public QuestionnaireResponseAnswer withValueBoolean(Boolean value)
public QuestionnaireResponseAnswer withValueDecimal(Decimal value)
public QuestionnaireResponseAnswer withValueInteger(Integer value)
public QuestionnaireResponseAnswer withValueDate(Date value)
public QuestionnaireResponseAnswer withValueDateTime(DateTime value)
public QuestionnaireResponseAnswer withValueInstant(Instant value)
public QuestionnaireResponseAnswer withValueTime(Time value)
public QuestionnaireResponseAnswer withValueString(String value)
public QuestionnaireResponseAnswer withValueUri(Uri value)
public QuestionnaireResponseAnswer withValueAttachment(Attachment value)
public QuestionnaireResponseAnswer withValueCoding(Coding value)
public QuestionnaireResponseAnswer withValueQuantity(Quantity value)
public QuestionnaireResponseAnswer withValueReference(Reference value)
public QuestionnaireResponseAnswer withItem(QuestionnaireResponseItem... values)
public QuestionnaireResponseAnswer withItem(java.util.Collection<QuestionnaireResponseItem> values)
public QuestionnaireResponseAnswer withModifierExtension(Extension... values)
withModifierExtension in class BackboneElementpublic QuestionnaireResponseAnswer withModifierExtension(java.util.Collection<Extension> values)
withModifierExtension in class BackboneElementpublic QuestionnaireResponseAnswer withExtension(Extension... values)
withExtension in class BackboneElementpublic QuestionnaireResponseAnswer withExtension(java.util.Collection<Extension> values)
withExtension in class BackboneElementpublic QuestionnaireResponseAnswer withId(java.lang.String value)
withId in class BackboneElementpublic 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)
equals in interface org.jvnet.jaxb2_commons.lang.Equalsequals in class BackboneElementpublic boolean equals(java.lang.Object object)
equals in class BackboneElementpublic int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
hashCode in interface org.jvnet.jaxb2_commons.lang.HashCodehashCode in class BackboneElementpublic int hashCode()
hashCode in class BackboneElementpublic java.lang.String toString()
toString in class BackboneElementpublic java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
append in interface org.jvnet.jaxb2_commons.lang.ToStringappend in class BackboneElementpublic 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 BackboneElement