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

E22562-01

oracle.apps.fnd.applcore.dt.patterns.metadata.creator.common
Class ItemHolderHelper

java.lang.Object
  extended by oracle.apps.fnd.applcore.dt.patterns.metadata.creator.common.ItemHolderHelper

public final class ItemHolderHelper
extends java.lang.Object

This public class helps in creating the items in the collection table.


Method Summary
static java.util.List clone(java.util.List oldList)
          Create a duplicate list.
static boolean compareNodes(org.w3c.dom.Node firstNode, org.w3c.dom.Node secondNode)
          This method is used to compare the given nodes.
static org.w3c.dom.Element createADFFacesElement(org.w3c.dom.Node parent, java.lang.String elementName)
          This method creates an ADF Faces element.
static Attribute createAttribute(oracle.bali.xml.gui.jdev.JDevXmlContext context, java.lang.String headerValue, java.lang.String value, oracle.adfdt.view.ui.collection.ItemHolder parentHolder)
          This method creats a new attribute item.
static org.w3c.dom.Element createElement(org.w3c.dom.Node parent, java.lang.String ns, java.lang.String elementName)
          This method creates a jsf element.
static oracle.bali.xml.metadata.XmlKey getComponentKey(java.lang.String componentName)
          Return xml key for the given component.
static java.lang.String getDefaultColumnComponent(oracle.bali.xml.gui.jdev.JDevXmlContext context)
          This method returns the default component for an item.
static oracle.bali.xml.metadata.XmlKey getDefaultOutputTextKey(oracle.bali.xml.gui.jdev.JDevXmlContext context)
          This method returns the xml key for the default output text component.
static oracle.adfdt.view.ui.collection.Item newDefaultItem(oracle.adfdt.view.ui.collection.ItemHolder parent, java.lang.String headerValue, java.lang.String defaultValue, oracle.bali.xml.gui.jdev.JDevXmlContext context)
          Creates a new item.
static oracle.adfdt.view.ui.collection.Item newItem(oracle.adfdt.view.ui.collection.ItemHolder parent, java.lang.String var, oracle.bali.xml.gui.jdev.JDevXmlContext context)
          This method is used in creating a new item.
static oracle.adfdt.view.ui.collection.Item newItem(oracle.adfdt.view.ui.collection.ItemHolder parent, java.lang.String headerValue, java.lang.String var, oracle.bali.xml.gui.jdev.JDevXmlContext context)
          Creates a new item.
static void removeChildNodes(org.w3c.dom.Node parent)
          This method removes all the child nodes of the gievn parent.
static java.lang.String uniqueName(oracle.adfdt.view.ui.collection.ItemHolder parent, java.lang.String prefixFormat)
          This method generates a unique name for a given prefix format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newItem

public static oracle.adfdt.view.ui.collection.Item newItem(oracle.adfdt.view.ui.collection.ItemHolder parent,
                                                           java.lang.String var,
                                                           oracle.bali.xml.gui.jdev.JDevXmlContext context)
This method is used in creating a new item.

Parameters:
parent - The parent collection.
var - The default binding variable.
context - The jdev xml context.
Returns:
The newly created item.

uniqueName

public static java.lang.String uniqueName(oracle.adfdt.view.ui.collection.ItemHolder parent,
                                          java.lang.String prefixFormat)
This method generates a unique name for a given prefix format.

Parameters:
parent - The collection object.
prefixFormat - The prefix format.
Returns:
The unique name.

newDefaultItem

public static oracle.adfdt.view.ui.collection.Item newDefaultItem(oracle.adfdt.view.ui.collection.ItemHolder parent,
                                                                  java.lang.String headerValue,
                                                                  java.lang.String defaultValue,
                                                                  oracle.bali.xml.gui.jdev.JDevXmlContext context)
Creates a new item.

Parameters:
parent - The parent collection.
headerValue - The value used in dummy data binding.
defaultValue - The binding variable name.
context - The jdev xml context.
Returns:
The newly created item.

newItem

public static oracle.adfdt.view.ui.collection.Item newItem(oracle.adfdt.view.ui.collection.ItemHolder parent,
                                                           java.lang.String headerValue,
                                                           java.lang.String var,
                                                           oracle.bali.xml.gui.jdev.JDevXmlContext context)
Creates a new item.

Parameters:
parent - The parent collection.
headerValue - The value used in dummy data binding.
var - The binding variable name.
context - The jdev xml context.
Returns:
The newly created item.

createAttribute

public static Attribute createAttribute(oracle.bali.xml.gui.jdev.JDevXmlContext context,
                                        java.lang.String headerValue,
                                        java.lang.String value,
                                        oracle.adfdt.view.ui.collection.ItemHolder parentHolder)
This method creats a new attribute item.

Parameters:
context - The jdev xml context.
headerValue - The databinding value for this item.
value - The binding variable.
parentHolder - The parent collection for this attribute.
Returns:
The newly created attribute.

getDefaultColumnComponent

public static java.lang.String getDefaultColumnComponent(oracle.bali.xml.gui.jdev.JDevXmlContext context)
This method returns the default component for an item.

Parameters:
context - The jdev xml context.
Returns:
The default component name for this item.

getDefaultOutputTextKey

public static oracle.bali.xml.metadata.XmlKey getDefaultOutputTextKey(oracle.bali.xml.gui.jdev.JDevXmlContext context)
This method returns the xml key for the default output text component.

Parameters:
context - The jdec xml context.
Returns:
The xml key for the default output text,

createADFFacesElement

public static org.w3c.dom.Element createADFFacesElement(org.w3c.dom.Node parent,
                                                        java.lang.String elementName)
This method creates an ADF Faces element.

Parameters:
parent - The parent node.
elementName - Name of the faces element.
Returns:
Return the newly created ADF Faces element.

createElement

public static org.w3c.dom.Element createElement(org.w3c.dom.Node parent,
                                                java.lang.String ns,
                                                java.lang.String elementName)
This method creates a jsf element.

Parameters:
parent - The parent node.
ns - The namespace of the element.
elementName - Name of the element.
Returns:
Return the newly created element.

clone

public static java.util.List clone(java.util.List oldList)
Create a duplicate list.

Parameters:
oldList - List of items to be cloned.
Returns:
The cloned list.

getComponentKey

public static oracle.bali.xml.metadata.XmlKey getComponentKey(java.lang.String componentName)
Return xml key for the given component.

Parameters:
componentName - The ADF/JSF component name.
Returns:
Return xml key for the given component.

removeChildNodes

public static void removeChildNodes(org.w3c.dom.Node parent)
This method removes all the child nodes of the gievn parent.

Parameters:
parent - The parent node.

compareNodes

public static boolean compareNodes(org.w3c.dom.Node firstNode,
                                   org.w3c.dom.Node secondNode)
This method is used to compare the given nodes.

Parameters:
firstNode - The first node to be compared.
secondNode - The second node to be compared.
Returns:
Return whether both the nodes match.

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

E22562-01

Copyright © 2011 Oracle. All Rights Reserved.