Package org.hl7.fhir.r4.elementmodel
Class Property
- java.lang.Object
-
- org.hl7.fhir.r4.elementmodel.Property
-
-
Constructor Summary
Constructors Constructor Description Property(IWorkerContext context, ElementDefinition definition, StructureDefinition structure)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Property
getChild(String name)
Property
getChild(String elementName, String childName)
Property
getChild(String name, TypeDetails type)
protected List<Property>
getChildProperties(String elementName, String statedType)
protected List<Property>
getChildProperties(TypeDetails type)
Property
getChildSimpleName(String elementName, String name)
IWorkerContext
getContext()
ElementDefinition
getDefinition()
String
getName()
String
getNamespace()
String
getScopedPropertyName()
StructureDefinition
getStructure()
String
getType()
String
getType(String elementName)
boolean
hasType(String elementName)
boolean
isChoice()
boolean
isList()
boolean
IsLogicalAndHasPrimitiveValue(String name)
boolean
isPrimitive(String code)
Is the given type a primitiveboolean
isPrimitiveName(String name)
Is the given name a primitiveboolean
isResource()
String
toString()
-
-
-
Constructor Detail
-
Property
public Property(IWorkerContext context, ElementDefinition definition, StructureDefinition structure)
-
-
Method Detail
-
getDefinition
public ElementDefinition getDefinition()
-
getStructure
public StructureDefinition getStructure()
-
isPrimitiveName
public boolean isPrimitiveName(String name)
Is the given name a primitive- Parameters:
E
- .g. "Observation.status"
-
isPrimitive
public boolean isPrimitive(String code)
Is the given type a primitive- Parameters:
E
- .g. "integer"
-
isResource
public boolean isResource()
-
isList
public boolean isList()
-
getScopedPropertyName
public String getScopedPropertyName()
-
getNamespace
public String getNamespace()
-
IsLogicalAndHasPrimitiveValue
public boolean IsLogicalAndHasPrimitiveValue(String name)
-
isChoice
public boolean isChoice()
-
getChildProperties
protected List<Property> getChildProperties(String elementName, String statedType) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getChildProperties
protected List<Property> getChildProperties(TypeDetails type) throws org.hl7.fhir.exceptions.DefinitionException
- Throws:
org.hl7.fhir.exceptions.DefinitionException
-
getChild
public Property getChild(String elementName, String childName) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getChild
public Property getChild(String name, TypeDetails type) throws org.hl7.fhir.exceptions.DefinitionException
- Throws:
org.hl7.fhir.exceptions.DefinitionException
-
getChild
public Property getChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getChildSimpleName
public Property getChildSimpleName(String elementName, String name) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getContext
public IWorkerContext getContext()
-
-