Package ca.uhn.fhir.model.api
Class BaseElement
java.lang.Object
ca.uhn.fhir.model.api.BaseElement
- All Implemented Interfaces:
IElement
,ISupportsUndeclaredExtensions
,Serializable
,IBase
- Direct Known Subclasses:
BaseIdentifiableElement
,Tag
- See Also:
-
Constructor Summary
-
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 of comments appearing immediately after this element within the serialized form of the resource.Returns a list of comments appearing immediately before this element within the serialized form of the resource.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.getUserData
(String name) Retrieves any user suplied data in this elementboolean
Returnstrue
if any comments would be returned byIBase.getFormatCommentsPre()
orIBase.getFormatCommentsPost()
protected boolean
Intended to be called by extending classesIBase.isEmpty()
implementations, returnstrue
if all content in this superclass instance is empty per the semantics ofIBase.isEmpty()
.void
setUserData
(String name, Object value) Sets a user supplied data value in this element
-
Constructor Details
-
BaseElement
public BaseElement()
-
-
Method Details
-
addUndeclaredExtension
Description copied from interface:ISupportsUndeclaredExtensions
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.- Specified by:
addUndeclaredExtension
in interfaceISupportsUndeclaredExtensions
- See Also:
-
addUndeclaredExtension
public ExtensionDt addUndeclaredExtension(boolean theIsModifier, String theUrl, IBaseDatatype theValue) Description copied from interface:ISupportsUndeclaredExtensions
Adds an extension to this object- Specified by:
addUndeclaredExtension
in interfaceISupportsUndeclaredExtensions
- See Also:
-
addUndeclaredExtension
Description copied from interface:ISupportsUndeclaredExtensions
Adds an extension to this object. This extension should have the following properties set:Is Modifier
URL
- And one of:
- Specified by:
addUndeclaredExtension
in interfaceISupportsUndeclaredExtensions
- Parameters:
theExtension
- The extension to add. Can not be null.
-
getAllUndeclaredExtensions
Description copied from interface:ISupportsUndeclaredExtensions
Returns an immutable list containing all extensions (modifier and non-modifier).- Specified by:
getAllUndeclaredExtensions
in interfaceISupportsUndeclaredExtensions
- See Also:
-
getFormatCommentsPost
Description copied from interface:IBase
Returns a list of comments appearing immediately after this element within the serialized form of the resource. Creates the list if it does not exist, so this method will not returnnull
- Specified by:
getFormatCommentsPost
in interfaceIBase
-
getFormatCommentsPre
Description copied from interface:IBase
Returns a list of comments appearing immediately before this element within the serialized form of the resource. Creates the list if it does not exist, so this method will not returnnull
- Specified by:
getFormatCommentsPre
in interfaceIBase
-
getUndeclaredExtensions
Description copied from interface:ISupportsUndeclaredExtensions
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).- Specified by:
getUndeclaredExtensions
in interfaceISupportsUndeclaredExtensions
-
getUndeclaredExtensionsByUrl
Description copied from interface:ISupportsUndeclaredExtensions
Returns an immutable list containing all undeclared extensions (modifier and non-modifier) by extension URL- Specified by:
getUndeclaredExtensionsByUrl
in interfaceISupportsUndeclaredExtensions
- See Also:
-
getUndeclaredModifierExtensions
Description copied from interface:ISupportsUndeclaredExtensions
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).- Specified by:
getUndeclaredModifierExtensions
in interfaceISupportsUndeclaredExtensions
-
hasFormatComment
Description copied from interface:IBase
Returnstrue
if any comments would be returned byIBase.getFormatCommentsPre()
orIBase.getFormatCommentsPost()
- Specified by:
hasFormatComment
in interfaceIBase
-
getUserData
Description copied from interface:IBase
Retrieves any user suplied data in this element- Specified by:
getUserData
in interfaceIBase
-
setUserData
Description copied from interface:IBase
Sets a user supplied data value in this element- Specified by:
setUserData
in interfaceIBase
-
isBaseEmpty
Intended to be called by extending classesIBase.isEmpty()
implementations, returnstrue
if all content in this superclass instance is empty per the semantics ofIBase.isEmpty()
.
-