public class XliffStrategy extends AbstractPullStrategy
| Modifier | Constructor and Description |
|---|---|
protected |
XliffStrategy(PullOptions opts) |
| Modifier and Type | Method and Description |
|---|---|
StringSet |
getExtensions()
Which extensions (eg gettext, comment) does this strategy need to fetch
from the server?
|
boolean |
needsDocToWriteTrans()
Does this strategy need the source document (Resource) when writing
translations?
|
void |
writeSrcFile(Resource doc) |
FileDetails |
writeTransFile(String docName,
LocaleMappedTranslatedDoc translatedDoc)
pre: docWithLocalName.getName() must match docName if docWithLocalName is
not null
|
getOpts, getTransFileToWrite, isTransOnlyprotected XliffStrategy(PullOptions opts)
public StringSet getExtensions()
PullStrategypublic boolean needsDocToWriteTrans()
PullStrategypublic void writeSrcFile(Resource doc) throws IOException
IOExceptionpublic FileDetails writeTransFile(String docName, LocaleMappedTranslatedDoc translatedDoc) throws IOException
PullStrategydocName - may be null if needsDocToWriteTrans() returns falseIOExceptionCopyright © 2018 Zanata Project. All rights reserved.