public abstract class Element extends Base implements IBaseHasExtensions, IBaseElement
| Modifier and Type | Field and Description |
|---|---|
protected List<Extension> |
extension
May be used to represent additional information that is not part of the basic definition of the element.
|
protected StringType |
id
unique id for the element within a resource (for internal references).
|
| Constructor and Description |
|---|
Element()
Constructor
|
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNprotected StringType id
protected List<Extension> extension
public Element()
public StringType getIdElement()
id (unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.). This is the underlying object with id, value and extensions. The accessor "getId" gives direct access to the valuepublic boolean hasIdElement()
public boolean hasId()
public Element setIdElement(StringType value)
value - id (unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.). This is the underlying object with id, value and extensions. The accessor "getId" gives direct access to the valuepublic String getId()
getId in interface IBaseElementpublic Element setId(String value)
setId in interface IBaseElementvalue - unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.public List<Extension> getExtension()
getExtension in interface IBaseHasExtensionsextension (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.)public Element setExtension(List<Extension> theExtension)
this for easy method chainingpublic boolean hasExtension()
hasExtension in interface IBaseHasExtensionspublic Extension addExtension()
addExtension in interface IBaseHasExtensionspublic Element addExtension(Extension t)
public Extension getExtensionFirstRep()
extension, creating it if it does not already existpublic List<Extension> getExtensionsByUrl(String theUrl)
theUrl - The URL. Must not be blank or null.public boolean hasExtension(String theUrl)
public String getExtensionString(String theUrl) throws FHIRException
FHIRExceptionprotected void listChildren(List<Property> childrenList)
listChildren in class Basepublic Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException
getProperty in class BaseFHIRExceptionpublic Base setProperty(int hash, String name, Base value) throws FHIRException
setProperty in class BaseFHIRExceptionpublic Base setProperty(String name, Base value) throws FHIRException
setProperty in class BaseFHIRExceptionpublic Base makeProperty(int hash, String name) throws FHIRException
makeProperty in class BaseFHIRExceptionpublic String[] getTypesForProperty(int hash, String name) throws FHIRException
getTypesForProperty in class BaseFHIRExceptionpublic Base addChild(String name) throws FHIRException
addChild in class BaseFHIRExceptionpublic void copyValues(Element dst)
public boolean equalsDeep(Base other)
equalsDeep in class Basepublic boolean equalsShallow(Base other)
equalsShallow in class Basepublic boolean isEmpty()
public void addExtension(String url, Type value)
Copyright © 2014–2017 University Health Network. All rights reserved.