org.zanata.client.commands
Class BasicOptionsImpl

java.lang.Object
  extended by org.zanata.client.commands.BasicOptionsImpl
All Implemented Interfaces:
BasicOptions
Direct Known Subclasses:
ConfigurableOptionsImpl

public abstract class BasicOptionsImpl
extends Object
implements BasicOptions

Base class for commands

Author:
Sean Flanigan

Constructor Summary
BasicOptionsImpl()
           
 
Method Summary
 boolean getDebug()
          Whether to enable debug mode.
 boolean getErrors()
          Whether to display full information about errors (ie exception stack traces).
 boolean getHelp()
          Whether to display the command's usage help.
 boolean getQuiet()
          Enable quiet mode - error messages only
 boolean isDebugSet()
           
 boolean isErrorsSet()
           
 boolean isInteractiveMode()
           
 boolean isQuietSet()
           
 void setBatchMode(boolean batchMode)
           
 void setDebug(boolean debug)
           
 void setErrors(boolean errors)
           
 void setHelp(boolean help)
           
 void setInteractiveMode(boolean interactiveMode)
           
 void setQuiet(boolean quiet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.zanata.client.commands.BasicOptions
getCommandDescription, getCommandName, initCommand
 

Constructor Detail

BasicOptionsImpl

public BasicOptionsImpl()
Method Detail

getDebug

public boolean getDebug()
Description copied from interface: BasicOptions
Whether to enable debug mode. Defaults to the value in zanata.ini. This value is used by command line clients, but not by Maven (which uses its own --debug/-X flag).

Specified by:
getDebug in interface BasicOptions

setDebug

public void setDebug(boolean debug)
Specified by:
setDebug in interface BasicOptions

getErrors

public boolean getErrors()
Description copied from interface: BasicOptions
Whether to display full information about errors (ie exception stack traces). Defaults to the value in zanata.ini. This value is used by command line clients, but not by Maven (which uses its own --errors/-e flag).

Specified by:
getErrors in interface BasicOptions

setErrors

public void setErrors(boolean errors)
Specified by:
setErrors in interface BasicOptions

getHelp

public boolean getHelp()
Description copied from interface: BasicOptions
Whether to display the command's usage help. Maven uses the auto-generated HelpMojo instead.

Specified by:
getHelp in interface BasicOptions

setHelp

public void setHelp(boolean help)
Specified by:
setHelp in interface BasicOptions

getQuiet

public boolean getQuiet()
Description copied from interface: BasicOptions
Enable quiet mode - error messages only

Specified by:
getQuiet in interface BasicOptions

setQuiet

public void setQuiet(boolean quiet)
Specified by:
setQuiet in interface BasicOptions

isInteractiveMode

public boolean isInteractiveMode()
Specified by:
isInteractiveMode in interface BasicOptions

setInteractiveMode

public void setInteractiveMode(boolean interactiveMode)
Specified by:
setInteractiveMode in interface BasicOptions

setBatchMode

public void setBatchMode(boolean batchMode)

isDebugSet

public boolean isDebugSet()
Specified by:
isDebugSet in interface BasicOptions

isErrorsSet

public boolean isErrorsSet()
Specified by:
isErrorsSet in interface BasicOptions

isQuietSet

public boolean isQuietSet()
Specified by:
isQuietSet in interface BasicOptions


Copyright © 2013 Zanata Project. All Rights Reserved.