|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jbo.common.JboNameUtil
public class JboNameUtil
Internal: Applications should not use this class.
Field Summary | |
---|---|
static java.lang.String |
APP_EXTENSION
|
static java.lang.String |
DCX_EXTENSION
|
static java.lang.String |
EFFECTIVE_DT_BIND_VAR_NAME
|
static java.lang.String |
EFFECTIVE_DT_ENTITY_TRANSIENT_ATTR_NAME
|
static java.lang.String |
EFFECTIVE_DT_VO_TRANSIENT_ATTR_NAME
|
static char |
INNER_CLASS_DESIGNATOR
|
Constructor Summary | |
---|---|
JboNameUtil()
|
Method Summary | |
---|---|
static java.lang.String |
fastTrim(java.lang.String str)
|
static java.lang.reflect.Constructor |
findConstructor(java.lang.Class cls,
java.lang.Class[] parameterTypes)
|
static java.lang.reflect.Method |
findMethod(java.lang.Class cls,
java.lang.String methodName,
java.lang.Class[] parameterTypes,
java.lang.Class stopClass)
|
static java.lang.reflect.Method |
findMethod(java.lang.Class cls,
java.lang.String methodName,
java.lang.Class[] parameterTypes,
java.lang.Class stopClass,
boolean rtnStatic)
|
static java.lang.String |
flattenName(java.lang.String name)
|
static java.lang.String |
getContainerPartOfName(java.lang.String name)
|
static java.lang.String |
getControlType(int controlType)
|
static java.lang.String |
getDefaultBindingName(java.lang.String name)
|
static java.lang.String |
getDefNameFromInstName(java.lang.String instName)
|
static java.lang.Object |
getDefObject(java.lang.String beanInfoName)
|
static java.lang.String |
getDocumentName(java.lang.String name)
Given a metaobject name (a dot-separated full name), returns the corresponding document name. |
static java.lang.String |
getFirstPartOfName(java.lang.String name)
|
static java.lang.String |
getInfoNameFromJNDIName(java.lang.String jndiName)
|
static java.lang.String |
getInstNameFromClassName(java.lang.String className)
|
static java.lang.String |
getInstNameFromDefName(java.lang.String beanInfoName)
|
static java.lang.String |
getJNDINameFromDefName(java.util.Hashtable env,
java.lang.String beanInfoName)
|
static java.lang.String |
getKnownMetaExtension(java.lang.String name)
|
static java.lang.String |
getLastPartOfName(java.lang.String name)
|
static java.lang.String |
getLocaleName(LocaleContext locale,
java.lang.String sName)
|
static java.lang.String |
getRemainingPartOfName(java.lang.String name)
|
static java.lang.String |
getXMLNameFromDefName(java.lang.String beanInfoName)
|
static boolean |
isAttributeNameValid(java.lang.String nam)
|
static boolean |
isBindVarNameValid(java.lang.String testName)
|
static boolean |
isFlattenedName(java.lang.String name)
|
static boolean |
isFullNameValid(java.lang.String fullNam)
|
static boolean |
isJavaReservedWord(java.lang.String testName,
boolean respectCase)
|
static boolean |
isNameValid(java.lang.String nam)
|
static boolean |
isNameValid(java.lang.String nam,
int start,
int len,
boolean trim)
|
static boolean |
isSQLReservedWord(java.lang.String testName)
|
static java.lang.String |
lengthenDefName(java.lang.String shortName)
|
static int |
resolveControlType(java.lang.String controlTypeStr)
Convert the control type hint from the schema based enumeration to the integer representation as needed by DT and RT |
static java.lang.String |
shortenDefName(java.lang.String beanInfoName)
|
static java.lang.String |
stripToValidName(java.lang.String name)
|
static java.lang.String |
toUpperCaseFirstChar(java.lang.String keyStr)
|
static java.lang.String |
toXMLString(java.lang.String valStr)
|
static java.lang.String |
unflattenName(java.lang.String name)
|
static boolean |
xmlValidateTagName(java.lang.String nameStr)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char INNER_CLASS_DESIGNATOR
public static final java.lang.String DCX_EXTENSION
public static final java.lang.String APP_EXTENSION
public static final java.lang.String EFFECTIVE_DT_VO_TRANSIENT_ATTR_NAME
public static final java.lang.String EFFECTIVE_DT_ENTITY_TRANSIENT_ATTR_NAME
public static final java.lang.String EFFECTIVE_DT_BIND_VAR_NAME
Constructor Detail |
---|
public JboNameUtil()
Method Detail |
---|
public static boolean isNameValid(java.lang.String nam)
public static boolean isNameValid(java.lang.String nam, int start, int len, boolean trim)
public static boolean isAttributeNameValid(java.lang.String nam)
public static boolean isFullNameValid(java.lang.String fullNam)
public static boolean isFlattenedName(java.lang.String name)
public static java.lang.String flattenName(java.lang.String name)
public static java.lang.String unflattenName(java.lang.String name)
public static java.lang.String shortenDefName(java.lang.String beanInfoName)
public static java.lang.String lengthenDefName(java.lang.String shortName)
public static java.lang.String getInstNameFromClassName(java.lang.String className)
public static java.lang.String getInstNameFromDefName(java.lang.String beanInfoName)
public static java.lang.String getDocumentName(java.lang.String name)
The returned document name is conceptually formed as follows: (1) If the name does not end with a valid BC4J or ADFm document-name extension (".xml", ".jpx", ".cpx", ".ccx"), then ".xml" is appended to it. (2) All '.' characters except the last are replaced by '/'. (3) '/' is prepended, unless the name already begins with '/'.
Note that the foregoing algorithm is idempotent, that is, invoking this method on a string that was produced by an earlier invocation of this method will return the same string.
name
- The metaobject name or document name.
public static java.lang.String getKnownMetaExtension(java.lang.String name)
public static java.lang.String getFirstPartOfName(java.lang.String name)
public static java.lang.String getRemainingPartOfName(java.lang.String name)
public static java.lang.String getLastPartOfName(java.lang.String name)
public static java.lang.String getContainerPartOfName(java.lang.String name)
public static java.lang.String getDefNameFromInstName(java.lang.String instName)
public static java.lang.String getInfoNameFromJNDIName(java.lang.String jndiName)
public static java.lang.String getJNDINameFromDefName(java.util.Hashtable env, java.lang.String beanInfoName)
public static java.lang.String getXMLNameFromDefName(java.lang.String beanInfoName)
public static java.lang.Object getDefObject(java.lang.String beanInfoName) throws java.lang.Exception
java.lang.Exception
public static boolean isBindVarNameValid(java.lang.String testName)
public static boolean isSQLReservedWord(java.lang.String testName)
public static boolean isJavaReservedWord(java.lang.String testName, boolean respectCase)
public static java.lang.reflect.Method findMethod(java.lang.Class cls, java.lang.String methodName, java.lang.Class[] parameterTypes, java.lang.Class stopClass)
public static java.lang.reflect.Method findMethod(java.lang.Class cls, java.lang.String methodName, java.lang.Class[] parameterTypes, java.lang.Class stopClass, boolean rtnStatic)
public static java.lang.reflect.Constructor findConstructor(java.lang.Class cls, java.lang.Class[] parameterTypes)
public static java.lang.String toXMLString(java.lang.String valStr)
public static boolean xmlValidateTagName(java.lang.String nameStr)
public static java.lang.String getLocaleName(LocaleContext locale, java.lang.String sName)
public static java.lang.String stripToValidName(java.lang.String name)
public static java.lang.String fastTrim(java.lang.String str)
public static java.lang.String toUpperCaseFirstChar(java.lang.String keyStr)
public static java.lang.String getDefaultBindingName(java.lang.String name)
public static final int resolveControlType(java.lang.String controlTypeStr)
public static java.lang.String getControlType(int controlType)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |