public class DateTokenConverter<E> extends DynamicConverter<E> implements MonoTypedConverter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AUXILIARY_TOKEN |
static java.lang.String |
CONVERTER_KEY
The conversion word/character with which this converter is registered.
|
static java.lang.String |
DEFAULT_DATE_PATTERN |
| Constructor and Description |
|---|
DateTokenConverter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convert(java.util.Date date) |
java.lang.String |
convert(java.lang.Object o)
The convert method is responsible for extracting data from the event and
storing it for later use by the write method.
|
java.lang.String |
getDatePattern()
Return the date pattern.
|
java.util.TimeZone |
getTimeZone() |
boolean |
isApplicable(java.lang.Object o) |
boolean |
isPrimary() |
void |
start()
Components that depend on options passed during configuration can override
this method in order to make appropriate use of those options.
|
java.lang.String |
toRegex() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getFirstOption, isStarted, setContext, setOptionList, stopgetFormattingInfo, setFormattingInfo, writepublic static final java.lang.String CONVERTER_KEY
public static final java.lang.String AUXILIARY_TOKEN
public static final java.lang.String DEFAULT_DATE_PATTERN
public void start()
DynamicConverterstart in interface LifeCyclestart in class DynamicConverter<E>public java.lang.String convert(java.util.Date date)
public java.lang.String convert(java.lang.Object o)
Converterpublic java.lang.String getDatePattern()
public java.util.TimeZone getTimeZone()
public boolean isApplicable(java.lang.Object o)
isApplicable in interface MonoTypedConverterpublic java.lang.String toRegex()
public boolean isPrimary()
Copyright © 2010 - 2023 Adobe. All Rights Reserved