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
-
Method Summary
Modifier and TypeMethodDescriptionaddUndeclaredExtension
(boolean theIsModifier, String theUrl) Adds an extension to this object.addUndeclaredExtension
(boolean theIsModifier, String theUrl, IBaseDatatype theValue) Adds an extension to this objectvoid
addUndeclaredExtension
(ExtensionDt theExtension) Adds an extension to this object.Returns an immutable list containing all extensions (modifier and non-modifier).Returns a list containing all undeclared non-modifier extensions.getUndeclaredExtensionsByUrl
(String theUrl) Returns an immutable list containing all undeclared extensions (modifier and non-modifier) by extension URLReturns 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 Details
-
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
Returns an immutable list containing all undeclared extensions (modifier and non-modifier) by extension URL- See Also:
-
getAllUndeclaredExtensions
Returns an immutable list containing all extensions (modifier and non-modifier).- See Also:
-
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
Adds an extension to this object. This extension should have the following properties set:Is Modifier
URL
- And one of:
- Parameters:
theExtension
- The extension to add. Can not be null.
-
addUndeclaredExtension
Adds an extension to this object- See Also:
-
addUndeclaredExtension
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.- See Also:
-