Package net.time4j.engine
Enum Class ValidationElement
- All Implemented Interfaces:
Serializable
,Comparable<ValidationElement>
,java.lang.constant.Constable
,Comparator<ChronoDisplay>
,ChronoElement<String>
A specialized element for communicating validation failures during parsing.
- Since:
- 2.2
- Author:
- Meno Hochschild
- See Also:
ChronoMerger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIdentifies an error message in any parsed chronological entity. -
Method Summary
Modifier and TypeMethodDescriptionint
compare(ChronoDisplay o1, ChronoDisplay o2)
Applies an element-orientated sorting of any chronological entities.Returns the default maximum of this element which is not dependent on the chronological context.Returns the default minimum of this element which is not dependent on the chronological context.char
Defines the default format symbol which is used in format patterns to refer to this element.getType()
Yields the reified value type.boolean
Queries if this element represents a calendar date element.boolean
Queries if setting of element values is performed in a lenient way.boolean
Queries if this element represents a wall time element.static ValidationElement
Returns the enum constant of this class with the specified name.static ValidationElement[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface net.time4j.engine.ChronoElement
getDisplayName, name
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Enum Constant Details
-
ERROR_MESSAGE
Identifies an error message in any parsed chronological entity.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getType
Description copied from interface:ChronoElement
Yields the reified value type.
- Specified by:
getType
in interfaceChronoElement<String>
- Returns:
- type of associated values
-
getSymbol
public char getSymbol()Description copied from interface:ChronoElement
Defines 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 "
-