@CoverageIgnore @Override HasParam newInstance() { return new HasParam(); }
@Override void doSetValueAsQueryToken(FhirContext theContext, String theParamName, String theQualifier, String theValue) { String qualifier = defaultString(theQualifier); if (!qualifier.startsWith(":")) { throwInvalidSyntaxException(Constants.PARAM_HAS + qualifier); } int colonIndex0 = qualifier.indexOf(':', 1); validateColon(qualifier, colonIndex0); int colonIndex1 = qualifier.indexOf(':', colonIndex0 + 1); validateColon(qualifier, colonIndex1); myTargetResourceType = qualifier.substring(1, colonIndex0); myOwningFieldName = qualifier.substring(colonIndex0 + 1, colonIndex1); myParameterName = qualifier.substring(colonIndex1 + 1); myParameterValue = theValue; }
valueBuilder.append(','); valueBuilder.append(UrlUtil.escapeUrlParam(next.getValueAsQueryToken(myContext))); targetResourceType = next.getTargetResourceType(); owningParameter = next.getOwningFieldName(); parameterName = next.getParameterName();
private static void validateColon(String theParameterName, int colonIndex) { if (colonIndex == -1) { throwInvalidSyntaxException(theParameterName); } }
valueBuilder.append(','); valueBuilder.append(UrlUtil.escapeUrlParam(next.getValueAsQueryToken(myContext))); targetResourceType = next.getTargetResourceType(); owningParameter = next.getOwningFieldName(); parameterName = next.getParameterName();
private static void validateColon(String theParameterName, int colonIndex) { if (colonIndex == -1) { throwInvalidSyntaxException(theParameterName); } }
@Override void doSetValueAsQueryToken(FhirContext theContext, String theParamName, String theQualifier, String theValue) { String qualifier = defaultString(theQualifier); if (!qualifier.startsWith(":")) { throwInvalidSyntaxException(Constants.PARAM_HAS + qualifier); } int colonIndex0 = qualifier.indexOf(':', 1); validateColon(qualifier, colonIndex0); int colonIndex1 = qualifier.indexOf(':', colonIndex0 + 1); validateColon(qualifier, colonIndex1); myTargetResourceType = qualifier.substring(1, colonIndex0); myOwningFieldName = qualifier.substring(colonIndex0 + 1, colonIndex1); myParameterName = qualifier.substring(colonIndex1 + 1); myParameterValue = theValue; }
@CoverageIgnore @Override HasParam newInstance() { return new HasParam(); }