
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
Constructors -
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 objectvoidaddUndeclaredExtension(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 elementbooleanReturnstrueif any comments would be returned byIBase.getFormatCommentsPre()orIBase.getFormatCommentsPost()protected booleanIntended to be called by extending classesIBase.isEmpty()implementations, returnstrueif all content in this superclass instance is empty per the semantics ofIBase.isEmpty().voidsetUserData(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:ISupportsUndeclaredExtensionsAdds 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:
addUndeclaredExtensionin interfaceISupportsUndeclaredExtensions- See Also:
-
addUndeclaredExtension
public ExtensionDt addUndeclaredExtension(boolean theIsModifier, String theUrl, IBaseDatatype theValue) Description copied from interface:ISupportsUndeclaredExtensionsAdds an extension to this object- Specified by:
addUndeclaredExtensionin interfaceISupportsUndeclaredExtensions- See Also:
-
addUndeclaredExtension
Description copied from interface:ISupportsUndeclaredExtensionsAdds an extension to this object. This extension should have the following properties set:Is ModifierURL- And one of:
- Specified by:
addUndeclaredExtensionin interfaceISupportsUndeclaredExtensions- Parameters:
theExtension- The extension to add. Can not be null.
-
getAllUndeclaredExtensions
Description copied from interface:ISupportsUndeclaredExtensionsReturns an immutable list containing all extensions (modifier and non-modifier).- Specified by:
getAllUndeclaredExtensionsin interfaceISupportsUndeclaredExtensions- See Also:
-
getFormatCommentsPost
Description copied from interface:IBaseReturns 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:
getFormatCommentsPostin interfaceIBase
-
getFormatCommentsPre
Description copied from interface:IBaseReturns 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:
getFormatCommentsPrein interfaceIBase
-
getUndeclaredExtensions
Description copied from interface:ISupportsUndeclaredExtensionsReturns 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:
getUndeclaredExtensionsin interfaceISupportsUndeclaredExtensions
-
getUndeclaredExtensionsByUrl
Description copied from interface:ISupportsUndeclaredExtensionsReturns an immutable list containing all undeclared extensions (modifier and non-modifier) by extension URL- Specified by:
getUndeclaredExtensionsByUrlin interfaceISupportsUndeclaredExtensions- See Also:
-
getUndeclaredModifierExtensions
Description copied from interface:ISupportsUndeclaredExtensionsReturns 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:
getUndeclaredModifierExtensionsin interfaceISupportsUndeclaredExtensions
-
hasFormatComment
Description copied from interface:IBaseReturnstrueif any comments would be returned byIBase.getFormatCommentsPre()orIBase.getFormatCommentsPost()- Specified by:
hasFormatCommentin interfaceIBase
-
getUserData
Description copied from interface:IBaseRetrieves any user suplied data in this element- Specified by:
getUserDatain interfaceIBase
-
setUserData
Description copied from interface:IBaseSets a user supplied data value in this element- Specified by:
setUserDatain interfaceIBase
-
isBaseEmpty
Intended to be called by extending classesIBase.isEmpty()implementations, returnstrueif all content in this superclass instance is empty per the semantics ofIBase.isEmpty().
-