org.openeai.implementations.scrubbers
Class YearScrubber


java.lang.Object

  |

  +--org.openeai.OpenEaiObject

        |

        +--org.openeai.scrubbers.EnterpriseScrubberImpl

              |

              +--org.openeai.implementations.scrubbers.YearScrubber

All Implemented Interfaces:
EnterpriseScrubber

public class YearScrubber
extends EnterpriseScrubberImpl
implements EnterpriseScrubber

Scrubber that converts a null or empty string to the current year. These scrubbers are associated to a particular field in the EnterpriseObjects.xml document.

Version:
3.0 beta2 - 28 January 2003
Author:
Tod Jackson (tod@openeai.org), Steve Wheat (steve@openeai.org)

Field Summary
 
Fields inherited from class org.openeai.OpenEaiObject
logger
 
Constructor Summary
YearScrubber()
          Constructor
 
Method Summary
 java.lang.String scrub(java.lang.String value)
          This is the scrub method that all EnterpriseScrubbers must implement.
 
Methods inherited from class org.openeai.scrubbers.EnterpriseScrubberImpl
getSequence, setSequence
 
Methods inherited from class org.openeai.OpenEaiObject
addLog4jProperty, getAppName, getDebug, getFromAddr, getLog4jProperties, getMailHost, getMailService, getProperties, getToAddr, initializeLog4j, initializeLog4j, initializeLog4j, setAppName, setDebug, setFromAddr, setMailHost, setMailService, setProperties, setToAddr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openeai.scrubbers.EnterpriseScrubber
getSequence, setSequence
 

Constructor Detail

YearScrubber


public YearScrubber()
Constructor

Method Detail

scrub


public java.lang.String scrub(java.lang.String value)
                       throws EnterpriseScrubberException
This is the scrub method that all EnterpriseScrubbers must implement. This particular scrub method converts a null or empty string to the current year.

Specified by:
scrub in interface EnterpriseScrubber
Returns:
String the scrubbed value.
Throws:
EnterpriseScrubberException - if any errors occur scrubbing the input.
See Also:
EnterpriseFields, EnterpriseFormatter


Copyright © 2002, OpenEAI Software Foundation