org.marketcetera.util.auth
Class ConsoleSetterString

java.lang.Object
  extended by org.marketcetera.util.auth.Setter<T>
      extended by org.marketcetera.util.auth.ConsoleSetter<Holder<String>>
          extended by org.marketcetera.util.auth.ConsoleSetterString

public class ConsoleSetterString
extends ConsoleSetter<Holder<String>>

A setter for a string holder that obtains the data via the console. This setter echoes the characters typed by the user.

Since:
0.5.0
Version:
$Id: ConsoleSetterString.java 16154 2012-07-14 16:34:05Z colin $
Author:
tlerios@marketcetera.com

Constructor Summary
ConsoleSetterString(Holder<String> holder, I18NBoundMessage usage, I18NBoundMessage prompt)
          Constructor mirroring superclass constructor.
 
Method Summary
 void setValue(Console console)
          Sets the holder's data by obtaining it from the given console, after displaying the receiver's prompt.
 
Methods inherited from class org.marketcetera.util.auth.ConsoleSetter
getPrompt
 
Methods inherited from class org.marketcetera.util.auth.Setter
getHolder, getUsage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleSetterString

public ConsoleSetterString(Holder<String> holder,
                           I18NBoundMessage usage,
                           I18NBoundMessage prompt)
Constructor mirroring superclass constructor.

See Also:
ConsoleSetter.ConsoleSetter(Holder,I18NBoundMessage,I18NBoundMessage)
Method Detail

setValue

public void setValue(Console console)
Description copied from class: ConsoleSetter
Sets the holder's data by obtaining it from the given console, after displaying the receiver's prompt. This method is called by a ConsoleContext.

Specified by:
setValue in class ConsoleSetter<Holder<String>>
Parameters:
console - The console.


Copyright © 2012. All Rights Reserved.