Package org.hl7.fhir

Class Bundle

All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2

public class Bundle extends Resource 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 either a @value, an @id, or extensions

Java class for Bundle complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Bundle">
   <complexContent>
     <extension base="{http://hl7.org/fhir}Resource">
       <sequence>
         <element name="type" type="{http://hl7.org/fhir}BundleType"/>
         <element name="total" type="{http://hl7.org/fhir}unsignedInt" minOccurs="0"/>
         <element name="link" type="{http://hl7.org/fhir}Bundle.Link" maxOccurs="unbounded" minOccurs="0"/>
         <element name="entry" type="{http://hl7.org/fhir}Bundle.Entry" maxOccurs="unbounded" minOccurs="0"/>
         <element name="signature" type="{http://hl7.org/fhir}Signature" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Bundle

      public Bundle()
  • Method Details

    • getType

      public BundleType getType()
      Gets the value of the type property.
      Returns:
      possible object is BundleType
    • setType

      public void setType(BundleType value)
      Sets the value of the type property.
      Parameters:
      value - allowed object is BundleType
    • getTotal

      public UnsignedInt getTotal()
      Gets the value of the total property.
      Returns:
      possible object is UnsignedInt
    • setTotal

      public void setTotal(UnsignedInt value)
      Sets the value of the total property.
      Parameters:
      value - allowed object is UnsignedInt
    • getLink

      public List<BundleLink> getLink()
      Gets the value of the link 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 Jakarta XML Binding object. This is why there is not a set method for the link property.

      For example, to add a new item, do as follows:

          getLink().add(newItem);
       

      Objects of the following type(s) are allowed in the list BundleLink

    • getEntry

      public List<BundleEntry> getEntry()
      Gets the value of the entry 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 Jakarta XML Binding object. This is why there is not a set method for the entry property.

      For example, to add a new item, do as follows:

          getEntry().add(newItem);
       

      Objects of the following type(s) are allowed in the list BundleEntry

    • getSignature

      public Signature getSignature()
      Gets the value of the signature property.
      Returns:
      possible object is Signature
    • setSignature

      public void setSignature(Signature value)
      Sets the value of the signature property.
      Parameters:
      value - allowed object is Signature
    • withType

      public Bundle withType(BundleType value)
    • withTotal

      public Bundle withTotal(UnsignedInt value)
    • withLink

      public Bundle withLink(BundleLink... values)
    • withLink

      public Bundle withLink(Collection<BundleLink> values)
    • withEntry

      public Bundle withEntry(BundleEntry... values)
    • withEntry

      public Bundle withEntry(Collection<BundleEntry> values)
    • withSignature

      public Bundle withSignature(Signature value)
    • withId

      public Bundle withId(Id value)
      Overrides:
      withId in class Resource
    • withMeta

      public Bundle withMeta(Meta value)
      Overrides:
      withMeta in class Resource
    • withImplicitRules

      public Bundle withImplicitRules(Uri value)
      Overrides:
      withImplicitRules in class Resource
    • withLanguage

      public Bundle withLanguage(Code value)
      Overrides:
      withLanguage in class Resource
    • equals

      public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)
      Specified by:
      equals in interface org.jvnet.jaxb2_commons.lang.Equals2
      Overrides:
      equals in class Resource
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Resource
    • hashCode

      public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
      Specified by:
      hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode2
      Overrides:
      hashCode in class Resource
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Resource
    • toString

      public String toString()
      Overrides:
      toString in class Resource
    • append

      public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      append in interface org.jvnet.jaxb2_commons.lang.ToString2
      Overrides:
      append in class Resource
    • appendFields

      public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
      Overrides:
      appendFields in class Resource
    • setLink

      public void setLink(List<BundleLink> value)
    • setEntry

      public void setEntry(List<BundleEntry> value)