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

E22562-01

oracle.apps.fnd.applcore.dt.deploy
Class TrinidadConfigUtil

java.lang.Object
  extended by oracle.apps.fnd.applcore.dt.deploy.TrinidadConfigUtil

public class TrinidadConfigUtil
extends java.lang.Object

Since:
ATG Applcore Drop8 Build4A
Version:
$Header: atgpf/applcore/applications/DesignTime/DT/src/oracle/apps/fnd/applcore/dt/deploy/TrinidadConfigUtil.java /main/3 2010/09/13 15:50:07 mluetchf Exp $
Author:
mluetchf

Constructor Summary
TrinidadConfigUtil()
           
 
Method Summary
static void addFlexfieldTrinidadConfigXmlChange(Project project)
          Adds the Flexfield Web Xml Change.
static org.w3c.dom.Element findChildElementValue(org.w3c.dom.Element parent, java.lang.String elementName, java.lang.String elementNamespace, java.lang.String elementValue)
          Finds a child Element in a parent Element with the specified name.
static oracle.bali.xml.addin.XMLSourceNode findConfigNode(java.net.URL url)
          Retrieve the XML source node for the trinidad-config.xml using the ide tools.
static boolean nodeExists(Project project)
          Checks whether trinidad-config.xml file exists for a project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrinidadConfigUtil

public TrinidadConfigUtil()
Method Detail

nodeExists

public static boolean nodeExists(Project project)
Checks whether trinidad-config.xml file exists for a project. This method will not create this file if it does not exist.

Parameters:
project - the current project
Returns:
true if web.xml exists and false otherwise

findConfigNode

public static oracle.bali.xml.addin.XMLSourceNode findConfigNode(java.net.URL url)
Retrieve the XML source node for the trinidad-config.xml using the ide tools. This is required as it sets the grammar for the xml file correctly.

Parameters:
url - URL for trinidad-config.xml
Returns:
xml source node

addFlexfieldTrinidadConfigXmlChange

public static void addFlexfieldTrinidadConfigXmlChange(Project project)
                                                throws java.lang.Exception
Adds the Flexfield Web Xml Change. If change already exists, it will not affect the file. This method will attempt to check-out the file.

Parameters:
project - the current project
Throws:
java.lang.Exception - if any errors are encountered

findChildElementValue

public static org.w3c.dom.Element findChildElementValue(org.w3c.dom.Element parent,
                                                        java.lang.String elementName,
                                                        java.lang.String elementNamespace,
                                                        java.lang.String elementValue)
Finds a child Element in a parent Element with the specified name. Copied from oracle/webcenter/dt/config/ear/writer/AdfConfigWriterUtil.java

Parameters:
parent - the parent Element whose child Elements will be used to iterate over
elementName - name of the Element to look for
elementNamespace - namespace of the child element to look for
Returns:
child Element with the specified name (if any). If the specified child Element is not found then null is returned.

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

E22562-01

Copyright © 2011 Oracle. All Rights Reserved.