org.zanata.client.commands.push
Class RawPushStrategy

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

public class RawPushStrategy
extends AbstractCommonPushStrategy<PushOptions>

Strategy for uploading documents using the document file upload API methods.

Author:
David Mason, damason@redhat.com

Nested Class Summary
static interface RawPushStrategy.TranslationFilesVisitor
           
 
Constructor Summary
RawPushStrategy()
           
 
Method Summary
 void visitTranslationFiles(String sourceDocument, RawPushStrategy.TranslationFilesVisitor visitor)
          This implementation assumes that translated documents are named identically to source documents, and reside in directories named with a locale identifier that are siblings of the source directory.
 
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

RawPushStrategy

public RawPushStrategy()
Method Detail

visitTranslationFiles

public void visitTranslationFiles(String sourceDocument,
                                  RawPushStrategy.TranslationFilesVisitor visitor)
This implementation assumes that translated documents are named identically to source documents, and reside in directories named with a locale identifier that are siblings of the source directory.

Parameters:
sourceDocument - local path and name of source document for which to find translations
visitor -


Copyright © 2013 Zanata Project. All Rights Reserved.