Enum EnumAcceptability
- java.lang.Object
-
- java.lang.Enum<EnumAcceptability>
-
- in.cdac.medinfo.csnotk.csnolib.commons.EnumAcceptability
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EnumAcceptability>
public enum EnumAcceptability extends java.lang.Enum<EnumAcceptability>
If EnumAcceptability value is,
ALL - refers to all description for a concept (both preferred and acceptable).
PREFERRED - refers to all preferred description for a concept (including FSN).
PREFERRED_EXCLUDING_FSN - refers to SNOMEDCT description for preferred terms excluding FSN.
SYNONYMS - refers to all description for a concept (excluding FSN).
ACCEPTABLE- refers to all description for a concept excluding preferred.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPTABLEALLPREFERREDPREFERRED_EXCLUDING_FSNSYNONYMS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnumAcceptabilitygetEnum(java.lang.String val)Returns enumeration for given string value.java.lang.StringgetValue()Returns the value associated with enumeration.voidsetValue(java.lang.String value)Sets value for enumeration.static EnumAcceptabilityvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static EnumAcceptability[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL
public static final EnumAcceptability ALL
-
PREFERRED
public static final EnumAcceptability PREFERRED
-
PREFERRED_EXCLUDING_FSN
public static final EnumAcceptability PREFERRED_EXCLUDING_FSN
-
SYNONYMS
public static final EnumAcceptability SYNONYMS
-
ACCEPTABLE
public static final EnumAcceptability ACCEPTABLE
-
-
Method Detail
-
values
public static EnumAcceptability[] 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 (EnumAcceptability c : EnumAcceptability.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EnumAcceptability valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getValue
public java.lang.String getValue()
Returns the value associated with enumeration.- Returns:
Stringvalue for enumeration.
-
setValue
public void setValue(java.lang.String value)
Sets value for enumeration.- Parameters:
value-Stringvalue to be set.
-
getEnum
public static EnumAcceptability getEnum(java.lang.String val)
Returns enumeration for given string value.- Parameters:
val-Stringvalue for which enumeration is to be retrieve.- Returns:
EnumAcceptabilityenumeration for given string value
-
-