Enum QueryReturnType
- java.lang.Object
-
- java.lang.Enum<QueryReturnType>
-
- org.openehealth.ipf.commons.ihe.xds.core.requests.query.QueryReturnType
-
- All Implemented Interfaces:
Serializable
,Comparable<QueryReturnType>
public enum QueryReturnType extends Enum<QueryReturnType>
Return types for XDS queries (ITI-18, ITI-38, ITI-51, ITI-63, PHARM-1).- Author:
- Dmytro Rud
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LEAF_CLASS
LEAF_CLASS_WITH_REPOSITORY_ITEM
OBJECT_REF
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCode()
static QueryReturnType
valueOf(String name)
Returns the enum constant of this type with the specified name.static QueryReturnType
valueOfCode(String code)
static QueryReturnType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LEAF_CLASS
public static final QueryReturnType LEAF_CLASS
-
OBJECT_REF
public static final QueryReturnType OBJECT_REF
-
LEAF_CLASS_WITH_REPOSITORY_ITEM
public static final QueryReturnType LEAF_CLASS_WITH_REPOSITORY_ITEM
-
-
Method Detail
-
values
public static QueryReturnType[] 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 (QueryReturnType c : QueryReturnType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QueryReturnType 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
-
getCode
public String getCode()
-
valueOfCode
public static QueryReturnType valueOfCode(String code)
-
-