public enum ValidationElement extends Enum<ValidationElement> implements ChronoElement<String>
A specialized element for communicating validation failures during parsing.
ChronoMerger| Enum Constant and Description |
|---|
ERROR_MESSAGE
Identifies an error message in any parsed chronological entity.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(ChronoDisplay o1,
ChronoDisplay o2)
Applies an element-orientated sorting of any chronological
entities.
|
String |
getDefaultMaximum()
Returns the default maximum of this element which is not dependent
on the chronological context.
|
String |
getDefaultMinimum()
Returns the default minimum of this element which is not dependent
on the chronological context.
|
char |
getSymbol()
Defines the default format symbol which is used in format patterns
to refer to this element.
|
Class<String> |
getType()
Yields the reified value type.
|
boolean |
isDateElement()
Queries if this element represents a calendar date element.
|
boolean |
isLenient()
Queries if setting of element values is performed in a lenient
way.
|
boolean |
isTimeElement()
Queries if this element represents a wall time element.
|
static ValidationElement |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValidationElement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfnamecomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static final ValidationElement ERROR_MESSAGE
Identifies an error message in any parsed chronological entity.
public static ValidationElement[] values()
for (ValidationElement c : ValidationElement.values()) System.out.println(c);
public static ValidationElement 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 Class<String> getType()
ChronoElementYields the reified value type.
getType in interface ChronoElement<String>public char getSymbol()
ChronoElementDefines the default format symbol which is used in format patterns to refer to this element.
In most cases the symbol should closely match the symbol-mapping as defined by the CLDR-standard of unicode-organization. Is the element not designed for formatting using patterns then this method just yields the ASCII-char "