Package com.ibm.fhir.model.type
Class ElementDefinition.Type
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.type.Element
-
- com.ibm.fhir.model.type.BackboneElement
-
- com.ibm.fhir.model.type.ElementDefinition.Type
-
- All Implemented Interfaces:
Visitable
- Enclosing class:
- ElementDefinition
public static class ElementDefinition.Type extends BackboneElement
The data type or resource that the value of this element is permitted to be.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classElementDefinition.Type.Builder
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.BackboneElement
modifierExtension
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static ElementDefinition.Type.Builderbuilder()booleanequals(Object obj)List<AggregationMode>getAggregation()If the type is a reference to another resource, how the resource is or can be aggregated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle.UrigetCode()URL of Data type or Resource that is a(or the) type used for this element.List<Canonical>getProfile()Identifies a profile structure or implementation Guide that applies to the datatype this element refers to.List<Canonical>getTargetProfile()Used when the type is "Reference" or "canonical", and identifies a profile structure or implementation Guide that applies to the target of the reference this element refers to.ReferenceVersionRulesgetVersioning()Whether this reference needs to be version specific or version independent, or whether either can be used.booleanhasChildren()inthashCode()ElementDefinition.Type.BuildertoBuilder()Create a new Builder from the contents of this Element-
Methods inherited from class com.ibm.fhir.model.type.BackboneElement
getModifierExtension
-
-
-
-
Method Detail
-
getCode
public Uri getCode()
URL of Data type or Resource that is a(or the) type used for this element. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition e.g. "string" is a reference to http://hl7. org/fhir/StructureDefinition/string. Absolute URLs are only allowed in logical models.- Returns:
- An immutable object of type
Urithat is non-null.
-
getProfile
public List<Canonical> getProfile()
Identifies a profile structure or implementation Guide that applies to the datatype this element refers to. If any profiles are specified, then the content must conform to at least one of them. The URL can be a local reference - to a contained StructureDefinition, or a reference to another StructureDefinition or Implementation Guide by a canonical URL. When an implementation guide is specified, the type SHALL conform to at least one profile defined in the implementation guide.- Returns:
- An unmodifiable list containing immutable objects of type
Canonicalthat may be empty.
-
getTargetProfile
public List<Canonical> getTargetProfile()
Used when the type is "Reference" or "canonical", and identifies a profile structure or implementation Guide that applies to the target of the reference this element refers to. If any profiles are specified, then the content must conform to at least one of them. The URL can be a local reference - to a contained StructureDefinition, or a reference to another StructureDefinition or Implementation Guide by a canonical URL. When an implementation guide is specified, the target resource SHALL conform to at least one profile defined in the implementation guide.- Returns:
- An unmodifiable list containing immutable objects of type
Canonicalthat may be empty.
-
getAggregation
public List<AggregationMode> getAggregation()
If the type is a reference to another resource, how the resource is or can be aggregated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle.- Returns:
- An unmodifiable list containing immutable objects of type
AggregationModethat may be empty.
-
getVersioning
public ReferenceVersionRules getVersioning()
Whether this reference needs to be version specific or version independent, or whether either can be used.- Returns:
- An immutable object of type
ReferenceVersionRulesthat may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classBackboneElement
-
accept
public void accept(String elementName, int elementIndex, Visitor visitor)
Description copied from interface:VisitableAccept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }- Specified by:
acceptin interfaceVisitable- Specified by:
acceptin classAbstractVisitable- Parameters:
elementName- the name of the element in the context of this visitelementIndex- the index of the element in a list or -1 if it is not contained within a Listvisitor- the visitor to use
-
toBuilder
public ElementDefinition.Type.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element- Specified by:
toBuilderin classBackboneElement
-
builder
public static ElementDefinition.Type.Builder builder()
-
-