public abstract class AbstractConverterJodatimeCurrentTemplate<T> extends AbstractConverterTimeTemplate<T>
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
aliasToField |
protected Map<String,String> |
fieldToMethod |
protected Pattern |
pattern |
valuescacheTimezone, FEATURE_TIMEZONE, timezone| Constructor and Description |
|---|
AbstractConverterJodatimeCurrentTemplate(List<String> values)
See superclass.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,String> |
bindAliases(Map<String,String> map) |
protected Map<String,String> |
bindPatterns(Map<String,String> map) |
Object |
convert(Object value,
Object[] args)
Convert a given object to another using some arguments as auxiliary.
|
protected Pattern |
extractPattern(Set<String> set) |
protected abstract T |
instance()
Date instance.
|
protected abstract T |
postProcess(Object value,
Object[] args,
T result)
Post processing after instance() called.
|
protected boolean |
testValue(String str,
String value)
Test the string against a value.
|
protected abstract Class<T> |
type()
Date object type.
|
getTimezone, getZone, initialize, setTimezoneacceptprotected Pattern pattern
protected boolean testValue(String str, String value)
AbstractConverterTimeTemplatetestValue in class AbstractConverterTimeTemplate<T>str - String.value - A value.public Object convert(Object value, Object[] args) throws ConverterException
IConverterconvert in interface IConverterconvert in class AbstractConverterTimeTemplate<T>value - The value to be converted.args - The arguments.ConverterException - On conversion errors.protected abstract T instance()
instance in class AbstractConverterTimeTemplate<T>protected abstract T postProcess(Object value, Object[] args, T result)
postProcess in class AbstractConverterTimeTemplate<T>value - The original value.args - The arguments.result - The result.Copyright © 2016. All rights reserved.