Package ca.uhn.fhir.model.api
Interface ISupportsUndeclaredExtensions
-
- All Superinterfaces:
IBase,IElement,Serializable
- All Known Implementing Classes:
Base64BinaryDt,BaseCodingDt,BaseDateTimeDt,BaseElement,BaseHumanNameDt,BaseIdentifiableElement,BaseIdentifierDt,BaseNarrativeDt,BaseOperationOutcome.BaseIssue,BasePrimitive,BaseQuantityDt,BaseResourceReferenceDt,BooleanDt,BoundCodeDt,CodeDt,DateDt,DateParam.DateParamDateTimeHolder,DateTimeDt,DecimalDt,ExtensionDt,IdDt,InstantDt,IntegerDt,InternalCodingDt,MarkdownDt,OidDt,PositiveIntDt,StringDt,Tag,TimeDt,UnsignedIntDt,UriDt,XhtmlDt
public interface ISupportsUndeclaredExtensions extends IElement
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExtensionDtaddUndeclaredExtension(boolean theIsModifier, String theUrl)Adds an extension to this object.ExtensionDtaddUndeclaredExtension(boolean theIsModifier, String theUrl, IBaseDatatype theValue)Adds an extension to this objectvoidaddUndeclaredExtension(ExtensionDt theExtension)Adds an extension to this object.List<ExtensionDt>getAllUndeclaredExtensions()Returns an immutable list containing all extensions (modifier and non-modifier).List<ExtensionDt>getUndeclaredExtensions()Returns a list containing all undeclared non-modifier extensions.List<ExtensionDt>getUndeclaredExtensionsByUrl(String theUrl)Returns an immutable list containing all undeclared extensions (modifier and non-modifier) by extension URLList<ExtensionDt>getUndeclaredModifierExtensions()Returns a list containing all undeclared modifier extensions.-
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, isEmpty, setUserData
-
-
-
-
Method Detail
-
getUndeclaredExtensions
List<ExtensionDt> getUndeclaredExtensions()
Returns a list containing all undeclared non-modifier extensions. The returned list is mutable, so it may be modified (e.g. to add or remove an extension).
-
getUndeclaredExtensionsByUrl
List<ExtensionDt> getUndeclaredExtensionsByUrl(String theUrl)
Returns an immutable list containing all undeclared extensions (modifier and non-modifier) by extension URL
-
getAllUndeclaredExtensions
List<ExtensionDt> getAllUndeclaredExtensions()
Returns an immutable list containing all extensions (modifier and non-modifier).
-
getUndeclaredModifierExtensions
List<ExtensionDt> getUndeclaredModifierExtensions()
Returns a list containing all undeclared modifier extensions. The returned list is mutable, so it may be modified (e.g. to add or remove an extension).
-
addUndeclaredExtension
void addUndeclaredExtension(ExtensionDt theExtension)
Adds an extension to this object. This extension should have the following properties set:Is ModifierURL- And one of:
- Parameters:
theExtension- The extension to add. Can not be null.
-
addUndeclaredExtension
ExtensionDt addUndeclaredExtension(boolean theIsModifier, String theUrl, IBaseDatatype theValue)
Adds an extension to this object
-
addUndeclaredExtension
ExtensionDt addUndeclaredExtension(boolean theIsModifier, String theUrl)
Adds an extension to this object. This method is intended for use when an extension is being added which will contain child extensions, as opposed to a datatype.
-
-