public class XmlStrategy extends AbstractPullStrategy
Modifier | Constructor and Description |
---|---|
protected |
XmlStrategy(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(Resource doc,
String docName,
LocaleMapping locale,
TranslationsResource targetDoc)
pre: docWithLocalName.getName() must match docName if docWithLocalName is
not null
|
getOpts, getTransFileToWrite, isTransOnly
protected XmlStrategy(PullOptions opts)
public boolean needsDocToWriteTrans()
PullStrategy
public void writeSrcFile(Resource doc) throws IOException
IOException
public FileDetails writeTransFile(Resource doc, String docName, LocaleMapping locale, TranslationsResource targetDoc) throws IOException
PullStrategy
doc
- may be null if needsDocToWriteTrans() returns falsedocName
- may be null if needsDocToWriteTrans() returns falseIOException
public StringSet getExtensions()
PullStrategy
Copyright © 2017 Zanata Project. All rights reserved.