congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
UriType.getValueAsString
Code IndexAdd Tabnine to your IDE (free)

How to use
getValueAsString
method
in
org.hl7.fhir.instance.model.UriType

Best Java code snippets using org.hl7.fhir.instance.model.UriType.getValueAsString (Showing top 6 results out of 315)

origin: jamesagnew/hapi-fhir

/**
 * Compares the given string to the string representation of this URI. In many cases it is preferable to use this
 * instead of the standard {@link #equals(Object)} method, since that method returns <code>false</code> unless it is
 * passed an instance of {@link UriType}
 */
public boolean equals(String theString) {
  return StringUtils.equals(getValueAsString(), theString);
}
origin: jamesagnew/hapi-fhir

/**
 * Creates an ID based on a given URL
 */
public IdType(UriType theUrl) {
 setValue(theUrl.getValueAsString());
}
origin: jamesagnew/hapi-fhir

public org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent convertElementDefinitionTypeComponent(org.hl7.fhir.instance.model.ElementDefinition.TypeRefComponent src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent tgt = new org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent();
 copyElement(src, tgt);
 tgt.setCodeElement(convertCodeToUri(src.getCodeElement()));
 for (org.hl7.fhir.instance.model.UriType t : src.getProfile())
  if (src.hasCode() && "Reference".equals(src.getCode()))
   tgt.setTargetProfile(t.getValueAsString());
  else
   tgt.setProfile(t.getValue());
 for (org.hl7.fhir.instance.model.Enumeration<org.hl7.fhir.instance.model.ElementDefinition.AggregationMode> t : src.getAggregation())
  tgt.addAggregation(convertAggregationMode(t.getValue()));
 return tgt;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-hl7org-dstu2

/**
 * Compares the given string to the string representation of this URI. In many cases it is preferable to use this
 * instead of the standard {@link #equals(Object)} method, since that method returns <code>false</code> unless it is
 * passed an instance of {@link UriType}
 */
public boolean equals(String theString) {
  return StringUtils.equals(getValueAsString(), theString);
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-hl7org-dstu2

/**
 * Creates an ID based on a given URL
 */
public IdType(UriType theUrl) {
 setValue(theUrl.getValueAsString());
}
origin: ca.uhn.hapi.fhir/hapi-fhir-converter

public org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent convertElementDefinitionTypeComponent(org.hl7.fhir.instance.model.ElementDefinition.TypeRefComponent src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent tgt = new org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent();
 copyElement(src, tgt);
 tgt.setCodeElement(convertCodeToUri(src.getCodeElement()));
 for (org.hl7.fhir.instance.model.UriType t : src.getProfile())
  if (src.hasCode() && "Reference".equals(src.getCode()))
   tgt.setTargetProfile(t.getValueAsString());
  else
   tgt.setProfile(t.getValue());
 for (org.hl7.fhir.instance.model.Enumeration<org.hl7.fhir.instance.model.ElementDefinition.AggregationMode> t : src.getAggregation())
  tgt.addAggregation(convertAggregationMode(t.getValue()));
 return tgt;
}
org.hl7.fhir.instance.modelUriTypegetValueAsString

Popular methods of UriType

  • getValue
  • <init>
    Constructor
  • asStringValue
  • copy
  • equals
    Compares the given string to the string representation of this URI. In many cases it is preferable t
  • isEmpty
  • normalize
  • setValue
  • setValueAsString

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top PhpStorm 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