|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JavaQName
A qualified class name, including package name. Instances of JavaQName are obtained by invoking private methods of the class JavaQNameImpl.
Method Summary | |
---|---|
java.lang.String |
getClassName()
Returns the JavaQName's class name. |
java.lang.String |
getInnerClassName()
If the class is an inner class: Returns the name of the inner class. |
JavaQName |
getInstanceClass()
If the method isArray() returns true,
you may use this method to obtain the instance class. |
JavaQName |
getObjectType()
If the class is primitive: Returns the corresponding object type. |
java.lang.String |
getOuterClassName()
If the class is an inner class: Returns the name of the enclosing class. |
java.lang.String |
getPackageName()
Returns the JavaQName's package name. |
java.lang.String |
getPrimitiveConversionMethod()
If the class is primitive: Returns the name of the corresponding object classes method for converting the object into a primitive value. |
boolean |
isArray()
Returns whether the class described by the JavaQName is actually an array class. |
boolean |
isImportable()
Returns whether this class may be imported. |
boolean |
isInnerClass()
Returns whether this class is an inner class. |
boolean |
isPrimitive()
Returns whether this is a primitive class. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
java.lang.String getPackageName()
Returns the JavaQName's package name. The empty string represents the default package.
java.lang.String getClassName()
Returns the JavaQName's class name. This is the composition of
getOuterClassName()
and getInnerClassName()
.
java.lang.String getOuterClassName()
If the class is an inner class: Returns the name of the enclosing class. Otherwise returns null.
java.lang.String getInnerClassName()
If the class is an inner class: Returns the name of the inner
class. Otherwise returns getClassName()
.
boolean isArray()
Returns whether the class described by the JavaQName is
actually an array class. If so, you may use the
getInstanceClass()
method to determine the
JavaQName of the array elements.
JavaQName getInstanceClass()
If the method isArray()
returns true,
you may use this method to obtain the instance class.
java.lang.IllegalStateException
- This JavaQName is no array,
and isArray()
returns false.boolean isPrimitive()
Returns whether this is a primitive class. Primitive classes
are JavaQNameImpl.VOID
, JavaQNameImpl.BOOLEAN
,
JavaQNameImpl.BYTE
, JavaQNameImpl.SHORT
,
JavaQNameImpl.INT
, JavaQNameImpl.LONG
,
JavaQNameImpl.FLOAT
, JavaQNameImpl.DOUBLE
, and
JavaQNameImpl.CHAR
.
boolean isImportable()
Returns whether this class may be imported. For instance, this is not the case for primitive classes.
boolean isInnerClass()
Returns whether this class is an inner class.
JavaQName getObjectType()
java.lang.String getPrimitiveConversionMethod()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |