org.zanata.client.commands.pull
Class AbstractGettextPullStrategy
java.lang.Object
org.zanata.client.commands.pull.AbstractPullStrategy
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractGettextPullStrategy
protected AbstractGettextPullStrategy(PullOptions opts)
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.