public class Extension extends BaseExtension implements IBaseExtension<Extension,Type>, IBaseHasExtensions
| Modifier and Type | Field and Description |
|---|---|
protected UriType |
url
Source of the definition for the extension code - a logical name or a URL.
|
protected Type |
value
Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).
|
| Constructor and Description |
|---|
Extension()
Constructor
|
Extension(String theUrl)
Constructor
|
Extension(String theUrl,
IBaseDatatype theValue)
Constructor
|
Extension(UriType url)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Base |
addChild(String name) |
Extension |
copy() |
boolean |
equalsDeep(Base other) |
boolean |
equalsShallow(Base other) |
String |
fhirType() |
Base[] |
getProperty(int hash,
String name,
boolean checkValid) |
String[] |
getTypesForProperty(int hash,
String name) |
String |
getUrl() |
UriType |
getUrlElement() |
Type |
getValue() |
boolean |
hasUrl() |
boolean |
hasUrlElement() |
boolean |
hasValue() |
boolean |
isEmpty() |
protected void |
listChildren(List<Property> childrenList) |
Base |
makeProperty(int hash,
String name) |
Base |
setProperty(int hash,
String name,
Base value) |
Base |
setProperty(String name,
Base value) |
Extension |
setUrl(String value) |
Extension |
setUrlElement(UriType value) |
Extension |
setValue(Type value) |
protected Extension |
typedCopy() |
getValueAsPrimitive, setValueaddExtension, addExtension, addExtension, copyValues, getExtension, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setExtension, setId, setIdBase, setIdElementcastToAddress, 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, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExtension, setValuegetFormatCommentsPost, getFormatCommentsPre, hasFormatCommentaddExtension, getExtension, hasExtensionprotected UriType url
public Extension()
public Extension(String theUrl, IBaseDatatype theValue)
public UriType getUrlElement()
url (Source of the definition for the extension code - a logical name or a URL.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the valuepublic boolean hasUrlElement()
public boolean hasUrl()
public Extension setUrlElement(UriType value)
value - url (Source of the definition for the extension code - a logical name or a URL.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the valuepublic String getUrl()
getUrl in interface IBaseExtension<Extension,Type>public Extension setUrl(String value)
setUrl in interface IBaseExtension<Extension,Type>value - Source of the definition for the extension code - a logical name or a URL.public Type getValue()
getValue in interface IBaseExtension<Extension,Type>value (Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).)public boolean hasValue()
public Extension setValue(Type value)
setValue in class BaseExtensionvalue - value (Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).)protected void listChildren(List<Property> childrenList)
listChildren in class Elementpublic Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException
getProperty in class ElementFHIRExceptionpublic Base setProperty(int hash, String name, Base value) throws FHIRException
setProperty in class ElementFHIRExceptionpublic Base setProperty(String name, Base value) throws FHIRException
setProperty in class ElementFHIRExceptionpublic Base makeProperty(int hash, String name) throws FHIRException
makeProperty in class ElementFHIRExceptionpublic String[] getTypesForProperty(int hash, String name) throws FHIRException
getTypesForProperty in class ElementFHIRExceptionpublic Base addChild(String name) throws FHIRException
addChild in class ElementFHIRExceptionpublic boolean equalsDeep(Base other)
equalsDeep in class Elementpublic boolean equalsShallow(Base other)
equalsShallow in class ElementCopyright © 2014–2017 University Health Network. All rights reserved.