public interface IFormDataAdapter extends Serializable
IFormDataAdapter encapsulates the submitted form data and provides several
utility methods for accessing and manipulating that data. This adapter is created before workflow processing starts
and is passed on to the individual workflow actions.| Modifier and Type | Method and Description |
|---|---|
void |
addMultiValue(String fieldName,
List<String[]> values)
Adds the given values to the values of the form element.
|
void |
addRequestValue(String fieldName,
List<String> values) |
void |
addSingleValue(String fieldName,
String... value)
Adds the given values to the values of the form element.
|
Object |
aliasValue(String alias) |
String |
asStringValue(List<String[]> value) |
String |
asStringValue(String[] value) |
Map<String,String> |
getAliasFieldMap() |
Map<String,FormContainerMetaData> |
getDynContainerMap() |
HashSet<String> |
getDynFieldSet() |
Set<String> |
getFieldAlias() |
Map<String,String> |
getFieldAliasMap() |
FormFieldMetaData |
getFieldMetaData(String identifier,
boolean asAlias) |
Map<String,FormFieldMetaData> |
getFieldMetaDataMap() |
Map<String,List<String>> |
getFieldNotesRead() |
Map<String,List<String>> |
getFieldNotesUnread() |
Set<String> |
getFields() |
EFormFieldTyp |
getFieldTyp(String identifier,
boolean asAlias) |
List<String[]> |
getFieldValues(String fieldName) |
Map<String,List<String[]>> |
getFieldValuesMap() |
IFieldMetaData |
getIFieldMetaData(String identifier,
boolean asAlias) |
Map<String,String> |
getMetaDataMap() |
String |
getNormName(String fieldName)
For each element, a name is defined in the designer.
|
Map<String,List<String>> |
getRequestDataMap() |
Set<String> |
getSendElements() |
String |
getStringValue(String fieldName)
Each form element may have multiple values.
|
boolean |
hasAlias(String alias) |
boolean |
hasField(String fieldName)
ERSTMAL: Liefert
true, wenn das Formular ein Feld mit dem übergebenen Namen besitzt. |
void |
init(Map<String,List<String>> dataMap) |
void |
init(Map<String,List<String>> dataMap,
List<String> sendElements) |
boolean |
isElementLooped(String elementName)
A repeated form element (also called dynamic or looped) is a form element of which the user can create multiple
copies of as they fill out the form.
|
int |
loopCount(String elementName)
A repeated form element (also called dynamic or looped) is a form element of which the user can create multiple
copies of as they fill out the form.
|
void |
mergeRequestData(Map<String,List<String>> oldData) |
String[] |
normalizeValue(List<String> value) |
String[] |
normalizeValue(String... value) |
List<String[]> |
normalizeValues(List<String> stringList) |
String |
resolveAliasName(String alias) |
String |
resolveFieldAlias(String alias) |
String |
resolveFieldName(String fieldName) |
EFormFieldTyp |
resolveFieldType(String fieldName,
boolean asAlias) |
boolean |
valuesMapHasValue(String fieldName) |
EFormFieldTyp getFieldTyp(String identifier, boolean asAlias)
identifier - The name of a form element.asAlias - If true, interpret the given identifier as the alias name of the form element. If
false, interpret the given identifier as the name of the form element.null when the given element does not exist.Set<String> getFieldAlias()
Set consisting of the alias names of all existing form elements.FormFieldMetaData getFieldMetaData(String identifier, boolean asAlias)
boolean hasAlias(String alias)
alias - An alias name to check.true if a form element with the given alias exists, or false otherwise.EFormFieldTyp resolveFieldType(String fieldName, boolean asAlias)
Map<String,String> getFieldAliasMap()
Map that maps from the name of a form elements to its alias name.getAliasFieldMap()Map<String,String> getAliasFieldMap()
Map that maps from the alias name of a form elements to its name.getFieldAliasMap()Map<String,FormFieldMetaData> getFieldMetaDataMap()
Map<String,FormContainerMetaData> getDynContainerMap()
HashSet<String> getDynFieldSet()
Set that consists of the names of all form elements which are repeated containers (and are not
form elements).isElementLooped(String),
getDynContainerMap()String getNormName(String fieldName)
fieldName - A form element that may contain suffixes such as the suffix for repeated elements.Set<String> getSendElements()
Set of all elements for which a value was submitted in the (usually POST) request.boolean valuesMapHasValue(String fieldName)
String getStringValue(String fieldName)
fieldName - The name of a form element.List<String[]> getFieldValues(String fieldName)
fieldName - The name of a form element.List of all values for the given form element, or null if the given form element does not
exist.boolean hasField(String fieldName)
true, wenn das Formular ein Feld mit dem übergebenen Namen besitzt.fieldName - the field to check fortrue, wenn das Formular ein Feld mit dem übergebenen Namen besitztMap<String,List<String[]>> getFieldValuesMap()
Map that maps from the name of a form element to its values.boolean isElementLooped(String elementName)
elementName - The name of a form element to check.true if the form element is a repeated element, false otherwise (or if the given element
does not exist).int loopCount(String elementName)
elementName - The name of a form element.0 in case the element is not a
repeated element.isElementLooped(String)String resolveAliasName(String alias)
alias - The alias of a form element.hasAlias(String)IFieldMetaData getIFieldMetaData(String identifier, boolean asAlias)
String asStringValue(List<String[]> value)
value - A List of values to be converted.null or no values were given.String asStringValue(String[] value)
value - An array of values to be converted.null or no values were given.void addSingleValue(String fieldName, String... value)
List of arrays of
Strings, this adds the given values to the first entry in the List of values.fieldName - The name of a form element.value - One or multiple values to add for the given element.addMultiValue(String, List)void addMultiValue(String fieldName, List<String[]> values)
fieldName - The name of a form element.values - A List of values to add to the form element.addSingleValue(String, String...)String[] normalizeValue(String... value)
value - A list of values.null was given.String[] normalizeValue(List<String> value)
value - A List of values.null was given.Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.