org.zanata.client.commands.pull
Class AbstractGettextPullStrategy

java.lang.Object
  extended by org.zanata.client.commands.pull.AbstractPullStrategy
      extended by org.zanata.client.commands.pull.AbstractGettextPullStrategy
All Implemented Interfaces:
PullStrategy
Direct Known Subclasses:
GettextDirStrategy, GettextPullStrategy

public abstract class AbstractGettextPullStrategy
extends AbstractPullStrategy

Author:
Sean Flanigan sflaniga@redhat.com

Constructor Summary
protected AbstractGettextPullStrategy(PullOptions opts)
           
 
Method Summary
 org.zanata.rest.StringSet getExtensions()
          Which extensions (eg gettext, comment) does this strategy need to fetch from the server?
protected  org.zanata.adapter.po.PoWriter2 getPoWriter()
           
 boolean needsDocToWriteTrans()
          Does this strategy need the source document (Resource) when writing translations?
 void writeSrcFile(org.zanata.rest.dto.resource.Resource doc)
           
 
Methods inherited from class org.zanata.client.commands.pull.AbstractPullStrategy
getOpts, isTransOnly
 
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.pull.PullStrategy
getTransFileToWrite, writeTransFile
 

Constructor Detail

AbstractGettextPullStrategy

protected AbstractGettextPullStrategy(PullOptions opts)
Method Detail

getPoWriter

protected org.zanata.adapter.po.PoWriter2 getPoWriter()

getExtensions

public org.zanata.rest.StringSet getExtensions()
Description copied from interface: PullStrategy
Which extensions (eg gettext, comment) does this strategy need to fetch from the server?

Returns:

needsDocToWriteTrans

public boolean needsDocToWriteTrans()
Description copied from interface: PullStrategy
Does this strategy need the source document (Resource) when writing translations?

Returns:

writeSrcFile

public void writeSrcFile(org.zanata.rest.dto.resource.Resource doc)
                  throws IOException
Throws:
IOException


Copyright © 2013 Zanata Project. All Rights Reserved.