public class QuestionnaireResponseItem 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.Item complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="QuestionnaireResponse.Item">
<complexContent>
<extension base="{http://hl7.org/fhir}BackboneElement">
<sequence>
<element name="linkId" type="{http://hl7.org/fhir}string" minOccurs="0"/>
<element name="text" type="{http://hl7.org/fhir}string" minOccurs="0"/>
<element name="subject" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
<element name="answer" type="{http://hl7.org/fhir}QuestionnaireResponse.Answer" maxOccurs="unbounded" minOccurs="0"/>
<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<QuestionnaireResponseAnswer> |
answer |
protected java.util.List<QuestionnaireResponseItem> |
item |
protected String |
linkId |
protected Reference |
subject |
protected String |
text |
modifierExtension| Constructor and Description |
|---|
QuestionnaireResponseItem() |
| 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<QuestionnaireResponseAnswer> |
getAnswer()
Gets the value of the answer property.
|
java.util.List<QuestionnaireResponseItem> |
getItem()
Gets the value of the item property.
|
String |
getLinkId()
Gets the value of the linkId property.
|
Reference |
getSubject()
Gets the value of the subject property.
|
String |
getText()
Gets the value of the text property.
|
int |
hashCode() |
int |
hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy) |
void |
setLinkId(String value)
Sets the value of the linkId property.
|
void |
setSubject(Reference value)
Sets the value of the subject property.
|
void |
setText(String value)
Sets the value of the text property.
|
java.lang.String |
toString() |
QuestionnaireResponseItem |
withAnswer(java.util.Collection<QuestionnaireResponseAnswer> values) |
QuestionnaireResponseItem |
withAnswer(QuestionnaireResponseAnswer... values) |
QuestionnaireResponseItem |
withExtension(java.util.Collection<Extension> values) |
QuestionnaireResponseItem |
withExtension(Extension... values) |
QuestionnaireResponseItem |
withId(java.lang.String value) |
QuestionnaireResponseItem |
withItem(java.util.Collection<QuestionnaireResponseItem> values) |
QuestionnaireResponseItem |
withItem(QuestionnaireResponseItem... values) |
QuestionnaireResponseItem |
withLinkId(String value) |
QuestionnaireResponseItem |
withModifierExtension(java.util.Collection<Extension> values) |
QuestionnaireResponseItem |
withModifierExtension(Extension... values) |
QuestionnaireResponseItem |
withSubject(Reference value) |
QuestionnaireResponseItem |
withText(String value) |
getModifierExtensiongetExtension, getId, setIdprotected String linkId
protected String text
protected Reference subject
protected java.util.List<QuestionnaireResponseAnswer> answer
protected java.util.List<QuestionnaireResponseItem> item
public String getLinkId()
Stringpublic void setLinkId(String value)
value - allowed object is
Stringpublic String getText()
Stringpublic void setText(String value)
value - allowed object is
Stringpublic Reference getSubject()
Referencepublic void setSubject(Reference value)
value - allowed object is
Referencepublic java.util.List<QuestionnaireResponseAnswer> getAnswer()
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 answer property.
For example, to add a new item, do as follows:
getAnswer().add(newItem);
Objects of the following type(s) are allowed in the list
QuestionnaireResponseAnswer
public 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 QuestionnaireResponseItem withLinkId(String value)
public QuestionnaireResponseItem withText(String value)
public QuestionnaireResponseItem withSubject(Reference value)
public QuestionnaireResponseItem withAnswer(QuestionnaireResponseAnswer... values)
public QuestionnaireResponseItem withAnswer(java.util.Collection<QuestionnaireResponseAnswer> values)
public QuestionnaireResponseItem withItem(QuestionnaireResponseItem... values)
public QuestionnaireResponseItem withItem(java.util.Collection<QuestionnaireResponseItem> values)
public QuestionnaireResponseItem withModifierExtension(Extension... values)
withModifierExtension in class BackboneElementpublic QuestionnaireResponseItem withModifierExtension(java.util.Collection<Extension> values)
withModifierExtension in class BackboneElementpublic QuestionnaireResponseItem withExtension(Extension... values)
withExtension in class BackboneElementpublic QuestionnaireResponseItem withExtension(java.util.Collection<Extension> values)
withExtension in class BackboneElementpublic QuestionnaireResponseItem 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