Package com.ibm.fhir.model.type.code
Class UnitsOfTime
- 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.UnitsOfTime
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class UnitsOfTime extends Code
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUnitsOfTime.Builderstatic classUnitsOfTime.ValueSet
-
Field Summary
Fields Modifier and Type Field Description static UnitsOfTimeAyearstatic UnitsOfTimeDdaystatic UnitsOfTimeHhourstatic UnitsOfTimeMINminutestatic UnitsOfTimeMOmonthstatic UnitsOfTimeSsecondstatic UnitsOfTimeWKweek
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UnitsOfTime.Builderbuilder()static Codecode(String value)Inherited factory method for creating UnitsOfTime objects from a passed string value.booleanequals(Object obj)UnitsOfTime.ValueSetgetValueAsEnumConstant()inthashCode()static UnitsOfTimeof(UnitsOfTime.ValueSet value)Factory method for creating UnitsOfTime objects from a passed enum value.static UnitsOfTimeof(String value)Factory method for creating UnitsOfTime objects from a passed string value.static Stringstring(String value)Inherited factory method for creating UnitsOfTime objects from a passed string value.UnitsOfTime.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
-
S
public static final UnitsOfTime S
second
-
MIN
public static final UnitsOfTime MIN
minute
-
H
public static final UnitsOfTime H
hour
-
D
public static final UnitsOfTime D
day
-
WK
public static final UnitsOfTime WK
week
-
MO
public static final UnitsOfTime MO
month
-
A
public static final UnitsOfTime A
year
-
-
Method Detail
-
getValueAsEnumConstant
public UnitsOfTime.ValueSet getValueAsEnumConstant()
-
of
public static UnitsOfTime of(UnitsOfTime.ValueSet value)
Factory method for creating UnitsOfTime objects from a passed enum value.
-
of
public static UnitsOfTime of(String value)
Factory method for creating UnitsOfTime 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 UnitsOfTime 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 UnitsOfTime 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 UnitsOfTime.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element
-
builder
public static UnitsOfTime.Builder builder()
-
-