org.openmdx.base.application.control
Class CmdLineArg

java.lang.Object
  extended by org.openmdx.base.application.control.CmdLineArg

public class CmdLineArg
extends Object

CmdLineArg holds a parsed command line argument.


Constructor Summary
CmdLineArg(String name)
          A Command line argument (a switch)
CmdLineArg(String name, String value)
          A Command line argument (an option with a value that can be empty)
 
Method Summary
 String getName()
          Return the argument name
 String getValue()
          Return the argument value
 String toString()
          Return a string representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CmdLineArg

public CmdLineArg(String name,
                  String value)
A Command line argument (an option with a value that can be empty)


CmdLineArg

public CmdLineArg(String name)
A Command line argument (a switch)

Method Detail

getName

public String getName()
Return the argument name


getValue

public String getValue()
Return the argument value


toString

public String toString()
Return a string representation

Overrides:
toString in class Object


This software is published under the BSD license. Copyright © 2003-2008, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.