|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 2 (11.1.2.3.0) E17483-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.adf.model.adapter.utils.Utility
public final class Utility
Common utilities.
Constructor Summary | |
---|---|
Utility() |
Method Summary | |
---|---|
static void |
ASSERT(boolean flag) Throws an exception if the flag is set to false. |
static Element |
getChildElement(Node parent, java.lang.String childNodeName) Search for a child Element given a parent element and the child name |
static Node |
getFirstChild(Node parent, java.lang.String childName) Search for the First child Node of a parent given the child name |
static boolean |
isNameValid(java.lang.String name) Check if a given name is valid. |
static boolean |
isPrimaryKeyAvailableinAccessor(AccessorDefinition accessor, boolean ensureKey) Deprecated. The method adds a Primary key to the accessor if the isKey() returns false for each AttributeDef and ensureKey is true. If ensureKey is false, methodreturns true if accessor has any Attribute with key property set to true The method DOESNOT iterate recursively under each accessor to enforcePrimaryKey on child accessors. |
static java.lang.String |
normalizeString(java.lang.String name) Normalize a string to play by the JSR 227 DT rules. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utility()
Method Detail |
---|
public static final void ASSERT(boolean flag) throws java.lang.RuntimeException
java.lang.RuntimeException
public static Element getChildElement(Node parent, java.lang.String childNodeName)
public static Node getFirstChild(Node parent, java.lang.String childName)
public static java.lang.String normalizeString(java.lang.String name)
name
- The String to be normalized.public static boolean isNameValid(java.lang.String name)
Character.isLetterOrDigit()
must return true, or is an underscore.name
- The input name which must be checked for compliance Utilitytrue
if the input name satisfies the conditions described above. false
if any of the above conditions fail.public static boolean isPrimaryKeyAvailableinAccessor(AccessorDefinition accessor, boolean ensureKey)
isKey()
returns false for each AttributeDef
and ensureKey is true. If ensureKey is false, methodreturns true if accessor has any Attribute with key property set to true The method DOESNOT iterate recursively under each accessor to enforcePrimaryKey on child accessors.accessor
- against which promary check is Performed. The same accessor gets a new attribute.
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 2 (11.1.2.3.0) E17483-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |