Package org.mustangproject.ZUGFeRD
Enum ZUGFeRDDateFormat
- java.lang.Object
-
- java.lang.Enum<ZUGFeRDDateFormat>
-
- org.mustangproject.ZUGFeRD.ZUGFeRDDateFormat
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ZUGFeRDDateFormat>
public enum ZUGFeRDDateFormat extends java.lang.Enum<ZUGFeRDDateFormat>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATEMONTH_OF_YEARWEEK_OF_YEAR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDateTimeType()java.text.SimpleDateFormatgetFormatter()java.lang.StringqdtFormat(java.util.Date date)java.lang.StringsimpleFormat(java.util.Date date)java.lang.StringudtFormat(java.util.Date date)static ZUGFeRDDateFormatvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ZUGFeRDDateFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MONTH_OF_YEAR
public static final ZUGFeRDDateFormat MONTH_OF_YEAR
-
WEEK_OF_YEAR
public static final ZUGFeRDDateFormat WEEK_OF_YEAR
-
DATE
public static final ZUGFeRDDateFormat DATE
-
-
Method Detail
-
values
public static ZUGFeRDDateFormat[] 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 (ZUGFeRDDateFormat c : ZUGFeRDDateFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZUGFeRDDateFormat valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getDateTimeType
public java.lang.String getDateTimeType()
-
getFormatter
public java.text.SimpleDateFormat getFormatter()
-
simpleFormat
public java.lang.String simpleFormat(java.util.Date date)
-
qdtFormat
public java.lang.String qdtFormat(java.util.Date date)
-
udtFormat
public java.lang.String udtFormat(java.util.Date date)
-
-