Package org.hl7.fhir.utilities.i18n
Class LanguageFileProducer
- java.lang.Object
-
- org.hl7.fhir.utilities.i18n.LanguageFileProducer
-
- Direct Known Subclasses:
JsonLangFileProducer,PoGetTextProducer,XLIFFProducer
public abstract class LanguageFileProducer extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classLanguageFileProducer.LanguageProducerLanguageSessionclassLanguageFileProducer.LanguageProducerSessionstatic classLanguageFileProducer.TextUnitclassLanguageFileProducer.Translationsstatic classLanguageFileProducer.TranslationUnit
-
Constructor Summary
Constructors Constructor Description LanguageFileProducer()LanguageFileProducer(String rootFolder, String folderName, boolean useLangFolder)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract intfileCount()abstract voidfinish()StringgetFolderName()StringgetRootFolder()protected StringgetTargetFileName(String targetLang, String filename)booleanisUseLangFolder()abstract List<LanguageFileProducer.TranslationUnit>loadSource(InputStream source)abstract voidproduce(String id, String baseLang, String targetLang, List<LanguageFileProducer.TranslationUnit> translations, String filename)abstract LanguageFileProducer.LanguageProducerSessionstartSession(String id, String baseLang)
-
-
-
Constructor Detail
-
LanguageFileProducer
public LanguageFileProducer(String rootFolder, String folderName, boolean useLangFolder)
-
LanguageFileProducer
public LanguageFileProducer()
-
-
Method Detail
-
getRootFolder
public String getRootFolder()
-
getFolderName
public String getFolderName()
-
isUseLangFolder
public boolean isUseLangFolder()
-
getTargetFileName
protected String getTargetFileName(String targetLang, String filename) throws IOException
- Throws:
IOException
-
startSession
public abstract LanguageFileProducer.LanguageProducerSession startSession(String id, String baseLang) throws IOException
- Throws:
IOException
-
finish
public abstract void finish()
-
loadSource
public abstract List<LanguageFileProducer.TranslationUnit> loadSource(InputStream source) throws IOException, ParserConfigurationException, SAXException
-
fileCount
public abstract int fileCount()
-
produce
public abstract void produce(String id, String baseLang, String targetLang, List<LanguageFileProducer.TranslationUnit> translations, String filename) throws IOException
- Throws:
IOException
-
-