org.marketcetera.util.auth
Class CliSetterCharArray

java.lang.Object
  extended by org.marketcetera.util.auth.Setter<T>
      extended by org.marketcetera.util.auth.CliSetter<Holder<char[]>>
          extended by org.marketcetera.util.auth.CliSetterCharArray

public class CliSetterCharArray
extends CliSetter<Holder<char[]>>

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

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

Constructor Summary
CliSetterCharArray(Holder<char[]> 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

CliSetterCharArray

public CliSetterCharArray(Holder<char[]> 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<char[]>>
Parameters:
commandLine - The command-line.


Copyright © 2012. All Rights Reserved.