Package com.ibm.fhir.model.type.code
Class ResponseType
- 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.ResponseType
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class ResponseType extends Code
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResponseType.Builderstatic classResponseType.ValueSet
-
Field Summary
Fields Modifier and Type Field Description static ResponseTypeFATAL_ERRORFatal Errorstatic ResponseTypeOKOKstatic ResponseTypeTRANSIENT_ERRORTransient Error
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResponseType.Builderbuilder()static Codecode(String value)Inherited factory method for creating ResponseType objects from a passed string value.booleanequals(Object obj)ResponseType.ValueSetgetValueAsEnumConstant()inthashCode()static ResponseTypeof(ResponseType.ValueSet value)Factory method for creating ResponseType objects from a passed enum value.static ResponseTypeof(String value)Factory method for creating ResponseType objects from a passed string value.static Stringstring(String value)Inherited factory method for creating ResponseType objects from a passed string value.ResponseType.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
-
OK
public static final ResponseType OK
OKThe message was accepted and processed without error.
-
TRANSIENT_ERROR
public static final ResponseType TRANSIENT_ERROR
Transient ErrorSome internal unexpected error occurred - wait and try again. Note - this is usually used for things like database unavailable, which may be expected to resolve, though human intervention may be required.
-
FATAL_ERROR
public static final ResponseType FATAL_ERROR
Fatal ErrorThe message was rejected because of a problem with the content. There is no point in re-sending without change. The response narrative SHALL describe the issue.
-
-
Method Detail
-
getValueAsEnumConstant
public ResponseType.ValueSet getValueAsEnumConstant()
-
of
public static ResponseType of(ResponseType.ValueSet value)
Factory method for creating ResponseType objects from a passed enum value.
-
of
public static ResponseType of(String value)
Factory method for creating ResponseType 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 ResponseType 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 ResponseType 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 ResponseType.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element
-
builder
public static ResponseType.Builder builder()
-
-