com.projectnine.csvmapper
Class CsvFieldValidationContext

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by org.apache.commons.chain.impl.ContextBase
              extended by 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 Class Summary
 
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>
 
Constructor Summary
CsvFieldValidationContext()
           
 
Method Summary
 java.util.List<java.lang.String> getCurrentCsvLine()
           
 java.lang.String getCurrentValidationCommandName()
          Get the String used to track the progress of this context through a Chain of CsvFieldValidators.
 java.lang.Object getGeneratedObject()
           
 java.lang.String getValueToValidate()
           
 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.
 void setCurrentValidationCommandName(java.lang.String currentValidationCommandName)
          Set the String used to track the progress of this context through a Chain of CsvFieldValidators.
 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.
 void setValueToValidate(java.lang.String valueToValidate)
           
 
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
 

Constructor Detail

CsvFieldValidationContext

public CsvFieldValidationContext()
Method Detail

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 CsvFieldValidators.

Parameters:
currentValidationCommandName -

getCurrentValidationCommandName

public java.lang.String getCurrentValidationCommandName()
Get the String used to track the progress of this context through a Chain of CsvFieldValidators.

Returns:


Copyright © 2008. All Rights Reserved.