org.apache.ws.jaxme.js

Interface JavaQName

public interface JavaQName extends Comparable, Serializable

A qualified class name, including package name. Instances of JavaQName are obtained by invoking private methods of the class JavaQNameImpl.

Method Summary
StringgetClassName()

Returns the JavaQName's class name.

StringgetInnerClassName()

If the class is an inner class: Returns the name of the inner class.

JavaQNamegetInstanceClass()

If the method isArray() returns true, you may use this method to obtain the instance class.

JavaQNamegetObjectType()
If the class is primitive: Returns the corresponding object type.
StringgetOuterClassName()

If the class is an inner class: Returns the name of the enclosing class.

StringgetPackageName()

Returns the JavaQName's package name.

StringgetPrimitiveConversionMethod()
If the class is primitive: Returns the name of the corresponding object classes method for converting the object into a primitive value.
booleanisArray()

Returns whether the class described by the JavaQName is actually an array class.

booleanisImportable()

Returns whether this class may be imported.

booleanisInnerClass()

Returns whether this class is an inner class.

booleanisPrimitive()

Returns whether this is a primitive class.

Method Detail

getClassName

public String getClassName()

Returns the JavaQName's class name. This is the composition of {@link #getOuterClassName()} and {@link #getInnerClassName}.

getInnerClassName

public String getInnerClassName()

If the class is an inner class: Returns the name of the inner class. Otherwise returns {@link #getClassName()}.

getInstanceClass

public JavaQName getInstanceClass()

If the method isArray() returns true, you may use this method to obtain the instance class.

Throws: IllegalStateException This JavaQName is no array, and isArray() returns false.

getObjectType

public JavaQName getObjectType()
If the class is primitive: Returns the corresponding object type.

getOuterClassName

public String getOuterClassName()

If the class is an inner class: Returns the name of the enclosing class. Otherwise returns null.

getPackageName

public String getPackageName()

Returns the JavaQName's package name. The empty string represents the default package.

getPrimitiveConversionMethod

public String getPrimitiveConversionMethod()
If the class is primitive: Returns the name of the corresponding object classes method for converting the object into a primitive value.

isArray

public 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.

isImportable

public boolean isImportable()

Returns whether this class may be imported. For instance, this is not the case for primitive classes.

isInnerClass

public boolean isInnerClass()

Returns whether this class is an inner class.

isPrimitive

public boolean isPrimitive()

Returns whether this is a primitive class. Primitive classes are {@link JavaQNameImpl#VOID}, {@link JavaQNameImpl#BOOLEAN}, {@link JavaQNameImpl#BYTE}, {@link JavaQNameImpl#SHORT}, {@link JavaQNameImpl#INT}, {@link JavaQNameImpl#LONG}, {@link JavaQNameImpl#FLOAT}, {@link JavaQNameImpl#DOUBLE}, and {@link JavaQNameImpl#CHAR}.