Class Bundle.Entry

  • All Implemented Interfaces:
    Visitable
    Enclosing class:
    Bundle

    public static class Bundle.Entry
    extends BackboneElement
    An entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only).
    • Method Detail

      • getLink

        public java.util.List<Bundle.Link> getLink()
        A series of links that provide context to this entry.
        Returns:
        An unmodifiable list containing immutable objects of type Bundle.Link that may be empty.
      • getFullUrl

        public Uri getFullUrl()
        The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: * fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle) * Results from operations might involve resources that are not identified.
        Returns:
        An immutable object of type Uri that may be null.
      • getResource

        public Resource getResource()
        The Resource for the entry. The purpose/meaning of the resource is determined by the Bundle.type.
        Returns:
        An immutable object of type Resource that may be null.
      • getSearch

        public Bundle.Entry.Search getSearch()
        Information about the search process that lead to the creation of this entry.
        Returns:
        An immutable object of type Bundle.Entry.Search that may be null.
      • getRequest

        public Bundle.Entry.Request getRequest()
        Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry.
        Returns:
        An immutable object of type Bundle.Entry.Request that may be null.
      • getResponse

        public Bundle.Entry.Response getResponse()
        Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history.
        Returns:
        An immutable object of type Bundle.Entry.Response that may be null.
      • accept

        public void accept​(java.lang.String elementName,
                           int elementIndex,
                           Visitor visitor)
        Description copied from interface: Visitable
        Accept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:
         if (visitor.preVisit(this)) {
             visitor.visitStart(elementName, elementIndex, this);
             if (visitor.visit(elementName, elementIndex, this)) {
                 // visit children
             }
             visitor.visitEnd(elementName, elementIndex, this);
             visitor.postVisit(this);
         }
         
        Specified by:
        accept in interface Visitable
        Specified by:
        accept in class AbstractVisitable
        Parameters:
        elementName - the name of the element in the context of this visit
        elementIndex - the index of the element in a list or -1 if it is not contained within a List
        visitor - the visitor to use
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object