org.zanata.client.commands
Class ConfigurableCommand<O extends ConfigurableOptions>

java.lang.Object
  extended by org.zanata.client.commands.ConfigurableCommand<O>
All Implemented Interfaces:
ZanataCommand
Direct Known Subclasses:
ConfigurableProjectCommand, GetStatisticsCommand, GlossaryDeleteCommand, GlossaryPushCommand, PutProjectCommand, PutUserCommand, PutVersionCommand

public abstract class ConfigurableCommand<O extends ConfigurableOptions>
extends Object
implements ZanataCommand

Base class for commands which supports configuration by the user's zanata.ini

Author:
Sean Flanigan

Constructor Summary
ConfigurableCommand(O opts)
           
ConfigurableCommand(O opts, ZanataProxyFactory factory)
           
 
Method Summary
 void deprecate(String deprecationMessage)
           
 String getDeprecationMessage()
          If the command has been deprecated, returns a message (eg a command which replaces the deprecated command).
 String getName()
          Returns the command name (eg Maven goal name)
 O getOpts()
           
 ZanataProxyFactory getRequestFactory()
           
 boolean isDeprecated()
          Returns true if the command has been deprecated.
 
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.ZanataCommand
run
 

Constructor Detail

ConfigurableCommand

public ConfigurableCommand(O opts,
                           ZanataProxyFactory factory)

ConfigurableCommand

public ConfigurableCommand(O opts)
Method Detail

getOpts

public O getOpts()

getRequestFactory

public ZanataProxyFactory getRequestFactory()

isDeprecated

public boolean isDeprecated()
Description copied from interface: ZanataCommand
Returns true if the command has been deprecated.

Specified by:
isDeprecated in interface ZanataCommand
Returns:

getDeprecationMessage

public String getDeprecationMessage()
Description copied from interface: ZanataCommand
If the command has been deprecated, returns a message (eg a command which replaces the deprecated command).

Specified by:
getDeprecationMessage in interface ZanataCommand
Returns:

deprecate

public void deprecate(String deprecationMessage)

getName

public String getName()
Description copied from interface: ZanataCommand
Returns the command name (eg Maven goal name)

Specified by:
getName in interface ZanataCommand
Returns:


Copyright © 2013 Zanata Project. All Rights Reserved.