
Package org.hl7.fhir.dstu2.model
Class Base
java.lang.Object
org.hl7.fhir.dstu2.model.Base
- All Implemented Interfaces:
Serializable,org.hl7.fhir.instance.model.api.IBase
- Direct Known Subclasses:
BaseResource,Element
public abstract class Base
extends Object
implements Serializable, org.hl7.fhir.instance.model.api.IBase
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncastToCode(Base b) castToCoding(Base b) castToDate(Base b) castToMeta(Base b) castToMoney(Base b) castToPeriod(Base b) castToRange(Base b) castToRatio(Base b) castToString(Base b) castToTime(Base b) castToTiming(Base b) children()Supports iterating the children elements in some generic processor or browser All defined children will be listed, even if they have no value on this instance Note that the actual content of primitive or xhtml elements is not iterated explicitly.static booleancompareDeep(List<? extends Base> e1, List<? extends Base> e2, boolean allowNull) static booleancompareDeep(Base e1, Base e2, boolean allowNull) static booleancompareDeep(org.hl7.fhir.utilities.xhtml.XhtmlNode div1, org.hl7.fhir.utilities.xhtml.XhtmlNode div2, boolean allowNull) static booleancompareValues(List<? extends PrimitiveType> e1, List<? extends PrimitiveType> e2, boolean allowNull) static booleancompareValues(PrimitiveType e1, PrimitiveType e2, boolean allowNull) static booleanbooleanequalsDeep(Base other) booleanequalsShallow(Base other) abstract StringfhirType()getChildByName(String name) getUserData(String name) intgetUserInt(String name) getUserString(String name) booleanbooleanbooleanhasUserData(String name) booleanisEmpty()protected booleanbooleanprotected abstract voidlistChildren(List<Property> result) listChildrenByName(String name) voidsetProperty(String name, Base value) voidsetUserData(String name, Object value) voidsetUserDataINN(String name, Object value)
-
Constructor Details
-
Base
public Base()
-
-
Method Details
-
getUserData
- Specified by:
getUserDatain interfaceorg.hl7.fhir.instance.model.api.IBase
-
setUserData
- Specified by:
setUserDatain interfaceorg.hl7.fhir.instance.model.api.IBase
-
setUserDataINN
-
hasUserData
-
getUserString
-
getUserInt
-
hasFormatComment
- Specified by:
hasFormatCommentin interfaceorg.hl7.fhir.instance.model.api.IBase
-
getFormatCommentsPre
- Specified by:
getFormatCommentsPrein interfaceorg.hl7.fhir.instance.model.api.IBase
-
getFormatCommentsPost
- Specified by:
getFormatCommentsPostin interfaceorg.hl7.fhir.instance.model.api.IBase
-
isPrimitive
-
primitiveValue
-
fhirType
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase
-
hasType
-
listChildren
-
setProperty
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
children
Supports iterating the children elements in some generic processor or browser All defined children will be listed, even if they have no value on this instance Note that the actual content of primitive or xhtml elements is not iterated explicitly. To find these, the processing code must recognise the element as a primitive, typecast the value to aType, and examine the value- Returns:
- a list of all the children defined for this element
-
getChildByName
-
listChildrenByName
-
isEmpty
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase
-
equalsDeep
-
equalsShallow
-
compareDeep
public static boolean compareDeep(List<? extends Base> e1, List<? extends Base> e2, boolean allowNull) -
compareDeep
-
compareDeep
public static boolean compareDeep(org.hl7.fhir.utilities.xhtml.XhtmlNode div1, org.hl7.fhir.utilities.xhtml.XhtmlNode div2, boolean allowNull) -
compareValues
public static boolean compareValues(List<? extends PrimitiveType> e1, List<? extends PrimitiveType> e2, boolean allowNull) -
compareValues
-
castToBoolean
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToInteger
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToDecimal
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToBase64Binary
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToInstant
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToString
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToUri
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToDate
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToDateTime
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToTime
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToCode
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToOid
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToId
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToUnsignedInt
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToPositiveInt
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToMarkdown
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToAnnotation
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToAttachment
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToIdentifier
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToCodeableConcept
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToCoding
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToQuantity
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToMoney
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToDuration
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToSimpleQuantity
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToRange
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToPeriod
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToRatio
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToSampledData
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToSignature
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToHumanName
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToAddress
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToContactPoint
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToTiming
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToReference
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToMeta
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToExtension
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToNarrative
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToElementDefinition
public ElementDefinition castToElementDefinition(Base b) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
isMetadataBased
-
equals
-