/*
***************************************************************************************
* Copyright (C) 2006 EsperTech, Inc. All rights reserved. *
* http://www.espertech.com/esper *
* http://www.espertech.com *
* ---------------------------------------------------------------------------------- *
* The software in this package is published under the terms of the GPL license *
* a copy of which has been included with this distribution in the license.txt file. *
***************************************************************************************
*/
package com.espertech.esper.epl.expression.funcs;
import com.espertech.esper.epl.expression.core.ExprEvaluator;
import java.text.DateFormat;
import java.time.format.DateTimeFormatter;
public class ExprCastNodeDateDesc {
private final boolean iso8601Format;
private final ExprEvaluator dynamicDateFormat;
private final String staticDateFormatString;
private final DateFormat dateFormat;
private final DateTimeFormatter dateTimeFormatter;
public ExprCastNodeDateDesc(boolean iso8601Format, ExprEvaluator dynamicDateFormat, String staticDateFormatString, DateFormat dateFormat, DateTimeFormatter dateTimeFormatter) {
this.iso8601Format = iso8601Format;
this.dynamicDateFormat = dynamicDateFormat;
this.staticDateFormatString = staticDateFormatString;
this.dateFormat = dateFormat;
this.dateTimeFormatter = dateTimeFormatter;
}
public boolean isIso8601Format() {
return iso8601Format;
}
public ExprEvaluator getDynamicDateFormat() {
return dynamicDateFormat;
}
public String getStaticDateFormatString() {
return staticDateFormatString;
}
public DateFormat getDateFormat() {
return dateFormat;
}
public DateTimeFormatter getDateTimeFormatter() {
return dateTimeFormatter;
}
}