Tabnine Logo
Bundle$BundleEntryComponent.addLink
Code IndexAdd Tabnine to your IDE (free)

How to use
addLink
method
in
org.hl7.fhir.dstu3.model.Bundle$BundleEntryComponent

Best Java code snippets using org.hl7.fhir.dstu3.model.Bundle$BundleEntryComponent.addLink (Showing top 7 results out of 315)

origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

/**
 * @return The first repetition of repeating field {@link #link}, creating it if it does not already exist
 */
public BundleLinkComponent getLinkFirstRep() { 
 if (getLink().isEmpty()) {
  addLink();
 }
 return getLink().get(0);
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

@Override
public Base addChild(String name) throws FHIRException {
 if (name.equals("link")) {
  return addLink();
 }
 else if (name.equals("fullUrl")) {
  throw new FHIRException("Cannot call addChild on a primitive type Bundle.fullUrl");
 }
 else if (name.equals("resource")) {
  throw new FHIRException("Cannot call addChild on an abstract type Bundle.resource");
 }
 else if (name.equals("search")) {
  this.search = new BundleEntrySearchComponent();
  return this.search;
 }
 else if (name.equals("request")) {
  this.request = new BundleEntryRequestComponent();
  return this.request;
 }
 else if (name.equals("response")) {
  this.response = new BundleEntryResponseComponent();
  return this.response;
 }
 else
  return super.addChild(name);
}
origin: ca.uhn.hapi.fhir/hapi-fhir-converter

public static org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent convertBundleEntryComponent(org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent();
 copyElement(src, tgt);
 for (org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent t : src.getLink())
  tgt.addLink(convertBundleLinkComponent(t));
 if (src.hasFullUrl())
  tgt.setFullUrl(src.getFullUrl());
 tgt.setResource(convertResource(src.getResource()));
 tgt.setSearch(convertBundleEntrySearchComponent(src.getSearch()));
 tgt.setRequest(convertBundleEntryRequestComponent(src.getRequest()));
 tgt.setResponse(convertBundleEntryResponseComponent(src.getResponse()));
 return tgt;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-converter

public org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent convertBundleEntryComponent(org.hl7.fhir.instance.model.Bundle.BundleEntryComponent src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent();
 copyElement(src, tgt);
 for (org.hl7.fhir.instance.model.Bundle.BundleLinkComponent t : src.getLink())
  tgt.addLink(convertBundleLinkComponent(t));
 tgt.setFullUrl(src.getFullUrl());
 tgt.setResource(convertResource(src.getResource()));
 tgt.setSearch(convertBundleEntrySearchComponent(src.getSearch()));
 tgt.setRequest(convertBundleEntryRequestComponent(src.getRequest()));
 tgt.setResponse(convertBundleEntryResponseComponent(src.getResponse()));
 return tgt;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

@Override
public Base makeProperty(int hash, String name) throws FHIRException {
 switch (hash) {
 case 3321850:  return addLink(); 
 case -511251360:  return getFullUrlElement();
 case -341064690: throw new FHIRException("Cannot make property resource as it is not a complex type"); // Resource
 case -906336856:  return getSearch(); 
 case 1095692943:  return getRequest(); 
 case -340323263:  return getResponse(); 
 default: return super.makeProperty(hash, name);
 }
}
origin: jamesagnew/hapi-fhir

public static org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent convertBundleEntryComponent(org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent();
 copyElement(src, tgt);
 for (org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent t : src.getLink())
  tgt.addLink(convertBundleLinkComponent(t));
 if (src.hasFullUrl())
  tgt.setFullUrl(src.getFullUrl());
 tgt.setResource(convertResource(src.getResource()));
 tgt.setSearch(convertBundleEntrySearchComponent(src.getSearch()));
 tgt.setRequest(convertBundleEntryRequestComponent(src.getRequest()));
 tgt.setResponse(convertBundleEntryResponseComponent(src.getResponse()));
 return tgt;
}
origin: jamesagnew/hapi-fhir

public org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent convertBundleEntryComponent(org.hl7.fhir.instance.model.Bundle.BundleEntryComponent src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent();
 copyElement(src, tgt);
 for (org.hl7.fhir.instance.model.Bundle.BundleLinkComponent t : src.getLink())
  tgt.addLink(convertBundleLinkComponent(t));
 tgt.setFullUrl(src.getFullUrl());
 tgt.setResource(convertResource(src.getResource()));
 tgt.setSearch(convertBundleEntrySearchComponent(src.getSearch()));
 tgt.setRequest(convertBundleEntryRequestComponent(src.getRequest()));
 tgt.setResponse(convertBundleEntryResponseComponent(src.getResponse()));
 return tgt;
}
org.hl7.fhir.dstu3.modelBundle$BundleEntryComponentaddLink

Popular methods of Bundle$BundleEntryComponent

  • getResource
  • setResource
  • getRequest
  • <init>
    Constructor
  • getFullUrl
  • getResponse
  • setFullUrl
  • getLink
    Returns the #getLink() which matches a given BundleLinkComponent#getRelation(). If no link is found
  • getSearch
  • isEmpty
  • setRequest
  • setResponse
  • setRequest,
  • setResponse,
  • castToResource,
  • castToUri,
  • compareDeep,
  • compareValues,
  • copy,
  • copyValues,
  • getFullUrlElement

Popular in Java

  • Reactive rest calls using spring rest template
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Reference (javax.naming)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now