Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

oracle.apps.fnd.applseed.rt.extract.util.xml
Class SDExtractXliff

java.lang.Object
  extended by oracle.apps.fnd.applseed.rt.extract.util.xml.SDExtractXliff

public class SDExtractXliff
extends java.lang.Object

This class contains helper methods for writing Extact Xliff files. Each class instance will handle writing for single language. Create new instance for each language to create xliff file.


Constructor Summary
SDExtractXliff(java.lang.String langcode, ExtractFile extractFile)
          Constructor.
 
Method Summary
 void abort(java.lang.String msg)
          Abort this xliff document.
 void addJdbcUpdateProperties(SDViewNode viewnode, SDNodeAttributes properties)
           
 void createNewXlfDoc()
          Create the Xlf document, adding the metadata header nodes.
 void endDocument()
          End this xliff document.
 void endViewRow(SDViewNode node)
          End the current view row, only end those nodes created with newViewRow().
 ExtractXlfFile getExtractXlfFile()
          Return the ExtractXlfFile being generated.
 java.lang.String getFileName()
          Return the xlf file name being generated.
 java.lang.String getLang()
          Get the extracting language code for this builder.
 void newViewRow(SDViewNode node, oracle.apps.fnd.applcore.oaext.model.OAViewRowImpl row)
          Create new view row in the xliff document.
 void writeAttribute(oracle.apps.fnd.applcore.oaext.model.OAViewRowImpl row, oracle.jbo.AttributeDef attrDef)
          Write an xliff attribute, new trans-unit element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDExtractXliff

public SDExtractXliff(java.lang.String langcode,
                      ExtractFile extractFile)
               throws ExtractException
Constructor.

Parameters:
langcode - Language code in Oracle db strored format
extractFile - ExtractFile to create xliff for
Throws:
ExtractException
Method Detail

createNewXlfDoc

public void createNewXlfDoc()
                     throws ExtractException
Create the Xlf document, adding the metadata header nodes.

Throws:
ExtractException

addJdbcUpdateProperties

public void addJdbcUpdateProperties(SDViewNode viewnode,
                                    SDNodeAttributes properties)

newViewRow

public void newViewRow(SDViewNode node,
                       oracle.apps.fnd.applcore.oaext.model.OAViewRowImpl row)
                throws ExtractXmlSerializeException,
                       ExtractException
Create new view row in the xliff document.

Parameters:
node - SDViewNode node
row - Row
Throws:
ExtractXmlSerializeException
ExtractException

writeAttribute

public void writeAttribute(oracle.apps.fnd.applcore.oaext.model.OAViewRowImpl row,
                           oracle.jbo.AttributeDef attrDef)
                    throws ExtractXmlSerializeException
Write an xliff attribute, new trans-unit element.

Parameters:
row - OAViewRowImpl
attrDef - AttributeDef
Throws:
ExtractXmlSerializeException

endViewRow

public void endViewRow(SDViewNode node)
                throws ExtractXmlSerializeException
End the current view row, only end those nodes created with newViewRow().

Parameters:
node - SDViewNode to close
Throws:
ExtractXmlSerializeException

abort

public void abort(java.lang.String msg)
           throws ExtractXmlSerializeException
Abort this xliff document.

Parameters:
msg - String any fail message to add to file, null if none
Throws:
ExtractXmlSerializeException

endDocument

public void endDocument()
                 throws ExtractXmlSerializeException
End this xliff document.

Throws:
ExtractXmlSerializeException

getFileName

public java.lang.String getFileName()
Return the xlf file name being generated.

Returns:
String file name

getExtractXlfFile

public ExtractXlfFile getExtractXlfFile()
Return the ExtractXlfFile being generated.

Returns:
ExtractXlfFile

getLang

public java.lang.String getLang()
Get the extracting language code for this builder.

Returns:
String language code, eg US

Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

Copyright © 2011 Oracle. All Rights Reserved.