Package org.hl7.fhir.dstu3.elementmodel
Class Element
java.lang.Object
org.hl7.fhir.dstu3.model.Base
org.hl7.fhir.dstu3.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
static enum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasType()
int
col()
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
boolean
boolean
hasIndex()
boolean
boolean
hasType()
boolean
hasValue()
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
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.dstu3.model.Base
addChild, 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, getNamedProperty, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isBooleanPrimitive, listChildrenByName, listChildrenByName, 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
-
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
-
isResource
- Overrides:
isResource
in classBase
-
hasPrimitiveValue
- Overrides:
hasPrimitiveValue
in classBase
-
primitiveValue
- Overrides:
primitiveValue
in classBase
-
line
-
col
-
markLocation
-
markValidation
-
getNamedChild
-
getNamedChildren
-
getNamedChildValue
-
getNamedChildrenWithWildcard
-
getXhtml
-
setXhtml
-
isEmpty
-
getElementProperty
-
hasElementProperty
-
hasChild
-
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
-