Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.2)

E13403-10


oracle.javatools.resourcebundle
Class XliffResourceBundleUtils

java.lang.Object
  extended by oracle.javatools.resourcebundle.XliffResourceBundleUtils


public final class XliffResourceBundleUtils
extends java.lang.Object

XliffResourceBundleUtils provides constants and utility functions for run-time and design-time use in dealing with .xlf files as resource bundles.


Field Summary
static java.lang.String ALT_TRANS
           
static java.lang.String BODY
           
static java.lang.String DATATYPE
           
static java.lang.String DATATYPE_STRING
           
static java.lang.String FILE
           
static java.lang.String ID
           
static java.lang.String NOTE
           
static java.lang.String ORIGINAL
           
static java.lang.String RESNAME
           
static java.lang.String SOURCE
           
static java.lang.String SOURCE_LANGUAGE
           
static java.lang.String TARGET
           
static java.lang.String TRANS_UNIT
           
static java.lang.String VERSION
           
static java.lang.String VERSION_STRING
           
static java.lang.String XLIFF
           
static java.lang.String XLIFF_EXTENSION
           
static java.lang.String XLIFF_NAMESPACE
           
static java.lang.String XML_LANG
           
static java.lang.String XML_NAMESPACE
           

 

Constructor Summary
XliffResourceBundleUtils()
           

 

Method Summary
static org.w3c.dom.Element createBodyElement(org.w3c.dom.Document document)
           
static org.w3c.dom.Element createFileElement(org.w3c.dom.Document document, java.lang.String sourceLanguage, java.lang.String originalFileName)
           
static org.w3c.dom.Element createNoteElement(org.w3c.dom.Document document)
           
static org.w3c.dom.Element createSourceElement(org.w3c.dom.Document document)
           
static org.w3c.dom.Element createTargetElement(org.w3c.dom.Document document)
           
static org.w3c.dom.Element createTransUnitElement(org.w3c.dom.Document document)
           
static org.w3c.dom.Element createXliffElement(org.w3c.dom.Document document)
           
static org.w3c.dom.Element getBodyElement(org.w3c.dom.Document document)
           
static java.lang.String getDocumentASString(org.w3c.dom.Node node)
           
static java.lang.String getKey(org.w3c.dom.Element element)
           
static java.util.Map<java.lang.String,java.lang.String> getMetadata(org.w3c.dom.Element transUnitElement)
           
static org.w3c.dom.Node getNoteNode(org.w3c.dom.Node node)
           
static java.lang.String getNoteString(org.w3c.dom.Node transUnitNode)
           
static java.lang.String getSourceLanguage(org.w3c.dom.Document document)
           
static org.w3c.dom.Node getSourceNode(org.w3c.dom.Node node)
           
static java.lang.String getSourceString(org.w3c.dom.Node transUnitNode)
           
static java.lang.String getTargetString(org.w3c.dom.Element transUnitElement)
           
static org.w3c.dom.NodeList getTransUnitNodes(org.w3c.dom.Document document)
           
static org.w3c.dom.NodeList getTransUnitNodes(org.w3c.dom.Element bodyElement)
           
static void setKey(org.w3c.dom.Element transUnitElement, java.lang.String key)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

XLIFF_EXTENSION

public static final java.lang.String XLIFF_EXTENSION
See Also:
Constant Field Values

XLIFF_NAMESPACE

public static final java.lang.String XLIFF_NAMESPACE
See Also:
Constant Field Values

XLIFF

public static final java.lang.String XLIFF
See Also:
Constant Field Values

FILE

public static final java.lang.String FILE
See Also:
Constant Field Values

BODY

public static final java.lang.String BODY
See Also:
Constant Field Values

TRANS_UNIT

public static final java.lang.String TRANS_UNIT
See Also:
Constant Field Values

SOURCE

public static final java.lang.String SOURCE
See Also:
Constant Field Values

RESNAME

public static final java.lang.String RESNAME
See Also:
Constant Field Values

ID

public static final java.lang.String ID
See Also:
Constant Field Values

TARGET

public static final java.lang.String TARGET
See Also:
Constant Field Values

ALT_TRANS

public static final java.lang.String ALT_TRANS
See Also:
Constant Field Values

SOURCE_LANGUAGE

public static final java.lang.String SOURCE_LANGUAGE
See Also:
Constant Field Values

XML_LANG

public static final java.lang.String XML_LANG
See Also:
Constant Field Values

XML_NAMESPACE

public static final java.lang.String XML_NAMESPACE
See Also:
Constant Field Values

ORIGINAL

public static final java.lang.String ORIGINAL
See Also:
Constant Field Values

DATATYPE

public static final java.lang.String DATATYPE
See Also:
Constant Field Values

DATATYPE_STRING

public static final java.lang.String DATATYPE_STRING
See Also:
Constant Field Values

VERSION

public static final java.lang.String VERSION
See Also:
Constant Field Values

VERSION_STRING

public static final java.lang.String VERSION_STRING
See Also:
Constant Field Values

NOTE

public static final java.lang.String NOTE
See Also:
Constant Field Values

Constructor Detail

XliffResourceBundleUtils

public XliffResourceBundleUtils()

Method Detail

getTransUnitNodes

public static org.w3c.dom.NodeList getTransUnitNodes(org.w3c.dom.Document document)

getSourceLanguage

public static java.lang.String getSourceLanguage(org.w3c.dom.Document document)

getTransUnitNodes

public static org.w3c.dom.NodeList getTransUnitNodes(org.w3c.dom.Element bodyElement)

getBodyElement

public static org.w3c.dom.Element getBodyElement(org.w3c.dom.Document document)

getSourceString

public static java.lang.String getSourceString(org.w3c.dom.Node transUnitNode)

getTargetString

public static java.lang.String getTargetString(org.w3c.dom.Element transUnitElement)

getNoteString

public static java.lang.String getNoteString(org.w3c.dom.Node transUnitNode)

getMetadata

public static java.util.Map<java.lang.String,java.lang.String> getMetadata(org.w3c.dom.Element transUnitElement)

getSourceNode

public static org.w3c.dom.Node getSourceNode(org.w3c.dom.Node node)

getNoteNode

public static org.w3c.dom.Node getNoteNode(org.w3c.dom.Node node)

getKey

public static java.lang.String getKey(org.w3c.dom.Element element)

createTransUnitElement

public static org.w3c.dom.Element createTransUnitElement(org.w3c.dom.Document document)

setKey

public static void setKey(org.w3c.dom.Element transUnitElement,
                          java.lang.String key)

createBodyElement

public static org.w3c.dom.Element createBodyElement(org.w3c.dom.Document document)

createFileElement

public static org.w3c.dom.Element createFileElement(org.w3c.dom.Document document,
                                                    java.lang.String sourceLanguage,
                                                    java.lang.String originalFileName)

createXliffElement

public static org.w3c.dom.Element createXliffElement(org.w3c.dom.Document document)

createSourceElement

public static org.w3c.dom.Element createSourceElement(org.w3c.dom.Document document)

createTargetElement

public static org.w3c.dom.Element createTargetElement(org.w3c.dom.Document document)

createNoteElement

public static org.w3c.dom.Element createNoteElement(org.w3c.dom.Document document)

getDocumentASString

public static java.lang.String getDocumentASString(org.w3c.dom.Node node)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.2)

E13403-10


Copyright © 1997, 2013, Oracle. All rights reserved.