adams.data.io.output
Class AbstractEmailWriter
java.lang.Object
adams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.data.io.output.AbstractEmailWriter
- All Implemented Interfaces:
- Debuggable, Destroyable, OptionHandler, SizeOfHandler, EmailWriter, Serializable
- Direct Known Subclasses:
- AbstractEmailFileWriter
public abstract class AbstractEmailWriter
- extends AbstractOptionHandler
- implements EmailWriter
Ancestor for classes that write emails.
- Version:
- $Revision: 7123 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
| Methods inherited from class adams.core.option.AbstractOptionHandler |
cleanUpOptions, debug, debug, debugLevelTipText, defineOptions, destroy, finishInit, getDebugLevel, getOptionManager, globalInfo, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString |
AbstractEmailWriter
public AbstractEmailWriter()
check
protected String check(Email email)
- Hook method for performing checks before writing the emails.
Default implementation checks only whether an email has been provided.
- Returns:
- the error message, null if everything OK
doWrite
protected abstract String doWrite(Email email)
- Performs the actual writing.
- Parameters:
email - the email to write
- Returns:
- the error message, null if everything OK
write
public String write(Email email)
- Writes the email.
- Specified by:
write in interface EmailWriter
- Parameters:
email - the email to write
- Returns:
- the error message, null if everything OK
Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.