|
UNO Java Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.star.uno.Type
The Type class represents the IDL builtin type type
.
The IDL type is not directly mapped to java.lang.Class
,
because it can be necessary to describe a type which is unknown
to the java runtime system, e.g. for delaying the need of a class,
so that it is possible to generate it on the fly.
Field Summary | |
protected java.lang.Class |
_class
|
protected ITypeDescription |
_iTypeDescription
|
protected TypeClass |
_typeClass
|
protected java.lang.String |
_typeName
|
Constructor Summary | |
Type()
Constructs a new Type which defaults
to void
|
|
Type(java.lang.Class zClass)
Constructs a new Type with
the given class . |
|
Type(ITypeDescription iTypeDescription)
Constructs a new Type with
the given type description. |
|
Type(java.lang.String typeName)
Constructs a new Type with
the given type name. |
|
Type(TypeClass typeClass)
Constructs a new Type with
the given TypeClass . |
Method Summary | |
boolean |
equals(java.lang.Object object)
Compares two types. |
TypeClass |
getTypeClass()
Gets the typeClass. |
ITypeDescription |
getTypeDescription()
Gives the type description of this type. |
java.lang.String |
getTypeName()
Gets the type name. |
java.lang.Class |
getZClass()
Gets the java class. |
int |
hashCode()
Calculates the hash code. |
void |
setTypeDescription(ITypeDescription iTypeDescription)
Sets the type description for this type. |
java.lang.String |
toString()
Constructs a descriptive String for the type. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String _typeName
protected java.lang.Class _class
protected TypeClass _typeClass
protected ITypeDescription _iTypeDescription
Constructor Detail |
public Type()
Type
which defaults
to void
public Type(java.lang.Class zClass)
Type
with
the given class
.
zClass
- the java class of this typepublic Type(ITypeDescription iTypeDescription)
Type
with
the given type description.
public Type(java.lang.String typeName)
Type
with
the given type name.
typeName
- the name of this type. For simple types
(numbers,string,type,any), the typeclass is calculated,
for complex types (structs,interfaces), the
typeclass of this object is set to UNKNOWNpublic Type(TypeClass typeClass) throws java.lang.IllegalArgumentException
Type
with
the given TypeClass
.
typeClass
- the TypeClass
of this type. Only typeclass for
simple types is allowed.
java.lang.IllegalArgumentException
- when the typeClass is not simple (e.g.
a struct or an interface. The Constructor cannot find out the
name of the type in this case.Method Detail |
public ITypeDescription getTypeDescription()
public void setTypeDescription(ITypeDescription iTypeDescription)
public java.lang.String getTypeName()
null
if this
type has not been constructed by name.
public java.lang.Class getZClass()
null
if this
type has not been constructed by Class
.
public TypeClass getTypeClass()
null
if this
type has not been constructed by TypeClass
.
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
String
for the type.
toString
in class java.lang.Object
String
|
UNO Java Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |