Package com.ibm.fhir.model.type.code
Class DiscriminatorType
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.type.Element
-
- com.ibm.fhir.model.type.String
-
- com.ibm.fhir.model.type.Code
-
- com.ibm.fhir.model.type.code.DiscriminatorType
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class DiscriminatorType extends Code
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDiscriminatorType.Builderstatic classDiscriminatorType.ValueSet
-
Field Summary
Fields Modifier and Type Field Description static DiscriminatorTypeEXISTSExistsstatic DiscriminatorTypePATTERNPatternstatic DiscriminatorTypePROFILEProfilestatic DiscriminatorTypeTYPETypestatic DiscriminatorTypeVALUEValue
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DiscriminatorType.Builderbuilder()static Codecode(String value)Inherited factory method for creating DiscriminatorType objects from a passed string value.booleanequals(Object obj)DiscriminatorType.ValueSetgetValueAsEnumConstant()inthashCode()static DiscriminatorTypeof(DiscriminatorType.ValueSet value)Factory method for creating DiscriminatorType objects from a passed enum value.static DiscriminatorTypeof(String value)Factory method for creating DiscriminatorType objects from a passed string value.static Stringstring(String value)Inherited factory method for creating DiscriminatorType objects from a passed string value.DiscriminatorType.BuildertoBuilder()Create a new Builder from the contents of this Element-
Methods inherited from class com.ibm.fhir.model.type.String
getValue, hasChildren
-
Methods inherited from class com.ibm.fhir.model.type.Element
as, getExtension, getId, is
-
-
-
-
Field Detail
-
VALUE
public static final DiscriminatorType VALUE
ValueThe slices have different values in the nominated element.
-
EXISTS
public static final DiscriminatorType EXISTS
ExistsThe slices are differentiated by the presence or absence of the nominated element.
-
PATTERN
public static final DiscriminatorType PATTERN
PatternThe slices have different values in the nominated element, as determined by testing them against the applicable ElementDefinition.pattern[x].
-
TYPE
public static final DiscriminatorType TYPE
TypeThe slices are differentiated by type of the nominated element.
-
PROFILE
public static final DiscriminatorType PROFILE
ProfileThe slices are differentiated by conformance of the nominated element to a specified profile. Note that if the path specifies .resolve() then the profile is the target profile on the reference. In this case, validation by the possible profiles is required to differentiate the slices.
-
-
Method Detail
-
getValueAsEnumConstant
public DiscriminatorType.ValueSet getValueAsEnumConstant()
-
of
public static DiscriminatorType of(DiscriminatorType.ValueSet value)
Factory method for creating DiscriminatorType objects from a passed enum value.
-
of
public static DiscriminatorType of(String value)
Factory method for creating DiscriminatorType objects from a passed string value.- Parameters:
value- A string that matches one of the allowed code values- Throws:
IllegalArgumentException- If the passed string cannot be parsed into an allowed code value
-
string
public static String string(String value)
Inherited factory method for creating DiscriminatorType objects from a passed string value.- Parameters:
value- A string that matches one of the allowed code values- Throws:
IllegalArgumentException- If the passed string cannot be parsed into an allowed code value
-
code
public static Code code(String value)
Inherited factory method for creating DiscriminatorType objects from a passed string value.- Parameters:
value- A string that matches one of the allowed code values- Throws:
IllegalArgumentException- If the passed string cannot be parsed into an allowed code value
-
toBuilder
public DiscriminatorType.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element
-
builder
public static DiscriminatorType.Builder builder()
-
-