public class FormatResolver extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FormatResolver.FormatType |
static class |
FormatResolver.NumberParseResult |
Modifier and Type | Field and Description |
---|---|
static String[] |
CANONICAL_DATE_PATTERNS
XFA dates must be expressed in any of the following forms: YYYY[MM[DD]] YYYY[-MM[-DD]]
|
static String[] |
CANONICAL_TIME_PATTERNS |
Constructor and Description |
---|
FormatResolver(FlattenerContext flattenerContext) |
Modifier and Type | Method and Description |
---|---|
String |
formatDate(Date date, String pattern, XFALocale xfaLocale) |
String |
formatTime(Date date, String pattern, XFALocale xfaLocale) |
Date |
parseDate(String data, String inputParsingPattern, XFALocale xfaLocale) |
Date |
parseDate(String data, XFALocale xfaLocale) |
FormatResolver.NumberParseResult |
parseNumber(String data, String inputParsingPattern, XFALocale xfaLocale) |
FormatResolver.NumberParseResult |
parseNumber(String data, String inputParsingPattern, XFALocale xfaLocale, boolean returnZeroIfFailed) |
Date |
parseTime(String data, String inputParsingPattern, XFALocale xfaLocale) |
Date |
parseTime(String data, XFALocale xfaLocale) |
String |
resolve(Object data, String pattern, String inputParsingPattern, FormatResolver.FormatType type, String localeName, Map<String,String> attributes) |
public static final String[] CANONICAL_DATE_PATTERNS
public static final String[] CANONICAL_TIME_PATTERNS
public FormatResolver(FlattenerContext flattenerContext)
public String resolve(Object data, String pattern, String inputParsingPattern, FormatResolver.FormatType type, String localeName, Map<String,String> attributes)
public String formatDate(Date date, String pattern, XFALocale xfaLocale) throws ParseException
ParseException
public String formatTime(Date date, String pattern, XFALocale xfaLocale) throws ParseException
ParseException
public FormatResolver.NumberParseResult parseNumber(String data, String inputParsingPattern, XFALocale xfaLocale)
public FormatResolver.NumberParseResult parseNumber(String data, String inputParsingPattern, XFALocale xfaLocale, boolean returnZeroIfFailed)
Copyright (C) 1998-2019 iText Group NV. All Rights Reserved.