org.zanata.client.commands
Class ConfigurableCommand<O extends ConfigurableOptions>
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurableCommand
public ConfigurableCommand(O opts,
ZanataProxyFactory factory)
ConfigurableCommand
public ConfigurableCommand(O opts)
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.