org.zanata.client.commands.push
Class PushOptionsImpl

java.lang.Object
  extended by org.zanata.client.commands.BasicOptionsImpl
      extended by org.zanata.client.commands.ConfigurableOptionsImpl
          extended by org.zanata.client.commands.ConfigurableProjectOptionsImpl
              extended by org.zanata.client.commands.AbstractPushPullOptionsImpl<PushOptions>
                  extended by org.zanata.client.commands.push.PushOptionsImpl
All Implemented Interfaces:
BasicOptions, ConfigurableOptions, ConfigurableProjectOptions, PushOptions, PushPullOptions

public class PushOptionsImpl
extends AbstractPushPullOptionsImpl<PushOptions>
implements PushOptions

Author:
Sean Flanigan sflaniga@redhat.com

Field Summary
 
Fields inherited from class org.zanata.client.commands.AbstractPushPullOptionsImpl
locales, PROJECT_TYPE_FILE
 
Constructor Summary
PushOptionsImpl()
           
 
Method Summary
 boolean getCaseSensitive()
           
 int getChunkSize()
           
 String getCommandDescription()
          Used to generate CLI usage help.
 String getCommandName()
          Used to generate the command line interface and its usage help.
 boolean getCopyTrans()
           
 boolean getDefaultExcludes()
           
 boolean getDeleteObsoleteModules()
           
 boolean getExcludeLocaleFilenames()
           
 List<String> getExcludes()
           
 List<String> getFileTypes()
           
 List<String> getIncludes()
           
 String getMergeType()
           
 PushPullType getPushType()
           
 String getSourceLang()
           
 String getValidate()
           
 ZanataCommand initCommand()
           
 boolean isCopyTrans()
           
 void setCaseSensitive(boolean caseSensitive)
           
 void setChunkSize(int chunkSize)
           
 void setCopyTrans(boolean copyTrans)
           
 void setDefaultExcludes(boolean defaultExcludes)
           
 void setExcludeLocaleFilenames(boolean excludeLocaleFilenames)
           
 void setExcludes(String excludes)
           
 void setFileTypes(String fileTypes)
           
 void setIncludes(String includes)
           
 void setLocales(String locales)
           
 void setMergeType(String mergeType)
           
 void setPushType(String pushType)
           
 void setSourceLang(String sourceLang)
           
 void setValidate(String validate)
           
 
Methods inherited from class org.zanata.client.commands.AbstractPushPullOptionsImpl
buildFromDocArgument, getAllModules, getCurrentModule, getCurrentModule, getDocNameRegex, getEnableModules, getFromDoc, getLocaleMapList, getModuleSuffix, getSrcDir, getSrcDirParameterName, getTransDir, isDryRun, isRootModule, setDryRun, setFromDoc, setSrcDir, setTransDir
 
Methods inherited from class org.zanata.client.commands.ConfigurableProjectOptionsImpl
getProj, getProjectConfig, getProjectType, getProjectVersion, setLocaleMapList, setProj, setProjectConfig, setProjectType, setProjectVersion
 
Methods inherited from class org.zanata.client.commands.ConfigurableOptionsImpl
getKey, getLogHttp, getUrl, getUserConfig, getUsername, isDisableSSLCert, setDisableSSLCert, setKey, setLogHttp, setUrl, setUserConfig, setUsername
 
Methods inherited from class org.zanata.client.commands.BasicOptionsImpl
getDebug, getErrors, getHelp, getQuiet, isDebugSet, isErrorsSet, isInteractiveMode, isQuietSet, setBatchMode, setDebug, setErrors, setHelp, setInteractiveMode, setQuiet
 
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.PushPullOptions
buildFromDocArgument, getAllModules, getCurrentModule, getCurrentModule, getDocNameRegex, getEnableModules, getFromDoc, getModuleSuffix, getSrcDir, getSrcDirParameterName, getTransDir, isDryRun, isRootModule
 
Methods inherited from interface org.zanata.client.commands.ConfigurableProjectOptions
getLocaleMapList, getProj, getProjectConfig, getProjectType, getProjectVersion, setLocaleMapList, setProj, setProjectConfig, setProjectType, setProjectVersion
 
Methods inherited from interface org.zanata.client.commands.ConfigurableOptions
getKey, getLogHttp, getUrl, getUserConfig, getUsername, isDisableSSLCert, setDisableSSLCert, setKey, setLogHttp, setUrl, setUserConfig, setUsername
 
Methods inherited from interface org.zanata.client.commands.BasicOptions
getDebug, getErrors, getHelp, getQuiet, isDebugSet, isErrorsSet, isInteractiveMode, isQuietSet, setDebug, setErrors, setHelp, setInteractiveMode, setQuiet
 

Constructor Detail

PushOptionsImpl

public PushOptionsImpl()
Method Detail

initCommand

public ZanataCommand initCommand()
Specified by:
initCommand in interface BasicOptions

getCommandName

public String getCommandName()
Description copied from interface: BasicOptions
Used to generate the command line interface and its usage help. This name should match the Maven Mojo's 'goal' annotation and must match the @SubCommand name in ZanataClient.

Specified by:
getCommandName in interface BasicOptions
Returns:

getCommandDescription

public String getCommandDescription()
Description copied from interface: BasicOptions
Used to generate CLI usage help. This description should preferably match the Maven Mojo's Javadoc description.

Specified by:
getCommandDescription in interface BasicOptions
Returns:

getSourceLang

public String getSourceLang()
Specified by:
getSourceLang in interface PushOptions

setSourceLang

public void setSourceLang(String sourceLang)

setLocales

public void setLocales(String locales)

getCopyTrans

public boolean getCopyTrans()
Specified by:
getCopyTrans in interface PushOptions

isCopyTrans

public boolean isCopyTrans()

setCopyTrans

public void setCopyTrans(boolean copyTrans)

getMergeType

public String getMergeType()
Specified by:
getMergeType in interface PushOptions

setMergeType

public void setMergeType(String mergeType)

getPushType

public PushPullType getPushType()
Specified by:
getPushType in interface PushOptions

setPushType

public void setPushType(String pushType)

getIncludes

public List<String> getIncludes()
Specified by:
getIncludes in interface PushOptions

setIncludes

public void setIncludes(String includes)

getExcludes

public List<String> getExcludes()
Specified by:
getExcludes in interface PushOptions

setExcludes

public void setExcludes(String excludes)

getDefaultExcludes

public boolean getDefaultExcludes()
Specified by:
getDefaultExcludes in interface PushOptions

setDefaultExcludes

public void setDefaultExcludes(boolean defaultExcludes)

getDeleteObsoleteModules

public boolean getDeleteObsoleteModules()
Specified by:
getDeleteObsoleteModules in interface PushOptions

getChunkSize

public int getChunkSize()
Specified by:
getChunkSize in interface PushOptions

setChunkSize

public void setChunkSize(int chunkSize)

getFileTypes

public List<String> getFileTypes()
Specified by:
getFileTypes in interface PushOptions

setFileTypes

public void setFileTypes(String fileTypes)

getCaseSensitive

public boolean getCaseSensitive()
Specified by:
getCaseSensitive in interface PushOptions

setCaseSensitive

public void setCaseSensitive(boolean caseSensitive)

getExcludeLocaleFilenames

public boolean getExcludeLocaleFilenames()
Specified by:
getExcludeLocaleFilenames in interface PushOptions

setExcludeLocaleFilenames

public void setExcludeLocaleFilenames(boolean excludeLocaleFilenames)

getValidate

public String getValidate()
Specified by:
getValidate in interface PushOptions

setValidate

public void setValidate(String validate)


Copyright © 2013 Zanata Project. All Rights Reserved.