net.augeas

Class AugeasErrorCode

public class AugeasErrorCode extends Enum<AugeasErrorCode>

Field Summary
static AugeasErrorCodeINTERNAL_ERROR
static AugeasErrorCodeLENS_LOOKUP_ERROR
static AugeasErrorCodeLENS_SYNTAX_ERROR
static AugeasErrorCodeMANY_MATCHES
static AugeasErrorCodeMULTIPLE_TRANSFORMS_ERROR
static AugeasErrorCodeNO_ERROR
static AugeasErrorCodeNO_MATCH
static AugeasErrorCodeOUT_OF_MEMORY
static AugeasErrorCodePATH_ERROR
static List<AugeasErrorCode>VALUES
An immutable list containing the values comprising this enum class in the order they're declared.
Method Summary
List<AugeasErrorCode>family()
Returns an immutable list containing the values comprising this enum class in the order they're declared.
static AugeasErrorCodeforValue(int value)
intgetValue()
static AugeasErrorCodevalueOf(String name)
Static factory to return the enum constant pertaining to the given string name.

Field Detail

INTERNAL_ERROR

public static final AugeasErrorCode INTERNAL_ERROR

LENS_LOOKUP_ERROR

public static final AugeasErrorCode LENS_LOOKUP_ERROR

LENS_SYNTAX_ERROR

public static final AugeasErrorCode LENS_SYNTAX_ERROR

MANY_MATCHES

public static final AugeasErrorCode MANY_MATCHES

MULTIPLE_TRANSFORMS_ERROR

public static final AugeasErrorCode MULTIPLE_TRANSFORMS_ERROR

NO_ERROR

public static final AugeasErrorCode NO_ERROR

NO_MATCH

public static final AugeasErrorCode NO_MATCH

OUT_OF_MEMORY

public static final AugeasErrorCode OUT_OF_MEMORY

PATH_ERROR

public static final AugeasErrorCode PATH_ERROR

VALUES

public static final List<AugeasErrorCode> VALUES
An immutable list containing the values comprising this enum class in the order they're declared. This field may be used to iterate over the constants as follows:
for(AugeasErrorCode c : AugeasErrorCode.VALUES)
    System.out.println(c);

Method Detail

family

public final List<AugeasErrorCode> family()
Returns an immutable list containing the values comprising this enum class in the order they're declared. This instance method simply returns VALUES. Few programmers should have any need to use this method. It is provided for use by sophisticated enum-based data structures to prevent the need for reflective access to VALUES.

Returns: an immutable list containing the values comprising this enum class, in the order they're declared.

forValue

public static AugeasErrorCode forValue(int value)

getValue

public int getValue()

valueOf

public static final AugeasErrorCode valueOf(String name)
Static factory to return the enum constant pertaining to the given string name. The string must match exactly an identifier used to declare an enum constant in this type.

Throws: IllegalArgumentException if this enum class has no constant with the specified name.