public StringCriterion(String theName, ParamPrefixEnum thePrefix, String theValue) { myName=theName; myPrefix = thePrefix; myValue = ParameterUtil.escapeWithDefault(theValue); }
public StringCriterion(String theName, String theValue) { myName=theName; myValue = ParameterUtil.escapeWithDefault(theValue); }
@Override public String getParameterValue(FhirContext theContext) { StringBuilder b = new StringBuilder(); if (isNotBlank(myValue) || isNotBlank(mySystem) || isNotBlank(myUnits)) { if (myPrefix != null) { b.append(ParameterUtil.escapeWithDefault(myPrefix.getValue())); } b.append(ParameterUtil.escapeWithDefault(myValue)); b.append('|'); b.append(ParameterUtil.escapeWithDefault(mySystem)); b.append('|'); b.append(ParameterUtil.escapeWithDefault(myUnits)); } return b.toString(); }
@Override String doGetValueAsQueryToken(FhirContext theContext) { StringBuilder b = new StringBuilder(); if (getPrefix() != null) { b.append(ParameterUtil.escapeWithDefault(getPrefix().getValue())); } b.append(ParameterUtil.escapeWithDefault(getValueAsString())); b.append('|'); b.append(ParameterUtil.escapeWithDefault(mySystem)); b.append('|'); b.append(ParameterUtil.escapeWithDefault(myUnits)); return b.toString(); }
/** * Applies {@link #escapeWithDefault(Object)} followed by {@link UrlUtil#escapeUrlParam(String)} */ public static String escapeAndUrlEncode(String theInput) { return UrlUtil.escapeUrlParam(escapeWithDefault(theInput)); }
@Override String doGetValueAsQueryToken(FhirContext theContext) { StringBuilder b = new StringBuilder(); if (getPrefix() != null) { b.append(ParameterUtil.escapeWithDefault(getPrefix().getValue())); } b.append(ParameterUtil.escapeWithDefault(myQuantity.toPlainString())); return b.toString(); }
@Override String doGetValueAsQueryToken(FhirContext theContext) { StringBuilder b = new StringBuilder(); if (getPrefix() != null) { b.append(ParameterUtil.escapeWithDefault(getPrefix().getValue())); } if (myValue != null) { b.append(ParameterUtil.escapeWithDefault(myValue.getValueAsString())); } return b.toString(); }
public StringCriterion(String theName, ParamPrefixEnum thePrefix, String theValue) { myName=theName; myPrefix = thePrefix; myValue = ParameterUtil.escapeWithDefault(theValue); }
public StringCriterion(String theName, String theValue) { myName=theName; myValue = ParameterUtil.escapeWithDefault(theValue); }
@Override public String getParameterValue(FhirContext theContext) { StringBuilder b = new StringBuilder(); if (isNotBlank(myValue) || isNotBlank(mySystem) || isNotBlank(myUnits)) { if (myPrefix != null) { b.append(ParameterUtil.escapeWithDefault(myPrefix.getValue())); } b.append(ParameterUtil.escapeWithDefault(myValue)); b.append('|'); b.append(ParameterUtil.escapeWithDefault(mySystem)); b.append('|'); b.append(ParameterUtil.escapeWithDefault(myUnits)); } return b.toString(); }
@Override String doGetValueAsQueryToken(FhirContext theContext) { StringBuilder b = new StringBuilder(); if (getPrefix() != null) { b.append(ParameterUtil.escapeWithDefault(getPrefix().getValue())); } b.append(ParameterUtil.escapeWithDefault(getValueAsString())); b.append('|'); b.append(ParameterUtil.escapeWithDefault(mySystem)); b.append('|'); b.append(ParameterUtil.escapeWithDefault(myUnits)); return b.toString(); }
/** * Applies {@link #escapeWithDefault(Object)} followed by {@link UrlUtil#escapeUrlParam(String)} */ public static String escapeAndUrlEncode(String theInput) { return UrlUtil.escapeUrlParam(escapeWithDefault(theInput)); }
@Override String doGetValueAsQueryToken(FhirContext theContext) { StringBuilder b = new StringBuilder(); if (getPrefix() != null) { b.append(ParameterUtil.escapeWithDefault(getPrefix().getValue())); } b.append(ParameterUtil.escapeWithDefault(myQuantity.toPlainString())); return b.toString(); }
@Override String doGetValueAsQueryToken(FhirContext theContext) { StringBuilder b = new StringBuilder(); if (getPrefix() != null) { b.append(ParameterUtil.escapeWithDefault(getPrefix().getValue())); } if (myValue != null) { b.append(ParameterUtil.escapeWithDefault(myValue.getValueAsString())); } return b.toString(); }