Package org.frankframework.parameters
Class DateParameter
java.lang.Object
org.frankframework.parameters.AbstractParameter
org.frankframework.parameters.DateParameter
- All Implemented Interfaces:
FrankElement,HasApplicationContext,HasName,IConfigurable,IScopeProvider,IWithParameters,NameAware,IParameter,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.frankframework.parameters.AbstractParameter
AbstractParameter.DefaultValueMethods, AbstractParameter.ParameterMode, AbstractParameter.ParameterPatternSubstitution -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.frankframework.parameters.AbstractParameter
CONTEXT_KEY_WILDCARD, FIXEDHOSTNAME, FIXEDUID, paramList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure this component.protected Stringprotected DategetValueAsType(Message request, boolean namespaceAware) Converts raw data to configured parameter typevoidsetFormatString(String string) Used in combination with typesDATE,TIME,DATETIMEandTIMESTAMPto parse the raw parameter string data into an object of the respective typevoidsetFormatType(DateParameter.DateFormatType formatType) voidsetType(ParameterType type) Deprecated.Methods inherited from class org.frankframework.parameters.AbstractParameter
addParameter, consumesSessionVariable, getName, getParameterList, getValue, requiresInputValueForResolution, setAuthAlias, setContextKey, setDefaultValue, setDefaultValueMethods, setHidden, setIgnoreUnresolvablePatternElements, setJsonPathExpression, setMaxLength, setMinLength, setMode, setName, setNamespaceDefs, setPassword, setPattern, setRemoveNamespaces, setSessionKey, setSessionKeyJPath, setSessionKeyXPath, setStyleSheetName, setUsername, setValue, setXpathExpression, setXsltVersion, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface org.frankframework.core.FrankElement
addConfigWarningMethods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods inherited from interface org.frankframework.parameters.IParameter
getMode, getSessionKey, getType, getValue, isHidden
-
Field Details
-
TYPE_DATE_PATTERN
- See Also:
-
TYPE_TIME_PATTERN
- See Also:
-
TYPE_DATETIME_PATTERN
- See Also:
-
TYPE_TIMESTAMP_PATTERN
- See Also:
-
-
Constructor Details
-
DateParameter
public DateParameter()
-
-
Method Details
-
configure
Description copied from interface:IConfigurableConfigure this component.configure()is called once at startup of the framework in the configure method of the owner of thisIConfigurable. Purpose of this method is to check whether the static configuration of the object is correct. As much as possible class-instantiating should take place in theconfigure(), to improve performance.In the case of a container, this will propagate the configure signal to all components that apply.
- Specified by:
configurein interfaceIConfigurable- Overrides:
configurein classAbstractParameter- Throws:
ConfigurationException- in case it was not able to configure the component.
-
getMessageFormat
- Overrides:
getMessageFormatin classAbstractParameter
-
getValueAsType
protected Date getValueAsType(@Nonnull Message request, boolean namespaceAware) throws ParameterException, IOException Description copied from class:AbstractParameterConverts raw data to configured parameter type- Overrides:
getValueAsTypein classAbstractParameter- Throws:
ParameterExceptionIOException
-
setType
@Deprecated @ConfigurationWarning("use element DateParameter with attribute formatType instead") public void setType(ParameterType type) Deprecated.- Overrides:
setTypein classAbstractParameter
-
setFormatString
Used in combination with typesDATE,TIME,DATETIMEandTIMESTAMPto parse the raw parameter string data into an object of the respective type- Default value
- depends on type
-
setFormatType
-