com.partnersoft.v3x.apps.Staker.interfaces
Class DictionaryFallback

java.lang.Object
  extended by com.partnersoft.v3x.apps.Staker.interfaces.DictionaryFallback
All Implemented Interfaces:
DictionaryMangler, java.io.Serializable

public class DictionaryFallback
extends java.lang.Object
implements DictionaryMangler

A DictionaryMangler that sets a result field to the first nontrivial (not null or blank) value from a list of input fields.

See Also:
Serialized Form

Constructor Summary
DictionaryFallback()
           
 
Method Summary
 java.util.ArrayList getOriginalFieldNames()
           
 java.lang.String getResultFieldName()
           
 void mangle(java.util.Map dict)
          Mangle that dictionary!
 void setOriginalFieldNames(java.util.ArrayList newNames)
           
 void setResultFieldName(java.lang.String newName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictionaryFallback

public DictionaryFallback()
Method Detail

mangle

public void mangle(java.util.Map dict)
Mangle that dictionary!

Specified by:
mangle in interface DictionaryMangler

getResultFieldName

public java.lang.String getResultFieldName()

setResultFieldName

public void setResultFieldName(java.lang.String newName)

getOriginalFieldNames

public java.util.ArrayList getOriginalFieldNames()

setOriginalFieldNames

public void setOriginalFieldNames(java.util.ArrayList newNames)