@Deprecated public static class DateTimePatternGenerator.FormatParser extends Object
Example:
public boolean containsZone(String pattern) { for (Iterator it = formatParser.set(pattern).getItems().iterator(); it.hasNext();) { Object item = it.next(); if (item instanceof VariableField) { VariableField variableField = (VariableField) item; if (variableField.getType() == DateTimePatternGenerator.ZONE) { return true; } } } return false; }
Constructor and Description |
---|
FormatParser()
Deprecated.
This API is ICU internal only.
|
Modifier and Type | Method and Description |
---|---|
List<Object> |
getItems()
Deprecated.
This API is ICU internal only.
|
boolean |
hasDateAndTimeFields()
Deprecated.
This API is ICU internal only.
|
Object |
quoteLiteral(String string)
Deprecated.
This API is ICU internal only.
|
DateTimePatternGenerator.FormatParser |
set(String string)
Deprecated.
This API is ICU internal only.
|
DateTimePatternGenerator.FormatParser |
set(String string,
boolean strict)
Deprecated.
This API is ICU internal only.
|
String |
toString()
Deprecated.
This API is ICU internal only.
|
String |
toString(int start,
int limit)
Deprecated.
This API is ICU internal only.
|
@Deprecated public FormatParser()
@Deprecated public final DateTimePatternGenerator.FormatParser set(String string)
string
- The string to parse.@Deprecated public DateTimePatternGenerator.FormatParser set(String string, boolean strict)
string
- The string to parse.strict
- If true, then only allows exactly those lengths specified by CLDR for variables. For example, "hh:mm aa" would throw an exception.@Deprecated public List<Object> getItems()
VariableField: dd String: " de " VariableField: MMThe list is modifiable, so you can add any strings or variables to it, or remove any items.
@Deprecated public String toString()
@Deprecated public String toString(int start, int limit)
start
- item to start fromlimit
- last item +1@Deprecated public boolean hasDateAndTimeFields()
@Deprecated public Object quoteLiteral(String string)
string
- The string to check.Copyright © 2016 Unicode, Inc. and others.