Package org.frankframework.parameters
Class NumberParameter
java.lang.Object
org.frankframework.parameters.AbstractParameter
org.frankframework.parameters.NumberParameter
- All Implemented Interfaces:
FrankElement,HasApplicationContext,HasName,IConfigurable,IScopeProvider,IWithParameters,NameAware,IParameter,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
-
Nested Class Summary
Nested classes/interfaces inherited from class org.frankframework.parameters.AbstractParameter
AbstractParameter.DefaultValueMethods, AbstractParameter.ParameterMode, AbstractParameter.ParameterPatternSubstitution -
Field Summary
Fields inherited from class org.frankframework.parameters.AbstractParameter
CONTEXT_KEY_WILDCARD, FIXEDHOSTNAME, FIXEDUID, paramList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure this component.getValue(ParameterValueList alreadyResolvedParameters, Message message, PipeLineSession session, boolean namespaceAware) determines the raw valueprotected NumbergetValueAsType(Message request, boolean namespaceAware) Converts raw data to configured parameter typevoidsetDecimalSeparator(String string) Separate the integer part from the fractional part of a number.voidsetGroupingSeparator(String string) In the United States, the comma is typically used for the grouping separator; however, several publication standards follow international standards in using either a space or a thin space character.voidsetMaxInclusive(String string) Used in combination with typenumber; if set and the value of the parameter exceeds this maximum value, this maximum value is takenvoidsetMinInclusive(String string) Used in combination with typenumber; if set and the value of the parameter falls short of this minimum value, this minimum value is takenMethods inherited from class org.frankframework.parameters.AbstractParameter
addParameter, consumesSessionVariable, getMessageFormat, getName, getParameterList, requiresInputValueForResolution, setAuthAlias, setContextKey, setDefaultValue, setDefaultValueMethods, setHidden, setIgnoreUnresolvablePatternElements, setJsonPathExpression, setMaxLength, setMinLength, setMode, setName, setNamespaceDefs, setPassword, setPattern, setRemoveNamespaces, setSessionKey, setSessionKeyJPath, setSessionKeyXPath, setStyleSheetName, setType, 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
-
Constructor Details
-
NumberParameter
public NumberParameter()
-
-
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.
-
getValue
public Object getValue(ParameterValueList alreadyResolvedParameters, Message message, PipeLineSession session, boolean namespaceAware) throws ParameterException Description copied from class:AbstractParameterdetermines the raw value- Specified by:
getValuein interfaceIParameter- Overrides:
getValuein classAbstractParameter- Throws:
ParameterException
-
getValueAsType
protected Number 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
-
setDecimalSeparator
Separate the integer part from the fractional part of a number.- Default value
- system default
-
setGroupingSeparator
In the United States, the comma is typically used for the grouping separator; however, several publication standards follow international standards in using either a space or a thin space character.- Default value
- system default
-
setMaxInclusive
Used in combination with typenumber; if set and the value of the parameter exceeds this maximum value, this maximum value is taken -
setMinInclusive
Used in combination with typenumber; if set and the value of the parameter falls short of this minimum value, this minimum value is taken
-