org.marketcetera.util.auth
Class CliSetterString

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

public class CliSetterString
extends CliSetter<Holder<String>>

A setter for a string holder that obtains the data via a command-line.

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

Constructor Summary
CliSetterString(Holder<String> holder, I18NBoundMessage usage, String shortForm, String longForm, I18NBoundMessage description)
          Constructor mirroring superclass constructor.
 
Method Summary
 void setValue(CommandLine commandLine)
          Sets the holder's data by obtaining it from the given parsed command-line.
 
Methods inherited from class org.marketcetera.util.auth.CliSetter
addOption, getDescription, getLongForm, getShortForm
 
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

CliSetterString

public CliSetterString(Holder<String> holder,
                       I18NBoundMessage usage,
                       String shortForm,
                       String longForm,
                       I18NBoundMessage description)
Constructor mirroring superclass constructor.

See Also:
CliSetter.CliSetter(Holder,I18NBoundMessage,String,String,I18NBoundMessage)
Method Detail

setValue

public void setValue(CommandLine commandLine)
Description copied from class: CliSetter
Sets the holder's data by obtaining it from the given parsed command-line. This method is called by a CliContext.

Specified by:
setValue in class CliSetter<Holder<String>>
Parameters:
commandLine - The command-line.


Copyright © 2012. All Rights Reserved.