CommandLineArgument Class

DEPRECATED Use CommandLineArgument

com.beasys.commerce.util
CommandLineArgument Class

public class CommandLineArgument

    extends Object

Representation of a command line argument.


Hierarchy
Object
  CommandLineArgument

Field Summary

protected String
defaultValue
String
protected String
description
String
protected String
flag
String
protected boolean
required
boolean
protected boolean
requiresFlagValue
boolean
 

Constructor Summary

CommandLineArgument(String aFlag, boolean requiresValue, boolean required)

Command line argument constructor.
 

Method Summary

public boolean
equals(Object anObject)
Equals.
public String
getDefaultValue()
Get default value.
public String
getDescription()
Get description.
public String
getFlag()
Get flag.
public boolean
isRequired()
Is required.
public boolean
requiresFlagValue()
Requires flag value.
public void
setDefaultValue(String aDefaultValue)
Set default value.
public void
setDescription(String aDescription)
Set description.
public void
setFlag(String aFlag)
Set flag.
public void
setRequired(boolean aBool)
Set required.
public void
setRequiresFlagValue(boolean aBool)
Set requires flag value.
 
Methods from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   

Field Detail

defaultValue

protected String defaultValue


description

protected String description


flag

protected String flag


required

protected boolean required


requiresFlagValue

protected boolean requiresFlagValue

 

Constructor Detail

CommandLineArgument

public CommandLineArgument(String aFlag, 
                           boolean requiresValue, 
                           boolean required)
Command line argument constructor.
 

Method Detail

equals(Object) Method

public boolean equals(Object anObject)
Equals.

Overrides
Object.equals(Object)

Returns

boolean

getDefaultValue() Method

public String getDefaultValue()
Get default value.

Returns

String

getDescription() Method

public String getDescription()
Get description.

Returns

String

getFlag() Method

public String getFlag()
Get flag.

Returns

String

isRequired() Method

public boolean isRequired()
Is required.

Returns

boolean

requiresFlagValue() Method

public boolean requiresFlagValue()
Requires flag value.

Returns

boolean

setDefaultValue(String) Method

public void setDefaultValue(String aDefaultValue)
Set default value.


setDescription(String) Method

public void setDescription(String aDescription)
Set description.


setFlag(String) Method

public void setFlag(String aFlag)
Set flag.


setRequired(boolean) Method

public void setRequired(boolean aBool)
Set required.


setRequiresFlagValue(boolean) Method

public void setRequiresFlagValue(boolean aBool)
Set requires flag value.