Class Bundle.Entry
- java.lang.Object
-
- org.linuxforhealth.fhir.model.visitor.AbstractVisitable
-
- org.linuxforhealth.fhir.model.type.Element
-
- org.linuxforhealth.fhir.model.type.BackboneElement
-
- org.linuxforhealth.fhir.model.resource.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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Bundle.Entry.Builder
static class
Bundle.Entry.Request
Additional information about how this entry should be processed as part of a transaction or batch.static class
Bundle.Entry.Response
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.static class
Bundle.Entry.Search
Information about the search process that lead to the creation of this entry.
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.model.type.BackboneElement
modifierExtension
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(java.lang.String elementName, int elementIndex, Visitor visitor)
Accept a Visitor and invoke the appropriate visit methods.static Bundle.Entry.Builder
builder()
boolean
equals(java.lang.Object obj)
Uri
getFullUrl()
The Absolute URL for the resource.java.util.List<Bundle.Link>
getLink()
A series of links that provide context to this entry.Bundle.Entry.Request
getRequest()
Additional information about how this entry should be processed as part of a transaction or batch.Resource
getResource()
The Resource for the entry.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.Bundle.Entry.Search
getSearch()
Information about the search process that lead to the creation of this entry.boolean
hasChildren()
int
hashCode()
Bundle.Entry.Builder
toBuilder()
Create a new Builder from the contents of this Element-
Methods inherited from class org.linuxforhealth.fhir.model.type.BackboneElement
getModifierExtension
-
Methods inherited from class org.linuxforhealth.fhir.model.type.Element
as, getExtension, getId, hasValue, is
-
-
-
-
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.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildren
in classBackboneElement
-
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 interfaceVisitable
- Specified by:
accept
in classAbstractVisitable
- Parameters:
elementName
- the name of the element in the context of this visitelementIndex
- the index of the element in a list or -1 if it is not contained within a Listvisitor
- the visitor to use
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toBuilder
public Bundle.Entry.Builder toBuilder()
Description copied from class:Element
Create a new Builder from the contents of this Element- Specified by:
toBuilder
in classBackboneElement
-
builder
public static Bundle.Entry.Builder builder()
-
-