org.specrunner.converters.core
Class ConverterDateTimeCurrentTemplate
java.lang.Object
org.specrunner.converters.core.ConverterNotNullNotEmpty
org.specrunner.converters.core.AbstractConverterTimezone<T>
org.specrunner.converters.core.AbstractConverterTimeTemplate<org.joda.time.DateTime>
org.specrunner.converters.core.ConverterDateTimeCurrentTemplate
- All Implemented Interfaces:
- Serializable, IConverter, IResetable
- Direct Known Subclasses:
- ConverterDateTimeCurrent
public class ConverterDateTimeCurrentTemplate
- extends AbstractConverterTimeTemplate<org.joda.time.DateTime>
Create current date.
- Author:
- Thiago Santos
- See Also:
- Serialized Form
|
Method Summary |
Object |
convert(Object value,
Object[] args)
Convert a given object to another using some arguments as auxiliary. |
protected org.joda.time.DateTime |
instance()
Creates an instance of date. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConverterDateTimeCurrentTemplate
public ConverterDateTimeCurrentTemplate(String regexp)
- See superclass.
- Parameters:
regexp - Regexp.
ConverterDateTimeCurrentTemplate
public ConverterDateTimeCurrentTemplate(String[] values)
- See superclass.
- Parameters:
values - Value.
instance
protected org.joda.time.DateTime instance()
- Description copied from class:
AbstractConverterTimeTemplate
- Creates an instance of date.
- Specified by:
instance in class AbstractConverterTimeTemplate<org.joda.time.DateTime>
- Returns:
- Something aka date.
convert
public Object convert(Object value,
Object[] args)
throws ConverterException
- Description copied from interface:
IConverter
- Convert a given object to another using some arguments as auxiliary.
- Specified by:
convert in interface IConverter- Overrides:
convert in class AbstractConverterTimeTemplate<org.joda.time.DateTime>
- Parameters:
value - The value to be converted.args - The arguments.
- Returns:
- The converted object.
- Throws:
ConverterException - On conversion errors.
Copyright © 2014. All rights reserved.