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

E22562-02

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

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

public class WebUtil
extends java.lang.Object

Since:
release specific (what release of product did this appear in)
Version:
$Header: atgpf/applcore/applications/DesignTime/DT/src/oracle/apps/fnd/applcore/dt/deploy/WebUtil.java /main/4 2010/09/13 15:50:07 mluetchf Exp $
Author:
mluetchf

Constructor Summary
WebUtil()
           
 
Method Summary
static void addFlexfieldWebXmlChange(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 boolean webNodeExists(Project project)
          Checks whether web.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

WebUtil

public WebUtil()
Method Detail

webNodeExists

public static boolean webNodeExists(Project project)
Checks whether web.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

addFlexfieldWebXmlChange

public static void addFlexfieldWebXmlChange(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
sharedLib - the shared library object to add
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.2)

E22562-02

Copyright © 2011 Oracle. All Rights Reserved.