public class FormatCheckerDate extends SingleContextDocumentProcessor implements com.exalead.util.Checkable, java.io.Serializable
SingleContextDocumentProcessor.Transformer<T>
DocumentProcessor.FromDataModel
Modifier and Type | Field and Description |
---|---|
java.lang.String |
inputFormat |
inputContext
acceptCondition, dataModelClass, dataModelProperty, dataModelState, DEFAULT_DISABLED, disabled, fromDataModel, name
Constructor and Description |
---|
FormatCheckerDate() |
FormatCheckerDate(FormatCheckerDate o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(DocumentProcessor.Transformer<T> transformer,
T[] t) |
<T> T |
accept(SingleContextDocumentProcessor.Transformer<T> transformer,
T[] t) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this FormatCheckerDate.
|
static FormatCheckerDate |
fromString(java.lang.String s)
String representation of this FormatCheckerDate.
|
java.lang.String |
getInputFormat()
An optional date input format, compliant with libc's
strptime() format.If such a format is provided, the automatic date format heuristic is disabled, and the provided date format is used exclusively. Documentation of accepted formats: (days and month literals are only recognized in English) %a: The day of the week ("Monday", ...) %A: Equivalent to %a %b: The month ("January", ...) %B: Equivalent to %b %c: Equivalent to %a %b %e %H:%M:%S %Y %C: The century number [00,99] %d: The day of the month [01,31] %D: Equivalent to %m/%d/%y %e: Equivalent to %d %h: Equivalent to %b %H: The hour (24-hour clock) [00,23] %I: The hour (12-hour clock) [01,12] %j: The day number of the year [001,366] %m: The month number [01,12] %M: The minute [00,59] %n: Any white space %dt: AM or PM %r: Equivalent to %I:%M:%S %p %R: Equivalent to %H:%M %S: The seconds [00,60] %t: Any white space %T: Equivalent to %H:%M:%S %U: The week number of the year (Sunday as the first day of the week) as a decimal number [00,53] %w: The weekday as a decimal number [0,6], with 0 representing Sunday %W: The week number of the year (Monday as the first day of the week) as a decimal number [00,53] %x: Equivalent to %m/%d/%y %X: Equivalent to %H:%M:%S %y: The year within century. |
FormatCheckerDate |
makeCopy()
Creates and returns a deep copy of this FormatCheckerDate.
|
static FormatCheckerDate |
readFrom(java.io.InputStream is)
Read this FormatCheckerDate from an XML fragment.
|
void |
setInputFormat(java.lang.String inputFormat)
An optional date input format, compliant with libc's
strptime() format.If such a format is provided, the automatic date format heuristic is disabled, and the provided date format is used exclusively. Documentation of accepted formats: (days and month literals are only recognized in English) %a: The day of the week ("Monday", ...) %A: Equivalent to %a %b: The month ("January", ...) %B: Equivalent to %b %c: Equivalent to %a %b %e %H:%M:%S %Y %C: The century number [00,99] %d: The day of the month [01,31] %D: Equivalent to %m/%d/%y %e: Equivalent to %d %h: Equivalent to %b %H: The hour (24-hour clock) [00,23] %I: The hour (12-hour clock) [01,12] %j: The day number of the year [001,366] %m: The month number [01,12] %M: The minute [00,59] %n: Any white space %dt: AM or PM %r: Equivalent to %I:%M:%S %p %R: Equivalent to %H:%M %S: The seconds [00,60] %t: Any white space %T: Equivalent to %H:%M:%S %U: The week number of the year (Sunday as the first day of the week) as a decimal number [00,53] %w: The weekday as a decimal number [0,6], with 0 representing Sunday %W: The week number of the year (Monday as the first day of the week) as a decimal number [00,53] %x: Equivalent to %m/%d/%y %X: Equivalent to %H:%M:%S %y: The year within century. |
java.lang.String |
toString()
String representation of this FormatCheckerDate.
|
FormatCheckerDate |
withAcceptCondition(AcceptCondition acceptCondition) |
FormatCheckerDate |
withDataModelClass(java.lang.String dataModelClass) |
FormatCheckerDate |
withDataModelProperty(java.lang.String dataModelProperty) |
FormatCheckerDate |
withDataModelState(java.lang.String dataModelState) |
FormatCheckerDate |
withDisabled(boolean disabled) |
FormatCheckerDate |
withDisabled(java.lang.Boolean disabled) |
FormatCheckerDate |
withFromDataModel(DocumentProcessor fromDataModel) |
FormatCheckerDate |
withInputContext(java.lang.String inputContext) |
FormatCheckerDate |
withInputFormat(java.lang.String inputFormat) |
FormatCheckerDate |
withName(java.lang.String name) |
void |
writeTo(java.io.OutputStream os)
Write this FormatCheckerDate as an XML fragment
|
getInputContext, setInputContext
getAcceptCondition, getDataModelClass, getDataModelProperty, getDataModelState, getFromDataModel, getName, isDisabled, setAcceptCondition, setDataModelClass, setDataModelProperty, setDataModelState, setDisabled, setFromDataModel, setName
public FormatCheckerDate()
public FormatCheckerDate(FormatCheckerDate o)
public FormatCheckerDate withInputContext(java.lang.String inputContext)
withInputContext
in class SingleContextDocumentProcessor
public FormatCheckerDate withAcceptCondition(AcceptCondition acceptCondition)
withAcceptCondition
in class SingleContextDocumentProcessor
public FormatCheckerDate withName(java.lang.String name)
withName
in class SingleContextDocumentProcessor
public FormatCheckerDate withDataModelState(java.lang.String dataModelState)
withDataModelState
in class SingleContextDocumentProcessor
public FormatCheckerDate withFromDataModel(DocumentProcessor fromDataModel)
withFromDataModel
in class SingleContextDocumentProcessor
public FormatCheckerDate withDataModelClass(java.lang.String dataModelClass)
withDataModelClass
in class SingleContextDocumentProcessor
public FormatCheckerDate withDataModelProperty(java.lang.String dataModelProperty)
withDataModelProperty
in class SingleContextDocumentProcessor
public FormatCheckerDate withDisabled(boolean disabled)
withDisabled
in class SingleContextDocumentProcessor
public FormatCheckerDate withDisabled(java.lang.Boolean disabled)
withDisabled
in class SingleContextDocumentProcessor
public void setInputFormat(java.lang.String inputFormat)
strptime()
format.public java.lang.String getInputFormat()
strptime()
format.public FormatCheckerDate withInputFormat(java.lang.String inputFormat)
public FormatCheckerDate makeCopy()
makeCopy
in class SingleContextDocumentProcessor
public static FormatCheckerDate readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
writeTo
in class SingleContextDocumentProcessor
javax.xml.bind.JAXBException
java.io.IOException
public static FormatCheckerDate fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class SingleContextDocumentProcessor
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class SingleContextDocumentProcessor
com.exalead.util.TypedException
public <T> T accept(SingleContextDocumentProcessor.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class SingleContextDocumentProcessor
com.exalead.util.TypedException
public <T> T accept(DocumentProcessor.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class DocumentProcessor
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.