com.notuvy.cmd
Class CommandArgs
java.lang.Object
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
CommandArgs
protected CommandArgs(String[] pArgs)
CommandArgs
protected CommandArgs(List<String> pList)
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.