Class Element
- java.lang.Object
-
- org.hl7.fhir.dstu2016may.model.Base
-
- org.hl7.fhir.dstu2016may.metamodel.Element
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IBase
public class Element extends Base
This class represents the 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, or both (but not neither if it's null)- Author:
- Grahame Grieve
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classElement.SpecialElement
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2016may.model.Base
addChild, castToActionDefinition, castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToModuleMetadata, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isEmpty, isMetadataBased, listChildrenByName, listChildrenByName, makeProperty, setProperty, setProperty, setUserData, setUserDataINN
-
-
-
-
Method Detail
-
updateProperty
public void updateProperty(Property property, Element.SpecialElement special)
-
getSpecial
public Element.SpecialElement getSpecial()
-
hasChildren
public boolean hasChildren()
-
getChildren
public List<Element> getChildren()
-
hasComments
public boolean hasComments()
-
getComments
public List<String> getComments()
-
getProperty
public Property getProperty()
-
hasValue
public boolean hasValue()
-
getChildrenByName
public List<Element> getChildrenByName(String name)
-
numberChildren
public void numberChildren()
-
getIndex
public int getIndex()
-
hasIndex
public boolean hasIndex()
-
setIndex
public void setIndex(int index)
-
getChildValue
public String getChildValue(String name)
-
getChildren
public List<Element> getChildren(String name)
-
hasType
public boolean hasType()
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getPropertyin classBase- Throws:
org.hl7.fhir.exceptions.FHIRException
-
listChildren
protected void listChildren(List<Property> result)
- Specified by:
listChildrenin classBase
-
isPrimitive
public boolean isPrimitive()
- Overrides:
isPrimitivein classBase
-
hasPrimitiveValue
public boolean hasPrimitiveValue()
- Overrides:
hasPrimitiveValuein classBase
-
primitiveValue
public String primitiveValue()
- Overrides:
primitiveValuein classBase
-
line
public int line()
-
col
public int col()
-
markLocation
public Element markLocation(int line, int col)
-
getNamedChild
public Element getNamedChild(String name)
-
getNamedChildren
public void getNamedChildren(String name, List<Element> list)
-
getNamedChildValue
public String getNamedChildValue(String name)
-
getNamedChildrenWithWildcard
public void getNamedChildrenWithWildcard(String string, List<Element> values)
-
getXhtml
public org.hl7.fhir.utilities.xhtml.XhtmlNode getXhtml()
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classBase
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classBase
-
-