org.zanata.client.commands.push
Class XmlStrategy

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.XmlStrategy

public class XmlStrategy
extends AbstractPushStrategy

Author:
Sean Flanigan sflaniga@redhat.com

Constructor Summary
XmlStrategy()
           
 
Method Summary
 Set<String> findDocNames(File srcDir, List<String> includes, List<String> excludes, boolean useDefaultExclude, boolean caseSensitive, boolean excludeLocaleFilenames)
           
 org.zanata.rest.dto.resource.Resource loadSrcDoc(File sourceDir, String docName)
           
 void visitTranslationResources(String docName, org.zanata.rest.dto.resource.Resource srcDoc, PushCommand.TranslationResourcesVisitor visitor)
           
 
Methods inherited from class org.zanata.client.commands.push.AbstractPushStrategy
docNameToFilename, docNameToFilename, getExtensions, getFileExtension, getSrcFiles, init, 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

XmlStrategy

public XmlStrategy()
Method Detail

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
Specified by:
loadSrcDoc in class AbstractPushStrategy
Throws:
IOException

visitTranslationResources

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


Copyright © 2013 Zanata Project. All Rights Reserved.