com.projectnine.csvmapper
Class CsvFieldValidationContext
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap
org.apache.commons.chain.impl.ContextBase
com.projectnine.csvmapper.CsvFieldValidationContext
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map, org.apache.commons.chain.Context
public class CsvFieldValidationContext
- extends org.apache.commons.chain.impl.ContextBase
This is the context that is passed between CsvFieldValidator
in the
same Chain
.
- Author:
- robweber
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Methods inherited from class org.apache.commons.chain.impl.ContextBase |
clear, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, values |
Methods inherited from class java.util.HashMap |
clone, containsKey, size |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
containsKey, equals, hashCode, size |
CsvFieldValidationContext
public CsvFieldValidationContext()
getValueToValidate
public java.lang.String getValueToValidate()
- Returns:
- the valueToValidate
setValueToValidate
public void setValueToValidate(java.lang.String valueToValidate)
- Parameters:
valueToValidate
- the valueToValidate to set
setGeneratedObject
public void setGeneratedObject(java.lang.Object generatedObject)
- Set the Object to which the CSV Field value will be stored once it has
been validated and adjusted.
- Parameters:
generatedObject
-
getGeneratedObject
public java.lang.Object getGeneratedObject()
- Returns:
- the generatedObject
setCurrentCsvLine
public void setCurrentCsvLine(java.util.List<java.lang.String> currentCsvLine)
- Set the list of every other CSV field value on the same line as the CSV
Field value that will be validated.
- Parameters:
currentCsvLine
-
getCurrentCsvLine
public java.util.List<java.lang.String> getCurrentCsvLine()
- Returns:
- the currentCsvLine
setCurrentValidationCommandName
public void setCurrentValidationCommandName(java.lang.String currentValidationCommandName)
- Set the String used to track the progress of this context through a
Chain
of CsvFieldValidator
s.
- Parameters:
currentValidationCommandName
-
getCurrentValidationCommandName
public java.lang.String getCurrentValidationCommandName()
- Get the String used to track the progress of this context through a
Chain
of CsvFieldValidator
s.
- Returns:
Copyright © 2008. All Rights Reserved.