
Package org.hl7.fhir.dstu3.model
Class Property
- java.lang.Object
-
- org.hl7.fhir.dstu3.model.Property
-
public class Property extends Object
A child element or property defined by the FHIR specification This class is defined as a helper class when iterating the children of an element in a generic fashion At present, iteration is only based on the specification, but this may be changed to allow profile based expression at a later date note: there's no point in creating one of these classes outside this package
-
-
Constructor Summary
Constructors Constructor Description Property(String name, String typeCode, String definition, int minCardinality, int maxCardinality, List<? extends Base> values)
Internal constructorProperty(String name, String typeCode, String definition, int minCardinality, int maxCardinality, Base value)
Internal constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDefinition()
int
getMaxCardinality()
int
getMinCardinality()
String
getName()
StructureDefinition
getStructure()
String
getTypeCode()
List<Base>
getValues()
boolean
hasValues()
boolean
isList()
void
setStructure(StructureDefinition structure)
-
-
-
Method Detail
-
getTypeCode
public String getTypeCode()
- Returns:
- The stated type in the FHIR specification
-
getDefinition
public String getDefinition()
- Returns:
- The definition of this element in the FHIR spec
-
getMinCardinality
public int getMinCardinality()
- Returns:
- the minimum cardinality for this element
-
getMaxCardinality
public int getMaxCardinality()
- Returns:
- the maximum cardinality for this element
-
getValues
public List<Base> getValues()
- Returns:
- the actual values - will only be 1 unless maximum cardinality == MAX_INT
-
hasValues
public boolean hasValues()
-
getStructure
public StructureDefinition getStructure()
-
setStructure
public void setStructure(StructureDefinition structure)
-
isList
public boolean isList()
-
-