Package com.ibm.icu.text
Enum DateFormat.BooleanAttribute
- java.lang.Object
-
- java.lang.Enum<DateFormat.BooleanAttribute>
-
- com.ibm.icu.text.DateFormat.BooleanAttribute
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DateFormat.BooleanAttribute>
- Enclosing class:
- DateFormat
public static enum DateFormat.BooleanAttribute extends java.lang.Enum<DateFormat.BooleanAttribute>
boolean attributes
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PARSE_ALLOW_NUMERIC
indicates tolerance of numeric data when String data may be assumed.PARSE_ALLOW_WHITESPACE
indicates whitespace tolerance.PARSE_MULTIPLE_PATTERNS_FOR_MATCH
indicates tolerance of pattern mismatch between input data and specified format pattern.PARSE_PARTIAL_LITERAL_MATCH
indicates tolerance of a partial literal match e.g.PARSE_PARTIAL_MATCH
Deprecated.
-
Constructor Summary
Constructors Modifier Constructor Description private
BooleanAttribute()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DateFormat.BooleanAttribute
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DateFormat.BooleanAttribute[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PARSE_ALLOW_WHITESPACE
public static final DateFormat.BooleanAttribute PARSE_ALLOW_WHITESPACE
indicates whitespace tolerance. Also included is trailing dot tolerance.
-
PARSE_ALLOW_NUMERIC
public static final DateFormat.BooleanAttribute PARSE_ALLOW_NUMERIC
indicates tolerance of numeric data when String data may be assumed. e.g. YEAR_NAME_FIELD
-
PARSE_MULTIPLE_PATTERNS_FOR_MATCH
public static final DateFormat.BooleanAttribute PARSE_MULTIPLE_PATTERNS_FOR_MATCH
indicates tolerance of pattern mismatch between input data and specified format pattern. e.g. accepting "September" for a month pattern of MMM ("Sep")
-
PARSE_PARTIAL_LITERAL_MATCH
public static final DateFormat.BooleanAttribute PARSE_PARTIAL_LITERAL_MATCH
indicates tolerance of a partial literal match e.g. accepting "--mon-02-march-2011" for a pattern of "'--: 'EEE-WW-MMMM-yyyy"
-
PARSE_PARTIAL_MATCH
@Deprecated public static final DateFormat.BooleanAttribute PARSE_PARTIAL_MATCH
Deprecated.alias of PARSE_PARTIAL_LITERAL_MATCH
-
-
Method Detail
-
values
public static DateFormat.BooleanAttribute[] 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 (DateFormat.BooleanAttribute c : DateFormat.BooleanAttribute.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateFormat.BooleanAttribute 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
-
-