org.zanata.client.commands.push
Class PropertiesStrategy

java.lang.Object
  extended by org.zanata.client.commands.push.AbstractCommonPushStrategy<PushOptions>
      extended by org.zanata.client.commands.push.AbstractPushStrategy
          extended by org.zanata.client.commands.push.PropertiesStrategy

public class PropertiesStrategy
extends AbstractPushStrategy

NB: you must initialise this object with init() after setPushOptions()

Author:
Sean Flanigan sflaniga@redhat.com

Constructor Summary
PropertiesStrategy()
           
PropertiesStrategy(String charset)
           
 
Method Summary
 Set<String> findDocNames(File srcDir, List<String> includes, List<String> excludes, boolean useDefaultExclude, boolean caseSensitive, boolean excludeLocaleFilenames)
           
 void init()
           
 org.zanata.rest.dto.resource.Resource loadSrcDoc(File sourceDir, String docName)
           
 void visitTranslationResources(String docName, org.zanata.rest.dto.resource.Resource srcDoc, PushCommand.TranslationResourcesVisitor callback)
           
 
Methods inherited from class org.zanata.client.commands.push.AbstractPushStrategy
docNameToFilename, docNameToFilename, getExtensions, getFileExtension, getSrcFiles, isTransOnly
 
Methods inherited from class org.zanata.client.commands.push.AbstractCommonPushStrategy
getOpts, getSrcFiles, setPushOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesStrategy

public PropertiesStrategy()

PropertiesStrategy

public PropertiesStrategy(String charset)
Method Detail

init

public void init()
Overrides:
init in class AbstractPushStrategy

findDocNames

public Set<String> findDocNames(File srcDir,
                                List<String> includes,
                                List<String> excludes,
                                boolean useDefaultExclude,
                                boolean caseSensitive,
                                boolean excludeLocaleFilenames)
                         throws IOException
Specified by:
findDocNames in class AbstractPushStrategy
Throws:
IOException

loadSrcDoc

public org.zanata.rest.dto.resource.Resource loadSrcDoc(File sourceDir,
                                                        String docName)
                                                 throws IOException,
                                                        RuntimeException
Specified by:
loadSrcDoc in class AbstractPushStrategy
Throws:
IOException
RuntimeException

visitTranslationResources

public void visitTranslationResources(String docName,
                                      org.zanata.rest.dto.resource.Resource srcDoc,
                                      PushCommand.TranslationResourcesVisitor callback)
                               throws IOException,
                                      RuntimeException
Specified by:
visitTranslationResources in class AbstractPushStrategy
Throws:
IOException
RuntimeException


Copyright © 2013 Zanata Project. All Rights Reserved.