Package com.ibm.fhir.model.type.code
Enum DiscriminatorType.ValueSet
- java.lang.Object
-
- java.lang.Enum<DiscriminatorType.ValueSet>
-
- com.ibm.fhir.model.type.code.DiscriminatorType.ValueSet
-
- All Implemented Interfaces:
Serializable,Comparable<DiscriminatorType.ValueSet>
- Enclosing class:
- DiscriminatorType
public static enum DiscriminatorType.ValueSet extends Enum<DiscriminatorType.ValueSet>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DiscriminatorType.ValueSetfrom(String value)Factory method for creating DiscriminatorType.ValueSet values from a passed string value.Stringvalue()static DiscriminatorType.ValueSetvalueOf(String name)Returns the enum constant of this type with the specified name.static DiscriminatorType.ValueSet[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VALUE
public static final DiscriminatorType.ValueSet VALUE
ValueThe slices have different values in the nominated element.
-
EXISTS
public static final DiscriminatorType.ValueSet EXISTS
ExistsThe slices are differentiated by the presence or absence of the nominated element.
-
PATTERN
public static final DiscriminatorType.ValueSet 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.ValueSet TYPE
TypeThe slices are differentiated by type of the nominated element.
-
PROFILE
public static final DiscriminatorType.ValueSet 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
-
values
public static DiscriminatorType.ValueSet[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DiscriminatorType.ValueSet c : DiscriminatorType.ValueSet.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DiscriminatorType.ValueSet valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
value
public String value()
- Returns:
- The java.lang.String value of the code represented by this enum
-
from
public static DiscriminatorType.ValueSet from(String value)
Factory method for creating DiscriminatorType.ValueSet values 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
-
-