public class XmlStrategy extends Object implements PullStrategy
| Constructor and Description |
|---|
XmlStrategy() |
| Modifier and Type | Method and Description |
|---|---|
org.zanata.rest.StringSet |
getExtensions() |
boolean |
needsDocToWriteTrans() |
void |
setPullOptions(PullOptions opts) |
void |
writeSrcFile(org.zanata.rest.dto.resource.Resource doc) |
void |
writeTransFile(org.zanata.rest.dto.resource.Resource doc,
String docName,
LocaleMapping locale,
org.zanata.rest.dto.resource.TranslationsResource targetDoc)
pre: docWithLocalName.getName() must match docName if docWithLocalName is not null
|
public void setPullOptions(PullOptions opts)
setPullOptions in interface PullStrategypublic boolean needsDocToWriteTrans()
needsDocToWriteTrans in interface PullStrategypublic void writeSrcFile(org.zanata.rest.dto.resource.Resource doc)
throws IOException
writeSrcFile in interface PullStrategyIOExceptionpublic void writeTransFile(org.zanata.rest.dto.resource.Resource doc,
String docName,
LocaleMapping locale,
org.zanata.rest.dto.resource.TranslationsResource targetDoc)
throws IOException
PullStrategywriteTransFile in interface PullStrategydoc - may be null if needsDocToWriteTrans() returns falsedocName - may be null if needsDocToWriteTrans() returns falseIOExceptionpublic org.zanata.rest.StringSet getExtensions()
getExtensions in interface PullStrategyCopyright © 2012 Zanata Project. All Rights Reserved.