congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
UriDt.equals
Code IndexAdd Tabnine to your IDE (free)

How to use
equals
method
in
ca.uhn.fhir.model.primitive.UriDt

Best Java code snippets using ca.uhn.fhir.model.primitive.UriDt.equals (Showing top 7 results out of 315)

origin: jamesagnew/hapi-fhir

/**
 * Returns true if <code>this</code> identifier has the same {@link #getValueElement() value} and
 * {@link #getSystemElement() system} (as compared by simple equals comparison). Does not compare other values (e.g.
 * getUse()) or any extensions.
 */
public boolean matchesSystemAndValue(BaseIdentifierDt theIdentifier) {
  if (theIdentifier == null) {
    return false;
  }
  return getValueElement().equals(theIdentifier.getValueElement()) && getSystemElement().equals(theIdentifier.getSystemElement());
}
origin: jamesagnew/hapi-fhir

/**
 * Returns true if <code>this</code> Coding has the same {@link #getCodeElement() Code} and {@link #getSystemElement() system} (as compared by simple equals comparison). Does not compare other
 * Codes (e.g. getUseElement()) or any extensions.
 */
public boolean matchesSystemAndCode(BaseCodingDt theCoding) {
  if (theCoding == null) {
    return false;
  }
  return getCodeElement().equals(theCoding.getCodeElement()) && getSystemElement().equals(theCoding.getSystemElement());
}
origin: jamesagnew/hapi-fhir

if (new UriDt(SearchParamConstants.UCUM_NS).equals(nextValue.getSystemElement())) {
  if (isNotBlank(nextValue.getCode())) {
origin: jamesagnew/hapi-fhir

/**
 * returns true if <code>this</code> Coding matches a search for the coding specified by <code>theSearchParam</code>, according
 * to the following:
 * <ul>
 *        <li>[parameter]=[namespace]|[code] matches a code/value in the given system namespace</li>
 *        <li>[parameter]=[code] matches a code/value irrespective of it's system namespace</li>
 *        <li>[parameter]=|[code] matches a code/value that has no system namespace</li>
 * </ul>
 * @param theSearchParam - coding to test <code>this</code> against
 * @return true if the coding matches, false otherwise
 */
public boolean matchesToken(BaseCodingDt theSearchParam) {
  if (theSearchParam.isSystemPresent()) {
    if (theSearchParam.isSystemBlank()) {
      //  [parameter]=|[code] matches a code/value that has no system namespace
      if (isSystemPresent() && !isSystemBlank())
        return false;
    } else {
      //  [parameter]=[namespace]|[code] matches a code/value in the given system namespace
      if (!isSystemPresent())
        return false;
      if (!getSystemElement().equals(theSearchParam.getSystemElement()))
        return false;
    }
  } else {
    //  [parameter]=[code] matches a code/value irrespective of it's system namespace
    // (nothing to do for system for this case)
  }
  return getCodeElement().equals(theSearchParam.getCodeElement());
}
origin: ca.uhn.hapi.fhir/hapi-fhir-base

/**
 * Returns true if <code>this</code> identifier has the same {@link #getValueElement() value} and
 * {@link #getSystemElement() system} (as compared by simple equals comparison). Does not compare other values (e.g.
 * getUse()) or any extensions.
 */
public boolean matchesSystemAndValue(BaseIdentifierDt theIdentifier) {
  if (theIdentifier == null) {
    return false;
  }
  return getValueElement().equals(theIdentifier.getValueElement()) && getSystemElement().equals(theIdentifier.getSystemElement());
}
origin: ca.uhn.hapi.fhir/hapi-fhir-base

/**
 * Returns true if <code>this</code> Coding has the same {@link #getCodeElement() Code} and {@link #getSystemElement() system} (as compared by simple equals comparison). Does not compare other
 * Codes (e.g. getUseElement()) or any extensions.
 */
public boolean matchesSystemAndCode(BaseCodingDt theCoding) {
  if (theCoding == null) {
    return false;
  }
  return getCodeElement().equals(theCoding.getCodeElement()) && getSystemElement().equals(theCoding.getSystemElement());
}
origin: ca.uhn.hapi.fhir/hapi-fhir-base

/**
 * returns true if <code>this</code> Coding matches a search for the coding specified by <code>theSearchParam</code>, according
 * to the following:
 * <ul>
 *        <li>[parameter]=[namespace]|[code] matches a code/value in the given system namespace</li>
 *        <li>[parameter]=[code] matches a code/value irrespective of it's system namespace</li>
 *        <li>[parameter]=|[code] matches a code/value that has no system namespace</li>
 * </ul>
 * @param theSearchParam - coding to test <code>this</code> against
 * @return true if the coding matches, false otherwise
 */
public boolean matchesToken(BaseCodingDt theSearchParam) {
  if (theSearchParam.isSystemPresent()) {
    if (theSearchParam.isSystemBlank()) {
      //  [parameter]=|[code] matches a code/value that has no system namespace
      if (isSystemPresent() && !isSystemBlank())
        return false;
    } else {
      //  [parameter]=[namespace]|[code] matches a code/value in the given system namespace
      if (!isSystemPresent())
        return false;
      if (!getSystemElement().equals(theSearchParam.getSystemElement()))
        return false;
    }
  } else {
    //  [parameter]=[code] matches a code/value irrespective of it's system namespace
    // (nothing to do for system for this case)
  }
  return getCodeElement().equals(theSearchParam.getCodeElement());
}
ca.uhn.fhir.model.primitiveUriDtequals

Javadoc

Compares the given string to the string representation of this URI. In many cases it is preferable to use this instead of the standard #equals(Object) method, since that method returns false unless it is passed an instance of UriDt

Popular methods of UriDt

  • <init>
    Create a new String
  • getValueAsString
  • getValue
  • isEmpty
  • setValue
  • isBaseEmpty
  • normalize
  • setValueAsString

Popular in Java

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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