net.sf.saffron.util
Class OptionsListTest.StringBufferOptionsHandler

java.lang.Object
  |
  +--net.sf.saffron.util.OptionsListTest.StringBufferOptionsHandler
All Implemented Interfaces:
OptionsList.OptionHandler
Enclosing class:
OptionsListTest

public static class OptionsListTest.StringBufferOptionsHandler
extends Object
implements OptionsList.OptionHandler

Implementation of OptionsList.OptionHandler which writes to a buffer. For testing purposes.


Field Summary
private  StringWriter buf_
           
 
Constructor Summary
OptionsListTest.StringBufferOptionsHandler()
           
 
Method Summary
 void invalidValue(OptionsList.Option option, String value)
           
 void set(OptionsList.Option option, Object value, boolean isExplicit)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

buf_

private StringWriter buf_
Constructor Detail

OptionsListTest.StringBufferOptionsHandler

public OptionsListTest.StringBufferOptionsHandler()
Method Detail

set

public void set(OptionsList.Option option,
                Object value,
                boolean isExplicit)
Specified by:
set in interface OptionsList.OptionHandler

invalidValue

public void invalidValue(OptionsList.Option option,
                         String value)
Specified by:
invalidValue in interface OptionsList.OptionHandler

toString

public String toString()
Overrides:
toString in class Object

SourceForge.net_Logo