public static enum EventProcessorImpl.DateType extends Enum<EventProcessorImpl.DateType>
getDateType(String)
should be used. To get the metacard attribute name for a DateType, getAttributeName()
should be used, where "dt" is an instance of DateType.
The standard valueOf(String)
and Enum.name()
enum methods will
not use the names of the attributes as they appear on the metacard, but as they appear in the
enum class as defined below.
Enum Constant and Description |
---|
CREATED |
EFFECTIVE |
EXPIRATION |
METACARD_CREATED |
METACARD_MODIFIED |
MODIFIED |
Modifier and Type | Method and Description |
---|---|
String |
getAttributeName() |
static EventProcessorImpl.DateType |
getDateType(String attr) |
static EventProcessorImpl.DateType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EventProcessorImpl.DateType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventProcessorImpl.DateType MODIFIED
public static final EventProcessorImpl.DateType EFFECTIVE
public static final EventProcessorImpl.DateType EXPIRATION
public static final EventProcessorImpl.DateType CREATED
public static final EventProcessorImpl.DateType METACARD_CREATED
public static final EventProcessorImpl.DateType METACARD_MODIFIED
public static EventProcessorImpl.DateType[] values()
for (EventProcessorImpl.DateType c : EventProcessorImpl.DateType.values()) System.out.println(c);
public static EventProcessorImpl.DateType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getAttributeName()
public static EventProcessorImpl.DateType getDateType(String attr)
This work is licensed under a Creative Commons Attribution 4.0 International License.