Package org.hl7.cql.model
Class ChoiceType
- java.lang.Object
-
- org.hl7.cql.model.DataType
-
- org.hl7.cql.model.ChoiceType
-
public class ChoiceType extends DataType
Created by Bryn on 11/8/2016.
-
-
Constructor Summary
Constructors Constructor Description ChoiceType(java.lang.Iterable<DataType> types)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.Iterable<DataType>getTypes()inthashCode()DataTypeinstantiate(InstantiationContext context)booleanisCompatibleWith(DataType other)booleanisGeneric()booleanisInstantiable(DataType callType, InstantiationContext context)booleanisSubSetOf(ChoiceType other)booleanisSubTypeOf(DataType other)booleanisSuperSetOf(ChoiceType other)booleanisSuperTypeOf(DataType other)java.lang.StringtoString()-
Methods inherited from class org.hl7.cql.model.DataType
getBaseType, getCommonSuperTypeOf, toLabel
-
-
-
-
Constructor Detail
-
ChoiceType
public ChoiceType(java.lang.Iterable<DataType> types)
-
-
Method Detail
-
getTypes
public java.lang.Iterable<DataType> getTypes()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
isSubTypeOf
public boolean isSubTypeOf(DataType other)
- Overrides:
isSubTypeOfin classDataType
-
isSubSetOf
public boolean isSubSetOf(ChoiceType other)
-
isSuperTypeOf
public boolean isSuperTypeOf(DataType other)
- Overrides:
isSuperTypeOfin classDataType
-
isSuperSetOf
public boolean isSuperSetOf(ChoiceType other)
-
isCompatibleWith
public boolean isCompatibleWith(DataType other)
- Overrides:
isCompatibleWithin classDataType
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
isInstantiable
public boolean isInstantiable(DataType callType, InstantiationContext context)
- Specified by:
isInstantiablein classDataType
-
instantiate
public DataType instantiate(InstantiationContext context)
- Specified by:
instantiatein classDataType
-
-