com.notuvy.cmd
Class CommandArgs

java.lang.Object
  extended by com.notuvy.cmd.CommandArgs

public class CommandArgs
extends Object

The list of arguments to be processed. User: murali Date: Jan 4, 2008 Time: 10:40:48 AM


Constructor Summary
protected CommandArgs(List<String> pList)
           
protected CommandArgs(String[] pArgs)
           
 
Method Summary
 boolean exhausted()
           
 boolean hasNext()
           
 boolean hasSwitch(String pFlag)
           
protected  boolean isEmpty()
           
 String next()
           
 String peek()
          This should be used in conjunction with "hasNext()" since this does no error checking.
 String switchValue(String pFlag)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommandArgs

protected CommandArgs(String[] pArgs)

CommandArgs

protected CommandArgs(List<String> pList)
Method Detail

isEmpty

protected boolean isEmpty()

hasNext

public boolean hasNext()

peek

public String peek()
This should be used in conjunction with "hasNext()" since this does no error checking.

Returns:
The first item currently in the list.

next

public String next()

exhausted

public boolean exhausted()

hasSwitch

public boolean hasSwitch(String pFlag)

switchValue

public String switchValue(String pFlag)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.