@Override public boolean isEmpty() { return super.isBaseEmpty() && getValue() == null; }
/** * Creates a copy of this include with non-recurse behaviour */ public Include asNonRecursive() { return new Include(myValue, false); }
@SuppressWarnings("unchecked") @Override public List<IQueryParameterOr<?>> encode(FhirContext theContext, IQueryParameterAnd<?> theString) throws InternalErrorException { List<IQueryParameterOr<?>> retVal = (List<IQueryParameterOr<?>>) ((IQueryParameterAnd<?>) theString).getValuesAsQueryTokens(); return retVal; }
protected TagList getMetaTagsForEncoding(IResource theIResource) { TagList tags = ResourceMetadataKeyEnum.TAG_LIST.get(theIResource); if (shouldAddSubsettedTag()) { tags = new TagList(tags); tags.add(new Tag(getSubsettedCodeSystem(), Constants.TAG_SUBSETTED_CODE, subsetDescription())); } return tags; }
public QualifiedParamList(IQueryParameterOr<?> theNextOr, FhirContext theContext) { for (IQueryParameterType next : theNextOr.getValuesAsQueryTokens()) { if (myQualifier == null) { myQualifier = next.getQueryParameterQualifier(); } add(next.getValueAsQueryToken(theContext)); } }
/** * Retained for backward compatibility * * @see ExtensionDt#getUrl() */ public String getUrlAsString() { return getUrl(); }
/** * Copy constructor */ public TagList(TagList theTags) { if (theTags != null) { for (Tag next : theTags) { add(next); } } }
@Override public BundleEntryTransactionMethodEnum get(IResource theResource) { return getEnumFromMetadataOrNullIfNone(theResource.getResourceMetadata(), ENTRY_TRANSACTION_METHOD, BundleEntryTransactionMethodEnum.class, BundleEntryTransactionMethodEnum.VALUESET_BINDER); }
@Override public IBaseCoding setSystem(String theScheme) { setScheme(theScheme); return this; }
@Override public BasePrimitive<T> setValue(T theValue) throws DataFormatException { myCoercedValue = theValue; updateStringValue(); return this; }
protected void updateStringValue() { if (myCoercedValue == null) { myStringValue = null; } else { // NB this might be null myStringValue = encode(myCoercedValue); } }
@Override public IBaseCoding setCode(String theTerm) { setTerm(theTerm); return this; }
/** * Note that as of HAPI FHIR 3.1.0, this method no longer uses * the StAX XMLEvent type as the XML representation, and uses a * String instead. If you need to work with XML as StAX events, you * can use the {@link XmlUtil#parse(String)} and {@link XmlUtil#encode(List)} * methods to do so. */ @Override public BasePrimitive<String> setValue(String theValue) throws DataFormatException { return super.setValue(theValue); }
@Override public boolean isEmpty() { for (Tag next : myTagSet) { if (next.isEmpty() == false) { return false; } } return true; }
/** * Note that as of HAPI FHIR 3.1.0, this method no longer uses * the StAX XMLEvent type as the XML representation, and uses a * String instead. If you need to work with XML as StAX events, you * can use the {@link XmlUtil#parse(String)} and {@link XmlUtil#encode(List)} * methods to do so. */ @Override public String getValue() { return super.getValue(); }
@Override public IBaseCoding setDisplay(String theLabel) { setLabel(theLabel); return this; }
@Override public void setValueAsString(String theValue) throws DataFormatException { if (theValue == null) { myCoercedValue = null; } else { // NB this might be null myCoercedValue = parse(theValue); } myStringValue = theValue; }
/** * Returns the validation support module configured for this context, creating a default * implementation if no module has been passed in via the {@link #setValidationSupport(IContextValidationSupport)} * method * * @see #setValidationSupport(IContextValidationSupport) */ public IContextValidationSupport<?, ?, ?, ?, ?, ?> getValidationSupport() { if (myValidationSupport == null) { myValidationSupport = myVersion.createValidationSupport(); } return myValidationSupport; }
/** * Return a new */ public Include toLocked() { Include retVal = new Include(myValue, myRecurse, true); return retVal; }
/** * Creates a copy of this include with recurse behaviour */ public Include asRecursive() { return new Include(myValue, true); }