public final class ReferenceUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static java.util.List<BindingReference> getAllBindingReferences(ADFDesignTimeContext dtContext, org.w3c.dom.Node domNode)
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.dtContext - The ADFDesignTimeContext of the current view.domElement - The Element to inspect.BindingReference contained in the node.public static BindingReference getBindingReference(ADFDesignTimeContext dtContext, org.w3c.dom.Node domNode)
BindingReference according to the ordering defined by registered patterns. If no references exist, this will return null.dtContext - The ADFDesignTimeContext of the current view.domNode - The Node to inspect.BindingReference or null.public static java.util.Set<java.lang.String> getBindingIds(ADFDesignTimeContext dtContext, org.w3c.dom.Element root, boolean recurse)
dtContext - The ADFDesignTimeContext of the current view.root - The root Node to inspect.recurse - True if child node binding ids should also be retrievedpublic static void safeDeleteBindings(ADFDesignTimeContext dtContext, org.w3c.dom.Element deletedRoot)
dtContext - The ADFDesignTimeContext of the current view.deletedRoot - The root of the deleted node tree (this must have already been removed from the document.