Skip navigation links

Oracle Fusion Middleware Design Time Java API Reference for Oracle ADF Faces and Data Visualization Components
11g Release 2 (11.1.2.3.0)

E18581-04


oracle.adfdt.view.common.binding.utils
Class ReferenceUtils

java.lang.Object
  extended by oracle.adfdt.view.common.binding.utils.ReferenceUtils


public final class ReferenceUtils
extends java.lang.Object

Method Summary
static java.util.List<BindingReference> getAllBindingReferences(ADFDesignTimeContext dtContext, org.w3c.dom.Node domNode)
          Gets all BindingReferences related to the passed in DOM node.
static java.util.Set<java.lang.String> getBindingIds(ADFDesignTimeContext dtContext, org.w3c.dom.Element root, boolean recurse)
          Returns all binding ids used in either the node directly, or the subtree if the recurse flag is set to true.
static BindingReference getBindingReference(ADFDesignTimeContext dtContext, org.w3c.dom.Node domNode)
          Returns the highest ranked BindingReference according to the ordering defined by registered patterns.
static void safeDeleteBindings(ADFDesignTimeContext dtContext, org.w3c.dom.Element deletedRoot)
          Given an already removed subtree from the DOM, this will safely delete any unused bindings located in that subtree.

 

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

 

Method Detail

getAllBindingReferences

public static java.util.List<BindingReference> getAllBindingReferences(ADFDesignTimeContext dtContext,
                                                                       org.w3c.dom.Node domNode)
Gets all BindingReferences related to the passed in DOM node. If the DOM node is an element, this will return all references contained in any attributes of that element. If the DOM node is an attribute, this will return all references contained within that attribute's value. This will return the BindingReferences in ranked order, with the highest ranks first.
Parameters:
dtContext - The ADFDesignTimeContext of the current view.
domElement - The Element to inspect.
Returns:
List of unique BindingReference contained in the node.

getBindingReference

public static BindingReference getBindingReference(ADFDesignTimeContext dtContext,
                                                   org.w3c.dom.Node domNode)
Returns the highest ranked BindingReference according to the ordering defined by registered patterns. If no references exist, this will return null.
Parameters:
dtContext - The ADFDesignTimeContext of the current view.
domNode - The Node to inspect.
Returns:
Highest ranked BindingReference or null.

getBindingIds

public static java.util.Set<java.lang.String> getBindingIds(ADFDesignTimeContext dtContext,
                                                            org.w3c.dom.Element root,
                                                            boolean recurse)
Returns all binding ids used in either the node directly, or the subtree if the recurse flag is set to true.
Parameters:
dtContext - The ADFDesignTimeContext of the current view.
root - The root Node to inspect.
recurse - True if child node binding ids should also be retrieved
Returns:
All binding ids used in the current node or node subtree (depending on recurse)

safeDeleteBindings

public static void safeDeleteBindings(ADFDesignTimeContext dtContext,
                                      org.w3c.dom.Element deletedRoot)
Given an already removed subtree from the DOM, this will safely delete any unused bindings located in that subtree. The bindings will not be removed if (1) they are used elsewhere in the document, or (2) are referenced elsewhere in the page definition.
Parameters:
dtContext - The ADFDesignTimeContext of the current view.
deletedRoot - The root of the deleted node tree (this must have already been removed from the document.

Skip navigation links

Oracle Fusion Middleware Design Time Java API Reference for Oracle ADF Faces and Data Visualization Components
11g Release 2 (11.1.2.3.0)

E18581-04


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