org.zanata.client.commands.push
Class PropertiesStrategy
java.lang.Object
org.zanata.client.commands.push.AbstractCommonPushStrategy<PushOptions>
org.zanata.client.commands.push.AbstractPushStrategy
org.zanata.client.commands.push.PropertiesStrategy
public class PropertiesStrategy
- extends AbstractPushStrategy
NB: you must initialise this object with init() after setPushOptions()
- Author:
- Sean Flanigan sflaniga@redhat.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesStrategy
public PropertiesStrategy()
PropertiesStrategy
public PropertiesStrategy(String charset)
init
public void init()
- Overrides:
init in class AbstractPushStrategy
findDocNames
public Set<String> findDocNames(File srcDir,
List<String> includes,
List<String> excludes,
boolean useDefaultExclude,
boolean caseSensitive,
boolean excludeLocaleFilenames)
throws IOException
- Specified by:
findDocNames in class AbstractPushStrategy
- Throws:
IOException
loadSrcDoc
public org.zanata.rest.dto.resource.Resource loadSrcDoc(File sourceDir,
String docName)
throws IOException,
RuntimeException
- Specified by:
loadSrcDoc in class AbstractPushStrategy
- Throws:
IOException
RuntimeException
visitTranslationResources
public void visitTranslationResources(String docName,
org.zanata.rest.dto.resource.Resource srcDoc,
PushCommand.TranslationResourcesVisitor callback)
throws IOException,
RuntimeException
- Specified by:
visitTranslationResources in class AbstractPushStrategy
- Throws:
IOException
RuntimeException
Copyright © 2013 Zanata Project. All Rights Reserved.