public class SDOUtil
extends java.lang.Object
Purpose: Common functions in support of SDO.
Responsibilities:
Constructor and Description |
---|
SDOUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
className(java.lang.String s,
boolean isClass)
INTERNAL:
Return a valid Java class name or method name for a given string
|
static java.lang.String |
className(java.lang.String s,
boolean flag,
boolean isClass,
boolean logOn)
INTERNAL:
Return a valid Java class name or method name for a given string
|
static java.lang.String |
constantName(java.lang.String s)
INTERNAL:
|
static java.lang.String |
getBooleanGetMethodName(java.lang.String s,
java.lang.String returnType)
INTERNAL:
Return a valid Java get method name for a given string.
|
static java.lang.String |
getBuiltInType(java.lang.String typeName) |
static java.lang.String |
getDefaultPackageName()
INTERNAL:
Get default package name when no targetNamespace URI exists.
|
static java.lang.String |
getJavaTypeForProperty(SDOProperty property) |
static java.lang.String |
getMethodName(java.lang.String s,
java.lang.String returnType)
INTERNAL:
Return a valid Java get method name for a given string.
|
static java.lang.String |
getPackageNameFromURI(java.lang.String uriString)
INTERNAL:
Get default package name from a namespace URI.
|
static java.lang.String |
methodName(java.lang.String s)
INTERNAL:
Return a valid Java method name for a given string
|
static java.lang.String |
methodName(java.lang.String s,
boolean flag)
INTERNAL:
Return a valid Java method name for a given string
|
static java.lang.String |
setMethodName(java.lang.String s)
INTERNAL:
Return a valid Java set method name for a given string
|
public static java.lang.String getDefaultPackageName()
public static java.lang.String getPackageNameFromURI(java.lang.String uriString)
uriString
- - a namespace URL or URNpublic static java.lang.String className(java.lang.String s, boolean isClass)
s
- isClass
- (flag whether called from a method context)public static java.lang.String className(java.lang.String s, boolean flag, boolean isClass, boolean logOn)
s
- isClass
- (flag whether called from a method context)flag
- public static java.lang.String methodName(java.lang.String s)
s
- public static java.lang.String methodName(java.lang.String s, boolean flag)
s
- flag
- public static java.lang.String setMethodName(java.lang.String s)
s
- public static java.lang.String getMethodName(java.lang.String s, java.lang.String returnType)
s
- returnType
- public static java.lang.String getBooleanGetMethodName(java.lang.String s, java.lang.String returnType)
s
- returnType
- public static java.lang.String constantName(java.lang.String s)
s
- public static java.lang.String getJavaTypeForProperty(SDOProperty property)
public static java.lang.String getBuiltInType(java.lang.String typeName)