Enum Xs2aBodyDateFormatter
- java.lang.Object
-
- java.lang.Enum<Xs2aBodyDateFormatter>
-
- de.adorsys.psd2.xs2a.web.validator.constants.Xs2aBodyDateFormatter
-
- All Implemented Interfaces:
Serializable,Comparable<Xs2aBodyDateFormatter>
public enum Xs2aBodyDateFormatter extends Enum<Xs2aBodyDateFormatter>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ISO_DATEISO_DATE_TIME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DateTimeFormattergetFormatter()StringgetPattern()static Xs2aBodyDateFormattervalueOf(String name)Returns the enum constant of this type with the specified name.static Xs2aBodyDateFormatter[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ISO_DATE
public static final Xs2aBodyDateFormatter ISO_DATE
-
ISO_DATE_TIME
public static final Xs2aBodyDateFormatter ISO_DATE_TIME
-
-
Method Detail
-
values
public static Xs2aBodyDateFormatter[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Xs2aBodyDateFormatter c : Xs2aBodyDateFormatter.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Xs2aBodyDateFormatter valueOf(String name)
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 nameNullPointerException- if the argument is null
-
getFormatter
public DateTimeFormatter getFormatter()
-
getPattern
public String getPattern()
-
-