Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.2)

E22562-02

oracle.apps.fnd.applcore.flex.runtime
Class ModelerADFConfigTransformer

java.lang.Object
  extended by oracle.apps.fnd.applcore.flex.runtime.ModelerADFConfigTransformer

public class ModelerADFConfigTransformer
extends java.lang.Object

A transformer that transforms an existing ADF configuration file to a configuration for BCModeler.


Constructor Summary
ModelerADFConfigTransformer(java.lang.String templateURI, java.lang.String path)
          Constructs a transformer with a template and a writable metadata path.
 
Method Summary
 void setNamespace(java.lang.String namespace)
          Sets the MDS metadata namespace.
 void setNamespaces(java.util.List<java.lang.String> namespaces)
          Sets the list of MDS metadata namespaces.
 void setSessionDefPackageNames(java.lang.String[] names)
          Sets the session-def package names.
static java.lang.String toNamespacePath(java.lang.String pkg)
          Converts dotted package name to slash-delimited namespace path.
 void transform(java.io.File outputFile)
          Transforms the template ADF configuration to a configuration for flexfield modeler and writes the transformed configuration to a file.
static java.net.URL transform(java.lang.String[] pkgNames, java.lang.String outputPath, boolean addToSessionDef, boolean retainTmpFile)
          Transform the existing ADF configuration in the system resource into a configuration saved as a temporary file.
static java.net.URL transform(java.lang.String pkgName, java.lang.String outputPath, boolean addToSessionDef, boolean retainTmpFile)
          Transform the existing ADF configuration in the system resource into a configuration saved as a temporary file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelerADFConfigTransformer

public ModelerADFConfigTransformer(java.lang.String templateURI,
                                   java.lang.String path)
Constructs a transformer with a template and a writable metadata path.

Parameters:
templateURI - the URI of the template ADF configuration file
path - the metadata path where the modeler will write to
Throws:
java.lang.IllegalArgumentException - if the given template URI or path is null
Method Detail

setSessionDefPackageNames

public void setSessionDefPackageNames(java.lang.String[] names)
Sets the session-def package names.

Parameters:
names - the session-def package names; null to remove the existing list from this object

setNamespaces

public void setNamespaces(java.util.List<java.lang.String> namespaces)
Sets the list of MDS metadata namespaces. The existing namespace list in this object will be replaced with the given list. If the given list is null, the existing namespace list, if any, will be removed.

Parameters:
namespaces - the list of MDS metadata namespaces

setNamespace

public void setNamespace(java.lang.String namespace)
Sets the MDS metadata namespace. This is a convenience method for the case when there is only one namespace to be set.

Parameters:
namespace - the MDS metadata namespace
See Also:
setNamespaces(java.util.List)

toNamespacePath

public static java.lang.String toNamespacePath(java.lang.String pkg)
Converts dotted package name to slash-delimited namespace path. For example, "a.b.c" will be converted to "/a/b/c".

Parameters:
pkg - the dotted package name
Returns:
the slash-delimited namespace path; null if the given package name is null

transform

public void transform(java.io.File outputFile)
               throws javax.xml.parsers.ParserConfigurationException,
                      org.xml.sax.SAXException,
                      javax.xml.transform.TransformerConfigurationException,
                      javax.xml.transform.TransformerException,
                      java.io.IOException
Transforms the template ADF configuration to a configuration for flexfield modeler and writes the transformed configuration to a file.

Parameters:
outputFile - the transformed configuration file
Throws:
java.lang.IllegalArgumentException - If the given file is null.
javax.xml.parsers.ParserConfigurationException - if a DocumentBuilder which satisfies the configuration requested cannot be created.
org.xml.sax.SAXException - if any parse errors occur.
javax.xml.transform.TransformerConfigurationException - if a Transformer which satisfies the configuration requested cannot be created.
javax.xml.transform.TransformerException - if an unrecoverable error occurs during the course of the transformation.
java.io.IOException - if any IO errors occur.

transform

public static java.net.URL transform(java.lang.String pkgName,
                                     java.lang.String outputPath,
                                     boolean addToSessionDef,
                                     boolean retainTmpFile)
Transform the existing ADF configuration in the system resource into a configuration saved as a temporary file.

Parameters:
pkgName - the flexfield business component package
outputPath - the path where flexfield business components should be written to
addToSessionDef - true if the given package is a session-def package
retainTmpFile - true if the transformed configuration file should remain after the Java process exists; false if the transformed configuration file should be deleted upon the Java process exists.
Returns:
the URL of the transformed configuration
Throws:
java.lang.IllegalArgumentException - if the given package name is null
java.lang.IllegalStateException - if no ADF configuration is found in the system resource
oracle.jbo.JboException - if an error occurs during the transformation

transform

public static java.net.URL transform(java.lang.String[] pkgNames,
                                     java.lang.String outputPath,
                                     boolean addToSessionDef,
                                     boolean retainTmpFile)
Transform the existing ADF configuration in the system resource into a configuration saved as a temporary file.

Parameters:
pkgNames - the flexfield business component packages
outputPath - the path where flexfield business components should be written to
addToSessionDef - true if the given package is a session-def package
retainTmpFile - true if the transformed configuration file should remain after the Java process exists; false if the transformed configuration file should be deleted upon the Java process exists.
Returns:
the URL of the transformed configuration
Throws:
java.lang.IllegalArgumentException - if the package name list is null or any given package name is null
java.lang.IllegalStateException - if no ADF configuration is found in the system resource
oracle.jbo.JboException - if an error occurs during the transformation

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.2)

E22562-02

Copyright © 2011 Oracle. All Rights Reserved.