@Override String doGetValueAsQueryToken(FhirContext theContext) { return ParameterUtil.escape(myValue); }
@Override String doGetValueAsQueryToken(FhirContext theContext) { return ParameterUtil.escape(myValue); }
/** * Escapes a string according to the rules for parameter escaping specified in the <a href="http://www.hl7.org/implement/standards/fhir/search.html#escaping">FHIR Specification Escaping * Section</a> */ public static String escapeWithDefault(Object theValue) { if (theValue == null) { return ""; } return escape(theValue.toString()); }
private String toValue(String theSystem, String theCode) { String system = ParameterUtil.escape(theSystem); String code = ParameterUtil.escape(theCode); String value; if (StringUtils.isNotBlank(system)) { value = system + "|" + StringUtils.defaultString(code); } else if (system == null) { value = StringUtils.defaultString(code); } else { value = "|" + StringUtils.defaultString(code); } return value; }
public StringCriterion(String theName, Collection<String> theValue) { myName=theName; StringBuilder b = new StringBuilder(); for (String next : theValue) { if (StringUtils.isBlank(next)) { continue; } if (b.length() > 0) { b.append(','); } b.append(ParameterUtil.escape(next)); } myValue = b.toString(); }
/** * {@inheritDoc} */ @Override String doGetValueAsQueryToken(FhirContext theContext) { return ParameterUtil.escape(getValue()); }
/** * {@inheritDoc} */ @Override String doGetValueAsQueryToken(FhirContext theContext) { if (getSystem() != null) { if (getValue() != null) { return ParameterUtil.escape(StringUtils.defaultString(getSystem())) + '|' + ParameterUtil.escape(getValue()); } else { return ParameterUtil.escape(StringUtils.defaultString(getSystem())) + '|'; } } return ParameterUtil.escape(getValue()); }
/** * {@inheritDoc} */ @Override public String getValueAsQueryToken(FhirContext theContext) { UriDt system = getSystemElement(); StringDt value = getValueElement(); if (system.getValueAsString() != null) { return ParameterUtil.escape(StringUtils.defaultString(system.getValueAsString())) + '|' + ParameterUtil.escape(value.getValueAsString()); } return ParameterUtil.escape(value.getValueAsString()); }
public static String createSortStringDstu3(SortSpec ss) { StringBuilder val = new StringBuilder(); while (ss != null) { if (isNotBlank(ss.getParamName())) { if (val.length() > 0) { val.append(','); } if (ss.getOrder() == SortOrderEnum.DESC) { val.append('-'); } val.append(ParameterUtil.escape(ss.getParamName())); } ss = ss.getChain(); } String string = val.toString(); return string; }
public static String createSortStringDstu3(SortSpec ss) { StringBuilder val = new StringBuilder(); while (ss != null) { if (isNotBlank(ss.getParamName())) { if (val.length() > 0) { val.append(','); } if (ss.getOrder() == SortOrderEnum.DESC) { val.append('-'); } val.append(ParameterUtil.escape(ss.getParamName())); } ss = ss.getChain(); } String string = val.toString(); return string; }
/** * {@inheritDoc} */ @Override public String getValueAsQueryToken(FhirContext theContext) { if (getSystemElement().getValueAsString() != null) { return ParameterUtil.escape(StringUtils.defaultString(getSystemElement().getValueAsString())) + '|' + ParameterUtil.escape(getCodeElement().getValueAsString()); } return ParameterUtil.escape(getCodeElement().getValueAsString()); }
@Override String doGetValueAsQueryToken(FhirContext theContext) { return ParameterUtil.escape(myValue); }
@Override String doGetValueAsQueryToken(FhirContext theContext) { return ParameterUtil.escape(myValue); }
/** * Escapes a string according to the rules for parameter escaping specified in the <a href="http://www.hl7.org/implement/standards/fhir/search.html#escaping">FHIR Specification Escaping * Section</a> */ public static String escapeWithDefault(Object theValue) { if (theValue == null) { return ""; } return escape(theValue.toString()); }
private String toValue(String theSystem, String theCode) { String system = ParameterUtil.escape(theSystem); String code = ParameterUtil.escape(theCode); String value; if (StringUtils.isNotBlank(system)) { value = system + "|" + StringUtils.defaultString(code); } else if (system == null) { value = StringUtils.defaultString(code); } else { value = "|" + StringUtils.defaultString(code); } return value; }
public StringCriterion(String theName, Collection<String> theValue) { myName=theName; StringBuilder b = new StringBuilder(); for (String next : theValue) { if (StringUtils.isBlank(next)) { continue; } if (b.length() > 0) { b.append(','); } b.append(ParameterUtil.escape(next)); } myValue = b.toString(); }
/** * {@inheritDoc} */ @Override String doGetValueAsQueryToken(FhirContext theContext) { return ParameterUtil.escape(getValue()); }
/** * {@inheritDoc} */ @Override String doGetValueAsQueryToken(FhirContext theContext) { if (getSystem() != null) { if (getValue() != null) { return ParameterUtil.escape(StringUtils.defaultString(getSystem())) + '|' + ParameterUtil.escape(getValue()); } else { return ParameterUtil.escape(StringUtils.defaultString(getSystem())) + '|'; } } return ParameterUtil.escape(getValue()); }
/** * {@inheritDoc} */ @Override public String getValueAsQueryToken(FhirContext theContext) { UriDt system = getSystemElement(); StringDt value = getValueElement(); if (system.getValueAsString() != null) { return ParameterUtil.escape(StringUtils.defaultString(system.getValueAsString())) + '|' + ParameterUtil.escape(value.getValueAsString()); } return ParameterUtil.escape(value.getValueAsString()); }
/** * {@inheritDoc} */ @Override public String getValueAsQueryToken(FhirContext theContext) { if (getSystemElement().getValueAsString() != null) { return ParameterUtil.escape(StringUtils.defaultString(getSystemElement().getValueAsString())) + '|' + ParameterUtil.escape(getCodeElement().getValueAsString()); } return ParameterUtil.escape(getCodeElement().getValueAsString()); }