Package org.frankframework.parameters
Class Parameter
- All Implemented Interfaces:
FrankElement,HasApplicationContext,HasName,IConfigurable,IScopeProvider,IWithParameters,NameAware,IParameter,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
Placeholder class to allow legacy configuration notations
<param type='number' /> in the new Frank!Config XSD.
The attribute type has been removed in favor of explicit ParameterTypes such as: NumberParameter, DateParameter and BooleanParameter.
Using the new elements enables the use of auto-completion for the specified type.
- Author:
- Niels Meijer
-
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 TypeMethodDescriptionprotected MessagegetValueAsType(Message request, boolean namespaceAware) Converts raw data to configured parameter typevoidsetMinLength(int i) If set (>=0) and the length of the value of the parameter falls short of this minimum length, the value is padded.voidsetType(ParameterType type) voidsetXpathResult(TransformerPool.OutputType outputType) Only valid for xPathExpression.toString()Methods inherited from class org.frankframework.parameters.AbstractParameter
addParameter, configure, consumesSessionVariable, getMessageFormat, getName, getParameterList, getValue, requiresInputValueForResolution, setAuthAlias, setContextKey, setDefaultValue, setDefaultValueMethods, setHidden, setIgnoreUnresolvablePatternElements, setJsonPathExpression, setMaxLength, setMode, setName, setNamespaceDefs, setPassword, setPattern, setRemoveNamespaces, setSessionKey, setSessionKeyJPath, setSessionKeyXPath, setStyleSheetName, setUsername, setValue, setXpathExpression, setXsltVersionMethods 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
-
Parameter
public Parameter() -
Parameter
utility constructor, useful for unit testing
-
-
Method Details
-
toString
- Overrides:
toStringin classAbstractParameter<Message>
-
setType
- Overrides:
setTypein classAbstractParameter<Message>
-
getValueAsType
protected Message getValueAsType(Message request, boolean namespaceAware) throws ParameterException, IOException Description copied from class:AbstractParameterConverts raw data to configured parameter type- Specified by:
getValueAsTypein classAbstractParameter<Message>- Throws:
ParameterExceptionIOException
-
setXpathResult
Only valid for xPathExpression. If xpathResult isTransformerPool.OutputType.XMLthen the resulting stylesheet will use thecopy-ofmethod instead ofvalue-of. This results in an xml-string including the XML tags, if you want the contents of the element (as scalar value), use TEXT. This field controls how to read the input and does not determine the output.- Overrides:
setXpathResultin classAbstractParameter<Message>- Default value
- TEXT
-
setMinLength
public void setMinLength(int i) If set (>=0) and the length of the value of the parameter falls short of this minimum length, the value is padded. This only works for character (input) data.- Default value
- -1
-