All Implemented Interfaces:
Serializable
, Comparable <Field >
, java.lang.constant.Constable
, org.refcodes.mixin.NameAccessor
public enum Field
extends Enum <Field >
implements org.refcodes.mixin.NameAccessor
The
Field
are useful when working with fields defined for external
systems such as databases or when working with tables or
Map
instances.
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.NameAccessor
org.refcodes.mixin.NameAccessor.NameBuilder<B extends org.refcodes.mixin.NameAccessor.NameBuilder<B>>, org.refcodes.mixin.NameAccessor.NameMutator, org.refcodes.mixin.NameAccessor.NameProperty
Enum Constant Summary
Enum Constants
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
LOG_LINE_NUMBER
public static final Field LOG_LINE_NUMBER
LOG_DATE
public static final Field LOG_DATE
LOG_PRIORITY
public static final Field LOG_PRIORITY
LOG_THREAD_NAME
public static final Field LOG_THREAD_NAME
LOG_MESSAGE
public static final Field LOG_MESSAGE
LOG_EXCEPTION
public static final Field LOG_EXCEPTION
LOG_FULLY_QUALIFIED_CLASS_NAME
public static final Field LOG_FULLY_QUALIFIED_CLASS_NAME
LOG_METHOD_NAME
public static final Field LOG_METHOD_NAME
LOG_CLASS_LINE_NUMBER
public static final Field LOG_CLASS_LINE_NUMBER
LOG_SESSION_ID
public static final Field LOG_SESSION_ID
LOG_REQUEST_ID
public static final Field LOG_REQUEST_ID
Method Details
values
public static Field [] values ()
Returns an array containing the constants of this enum type, in
the order they are declared.
Returns:
an array containing the constants of this enum type, in the order they are declared
valueOf
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 name
NullPointerException
- if the argument is null
getName
Specified by:
getName
in interface org.refcodes.mixin.NameAccessor