Interface TranslationXLIFFService
-
@ConsumerType public interface TranslationXLIFFService
This service enables the translation platform to convert translation object XML to XLIFF and vice-versa
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.w3c.dom.Document
convertXLIFFStreamToXMLDocument(java.io.InputStream xliffInputStream, java.lang.String sourceLanguage, java.lang.String destinationLanguage)
Converts an XLIFF InputStream to an equivalent XMLjava.lang.String
convertXMLDocumentToXLIFFString(org.w3c.dom.Document xmlDocument, java.lang.String id, java.lang.String sourceLanguage, java.lang.String xliffVersion)
Converts an XML document, corresponding to a translation object, to an equivalent XLIFF string
-
-
-
Method Detail
-
convertXMLDocumentToXLIFFString
java.lang.String convertXMLDocumentToXLIFFString(org.w3c.dom.Document xmlDocument, java.lang.String id, java.lang.String sourceLanguage, java.lang.String xliffVersion) throws TranslationXLIFFServiceException
Converts an XML document, corresponding to a translation object, to an equivalent XLIFF string- Parameters:
xmlDocument
- XML document containing the content to be translatedid
- Unique id corresponding to the translation object from which the xmlDocument was createdsourceLanguage
- Source language of the translatable content inside xmlDocumentxliffVersion
- Version of the output XLIFF- Returns:
- String containing the complete XLIFF
- Throws:
TranslationXLIFFServiceException
- Exception
-
convertXLIFFStreamToXMLDocument
org.w3c.dom.Document convertXLIFFStreamToXMLDocument(java.io.InputStream xliffInputStream, java.lang.String sourceLanguage, java.lang.String destinationLanguage) throws TranslationXLIFFServiceException
Converts an XLIFF InputStream to an equivalent XML- Parameters:
xliffInputStream
- Input XLIFF streamsourceLanguage
- Source languagedestinationLanguage
- Target language- Returns:
- XML Document
- Throws:
TranslationXLIFFServiceException
- Exception
-
-