Package org.frankframework.parameters
Class NumberParameter
java.lang.Object
org.frankframework.parameters.AbstractParameter
org.frankframework.parameters.NumberParameter
- All Implemented Interfaces:
IConfigurable
,IConfigurationAware
,INamedObject
,IScopeProvider
,IWithParameters
,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
-
Field Summary
Fields inherited from class org.frankframework.parameters.AbstractParameter
FIXEDHOSTNAME, FIXEDUID, paramList
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getValue
(ParameterValueList alreadyResolvedParameters, Message message, PipeLineSession session, boolean namespaceAware) determines the raw valueprotected Number
getValueAsType
(Message request, boolean namespaceAware) Converts raw data to configured parameter typevoid
setDecimalSeparator
(String string) Separate the integer part from the fractional part of a number.void
setGroupingSeparator
(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.void
setMaxInclusive
(String string) Used in combination with typenumber
; if set and the value of the parameter exceeds this maximum value, this maximum value is takenvoid
setMinInclusive
(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, getApplicationContext, getAuthAlias, getConfigurationClassLoader, getContextKey, getDefaultValue, getDefaultValueMethods, getMaxLength, getMinLength, getMode, getName, getNamespaceDefs, getParameterList, getPassword, getPattern, getSessionKey, getSessionKeyXPath, getStyleSheetName, getType, getUsername, getValue, getXpathExpression, getXsltVersion, isHidden, isIgnoreUnresolvablePatternElements, isRemoveNamespaces, requiresInputValueForResolution, setApplicationContext, setAuthAlias, setContextKey, setDefaultValue, setDefaultValueMethods, setHidden, setIgnoreUnresolvablePatternElements, setMaxLength, setMinLength, setMode, setName, setNamespaceDefs, setPassword, setPattern, setRemoveNamespaces, setSessionKey, setSessionKeyXPath, setStyleSheetName, setType, setUsername, setValue, setXpathExpression, setXsltVersion, toString
-
Constructor Details
-
NumberParameter
public NumberParameter()
-
-
Method Details
-
configure
- Specified by:
configure
in interfaceIConfigurable
- Overrides:
configure
in classAbstractParameter
- Throws:
ConfigurationException
-
getValue
public Object getValue(ParameterValueList alreadyResolvedParameters, Message message, PipeLineSession session, boolean namespaceAware) throws ParameterException Description copied from class:AbstractParameter
determines the raw value- Specified by:
getValue
in interfaceIParameter
- Overrides:
getValue
in classAbstractParameter
- Throws:
ParameterException
-
getValueAsType
protected Number getValueAsType(@Nonnull Message request, boolean namespaceAware) throws ParameterException, IOException Description copied from class:AbstractParameter
Converts raw data to configured parameter type- Overrides:
getValueAsType
in classAbstractParameter
- Throws:
ParameterException
IOException
-
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 -
getDecimalSeparator
-
getGroupingSeparator
-
getMinInclusiveString
-
getMaxInclusiveString
-
getDecimalFormatSymbols
-