
Package org.hl7.fhir.dstu2.model
Class Element
java.lang.Object
org.hl7.fhir.dstu2.model.Base
org.hl7.fhir.dstu2.model.Element
- All Implemented Interfaces:
Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseElement,org.hl7.fhir.instance.model.api.IBaseHasExtensions
- Direct Known Subclasses:
BackboneElement,ElementDefinition.ElementDefinitionBaseComponent,ElementDefinition.ElementDefinitionBindingComponent,ElementDefinition.ElementDefinitionConstraintComponent,ElementDefinition.ElementDefinitionMappingComponent,ElementDefinition.ElementDefinitionSlicingComponent,ElementDefinition.TypeRefComponent,Timing.TimingRepeatComponent,Type
public abstract class Element
extends Base
implements org.hl7.fhir.instance.model.api.IBaseHasExtensions, org.hl7.fhir.instance.model.api.IBaseElement
Base definition for all elements in a resource.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExtension(String url, Type value) abstract Elementcopy()voidcopyValues(Element dst) booleanequalsDeep(Base other) booleanequalsShallow(Base other) fhirType()getExtensionByUrl(String theUrl) getExtensionsByUrl(String theUrl) Returns an unmodifiable list containing all extensions on this element which match the given URL.getExtensionString(String theUrl) getId()booleanbooleanhasExtension(String theUrl) booleanhasId()booleanbooleanisEmpty()protected voidlistChildren(List<Property> childrenList) setIdElement(IdType value) voidsetProperty(String name, Base value) Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINNMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseElement
getUserData, setUserData
-
Field Details
-
id
unique id for the element within a resource (for internal references). -
extension
May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
-
-
Constructor Details
-
Element
public Element()
-
-
Method Details
-
getIdElement
- Returns:
id(unique id for the element within a resource (for internal references).). This is the underlying object with id, value and extensions. The accessor "getId" gives direct access to the value
-
hasIdElement
-
hasId
-
setIdElement
- Parameters:
value-id(unique id for the element within a resource (for internal references).). This is the underlying object with id, value and extensions. The accessor "getId" gives direct access to the value
-
getId
- Specified by:
getIdin interfaceorg.hl7.fhir.instance.model.api.IBaseElement- Returns:
- unique id for the element within a resource (for internal references).
-
setId
- Specified by:
setIdin interfaceorg.hl7.fhir.instance.model.api.IBaseElement- Parameters:
value- unique id for the element within a resource (for internal references).
-
getExtension
- Specified by:
getExtensionin interfaceorg.hl7.fhir.instance.model.api.IBaseHasExtensions- Returns:
extension(May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.)
-
hasExtension
- Specified by:
hasExtensionin interfaceorg.hl7.fhir.instance.model.api.IBaseHasExtensions
-
addExtension
- Specified by:
addExtensionin interfaceorg.hl7.fhir.instance.model.api.IBaseHasExtensions- Returns:
extension(May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.)
-
addExtension
-
getExtensionsByUrl
Returns an unmodifiable list containing all extensions on this element which match the given URL.- Parameters:
theUrl- The URL. Must not be blank or null.- Returns:
- an unmodifiable list containing all extensions on this element which match the given URL
-
getExtensionByUrl
-
addExtension
-
hasExtension
-
getExtensionString
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
listChildren
- Specified by:
listChildrenin classBase
-
setProperty
- Overrides:
setPropertyin classBase- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
-
fhirType
-
copy
-
copyValues
-
equalsDeep
- Overrides:
equalsDeepin classBase
-
equalsShallow
- Overrides:
equalsShallowin classBase
-
isEmpty
-