|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.Name
org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.LangName
org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.JavaName
public class JavaName
A JavaName encapsulates the Java name of a class. A JavaName identifies the package name, the class name within the package, and the "generated" name of the class.
Field Summary | |
---|---|
protected java.lang.String |
m_declItf |
protected java.lang.String |
m_declItfPackage |
(package private) static java.lang.String |
m_defaultPackage |
protected java.lang.String |
m_useItf |
protected java.lang.String |
m_useItfPackage |
protected java.lang.String |
m_usePackage |
Fields inherited from class org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.LangName |
---|
m_useClass |
Fields inherited from class org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.Name |
---|
m_annotation, m_context, m_name, NO_CONTEXT |
Constructor Summary | |
---|---|
JavaName(java.lang.String packageName, java.lang.String typeName) Create a new JavaName. |
|
JavaName(java.lang.String packageName, java.lang.String useName, java.lang.String useItf, java.lang.String declName, java.lang.String declItf) Initializes a JavaName with a package name, use name, and decl name. |
Method Summary | |
---|---|
java.lang.String |
getDeclClass(java.lang.String currPackage) |
java.lang.String |
getDeclItf() Returns the name of the decl interface |
java.lang.String |
getDeclItf(java.lang.String currPackage) Returns the name of the decl interface |
java.lang.String |
getDeclItfPackage() Returns the package name of the decl interface |
static java.lang.String |
getDefaultPackage() |
java.lang.String |
getUseClass() |
java.lang.String |
getUseClass(boolean full) |
java.lang.String |
getUseClass(java.lang.String currPackage) Returns the name to be used to refer to this class. |
java.lang.String |
getUseItf() Returns the name of the use interface |
java.lang.String |
getUseItf(java.lang.String currPackage) Returns the name of the use interface |
java.lang.String |
getUseItfPackage() Returns the package name of the use interface |
java.lang.String |
getUsePackage() Returns the package name of the use class |
boolean |
hasUseClass() if the represented type has the user subclass |
private void |
processUnicode() |
static void |
setDefaultPackage(java.lang.String defaultPackage) Initialize the JavaName class with the default package name, used when a JavaName is created without an explciit package name |
java.lang.String |
toString() Returns the complete name of the declared entity. |
void |
ungenPattern(java.lang.String simpleName) |
Methods inherited from class org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.LangName |
---|
getDeclClass, getDeclPackage, packageConcat, unicode2Ascii |
Methods inherited from class org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.Name |
---|
equals, getAnnotation, getContextName, getSimpleName, hasDeclItf, hashCode, hasUseItf, renameJavaMethodPrefix, setAnnotation |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static java.lang.String m_defaultPackage
protected java.lang.String m_useItfPackage
protected java.lang.String m_useItf
protected java.lang.String m_declItfPackage
protected java.lang.String m_declItf
protected java.lang.String m_usePackage
Constructor Detail |
---|
public JavaName(java.lang.String packageName, java.lang.String useName, java.lang.String useItf, java.lang.String declName, java.lang.String declItf)
useName
- the use name (class name for use as opposed to declaration)declName
- the decl name (class name for declaration as opposed to use)public JavaName(java.lang.String packageName, java.lang.String typeName)
Method Detail |
---|
private void processUnicode()
public java.lang.String toString()
Name
toString
in class Name
public java.lang.String getDeclItfPackage()
getDeclItfPackage
in class Name
public java.lang.String getDeclItf()
getDeclItf
in class Name
public java.lang.String getDeclItf(java.lang.String currPackage)
public java.lang.String getDeclClass(java.lang.String currPackage)
public java.lang.String getUseClass()
getUseClass
in class Name
public java.lang.String getUseClass(boolean full)
getUseClass
in class Name
public java.lang.String getUsePackage()
getUsePackage
in class Name
public java.lang.String getUseItfPackage()
getUseItfPackage
in class Name
public boolean hasUseClass()
hasUseClass
in class Name
public java.lang.String getUseClass(java.lang.String currPackage)
getUseClass
in class Name
public void ungenPattern(java.lang.String simpleName)
public java.lang.String getUseItf()
getUseItf
in class Name
public java.lang.String getUseItf(java.lang.String currPackage)
public static void setDefaultPackage(java.lang.String defaultPackage)
public static java.lang.String getDefaultPackage()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |