Module io.annot8.components.items
Class ItemPropertyAsDateTime.Settings
- java.lang.Object
-
- io.annot8.components.items.processors.ItemPropertyAsDateTime.Settings
-
- All Implemented Interfaces:
io.annot8.api.settings.Settings
- Enclosing class:
- ItemPropertyAsDateTime
public static class ItemPropertyAsDateTime.Settings extends Object implements io.annot8.api.settings.Settings
-
-
Constructor Summary
Constructors Constructor Description Settings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDateTimeFormat()ItemPropertyAsDateTime.DateTimeTypegetDateTimeType()StringgetKey()booleanisErrorOnUnparseable()voidsetDateTimeFormat(String dateTimeFormat)voidsetDateTimeType(ItemPropertyAsDateTime.DateTimeType dateTimeType)voidsetErrorOnUnparseable(boolean errorOnUnparseable)voidsetKey(String key)booleanvalidate()
-
-
-
Method Detail
-
validate
public boolean validate()
- Specified by:
validatein interfaceio.annot8.api.settings.Settings
-
getKey
@Description("The property key to convert") public String getKey()
-
setKey
public void setKey(String key)
-
getDateTimeFormat
@Description("The format to use when parsing") public String getDateTimeFormat()
-
setDateTimeFormat
public void setDateTimeFormat(String dateTimeFormat)
-
getDateTimeType
@Description("The type of date time to create") public ItemPropertyAsDateTime.DateTimeType getDateTimeType()
-
setDateTimeType
public void setDateTimeType(ItemPropertyAsDateTime.DateTimeType dateTimeType)
-
isErrorOnUnparseable
@Description("If false, then dates that can\'t be parsed will be discarded. If true, then unparseable dates will cause an item error to be returned.") public boolean isErrorOnUnparseable()
-
setErrorOnUnparseable
public void setErrorOnUnparseable(boolean errorOnUnparseable)
-
-