Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

oracle.ide.extension.rules.functions.util
Class ElementAttributeUtils

java.lang.Object
  extended by oracle.ide.extension.rules.functions.util.ElementAttributeUtils

public final class ElementAttributeUtils
extends java.lang.Object

Utility methods to aid in the creation of RuleFunctions that check for the presence of ElementAttributes on IDE Element objects

Since:
release specific (what release of product did this appear in)

Field Summary
static java.lang.String ELEMENT_ATTRIBUTE_PARAM_NAME
           
 
Constructor Summary
ElementAttributeUtils()
           
 
Method Summary
static int getElementAttribute(java.lang.String attributeName)
          If the attributeName string corresponds to the name of a constant field in ElementAttributes, returns the int value of that constant.
static boolean isAttributeSet(Element[] elements, java.lang.String attributeName, boolean mustBeSetOnAll)
          Returns true if that attributeName corresponds to the name of a constant in ElementAttributes, and if that attribute is set on the expected number of Elements in the given array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT_ATTRIBUTE_PARAM_NAME

public static final java.lang.String ELEMENT_ATTRIBUTE_PARAM_NAME
See Also:
Constant Field Values
Constructor Detail

ElementAttributeUtils

public ElementAttributeUtils()
Method Detail

isAttributeSet

public static final boolean isAttributeSet(Element[] elements,
                                           java.lang.String attributeName,
                                           boolean mustBeSetOnAll)
Returns true if that attributeName corresponds to the name of a constant in ElementAttributes, and if that attribute is set on the expected number of Elements in the given array. If the value of the mustBeSetOnAll parameter is true, then all Elements must have the attribute set to true. If the value is false, then at least on Element must have the attribute set.

Parameters:
elements -
attributeName -
Returns:

getElementAttribute

public static final int getElementAttribute(java.lang.String attributeName)
If the attributeName string corresponds to the name of a constant field in ElementAttributes, returns the int value of that constant. Otherwise returns, -1.

Parameters:
attributeName -
Returns:

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

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