Package org.hl7.fhir.r4.elementmodel
Class Element
java.lang.Object
org.hl7.fhir.r4.model.Base
org.hl7.fhir.r4.elementmodel.Element
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement
,Serializable
,org.hl7.fhir.instance.model.api.IBase
This class represents the underlying reference model of FHIR
A resource is nothing but a set of elements, where every element has a name,
maybe a stated type, maybe an id, and either a value or child elements (one
or the other, but not both or neither)
- Author:
- Grahame Grieve
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
class
static enum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasType()
void
int
col()
copy()
void
copyValues
(Base dst) boolean
equalsDeep
(Base other) boolean
equalsShallow
(Base other) fhirType()
getChildren
(String name) getChildrenByName
(String name) getChildValue
(String name) int
getIndex()
getName()
getNamedChild
(String name) void
getNamedChildren
(String name, List<Element> list) void
getNamedChildrenWithWildcard
(String string, List<Element> values) getNamedChildValue
(String name) Base[]
getProperty
(int hash, String name, boolean checkValid) getType()
String[]
getTypesForProperty
(int hash, String name) getValue()
org.hl7.fhir.utilities.xhtml.XhtmlNode
getXhtml()
boolean
boolean
boolean
hasChildren
(String name) boolean
boolean
boolean
hasIndex()
boolean
boolean
hasType()
boolean
hasValue()
boolean
boolean
isEmpty()
boolean
isList()
boolean
boolean
boolean
int
line()
protected void
listChildren
(List<Property> childProps) makeProperty
(int hash, String name) markLocation
(int line, int col) void
markValidation
(StructureDefinition profile, ElementDefinition definition) void
void
setChildValue
(String name, String value) void
setExplicitType
(String explicitType) void
void
setIndex
(int index) setProperty
(int hash, String name, Base value) void
void
setXhtml
(org.hl7.fhir.utilities.xhtml.XhtmlNode xhtml) void
sort()
toString()
void
updateProperty
(Property property, Element.SpecialElement special, Property elementProperty) Methods inherited from class org.hl7.fhir.r4.model.Base
addChild, castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isDateTime, listChildrenByName, listChildrenByName, removeChild, setProperty, setUserData, setUserDataINN
-
Constructor Details
-
Element
-
Element
-
Element
-
Element
-
-
Method Details
-
updateProperty
public void updateProperty(Property property, Element.SpecialElement special, Property elementProperty) -
getSpecial
-
getName
-
getType
-
getValue
-
hasChildren
-
getChildren
-
hasComments
-
getComments
-
getProperty
-
setValue
-
setType
-
hasValue
-
getChildrenByName
-
numberChildren
-
getIndex
-
hasIndex
-
setIndex
-
getChildValue
-
setChildValue
-
getChildren
-
hasType
-
fhirType
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getProperty
in classBase
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
listChildren
- Specified by:
listChildren
in classBase
-
copy
-
copyValues
- Overrides:
copyValues
in classBase
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
setProperty
in classBase
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
- Overrides:
makeProperty
in classBase
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
isPrimitive
- Overrides:
isPrimitive
in classBase
-
isBooleanPrimitive
- Overrides:
isBooleanPrimitive
in classBase
-
isResource
- Overrides:
isResource
in classBase
-
hasPrimitiveValue
- Overrides:
hasPrimitiveValue
in classBase
-
primitiveValue
- Overrides:
primitiveValue
in classBase
-
line
-
col
-
markLocation
-
clearDecorations
-
markValidation
-
getNamedChild
-
getNamedChildren
-
getNamedChildValue
-
getNamedChildrenWithWildcard
-
getXhtml
-
setXhtml
-
isEmpty
-
getElementProperty
-
hasElementProperty
-
hasChild
-
hasChildren
-
toString
-
getIdBase
-
setIdBase
-
equalsDeep
- Overrides:
equalsDeep
in classBase
-
equalsShallow
- Overrides:
equalsShallow
in classBase
-
asType
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
isMetadataBased
- Overrides:
isMetadataBased
in classBase
-
isList
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getTypesForProperty
in classBase
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
sort
-
getAsICoding
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getExplicitType
-
setExplicitType
-