|
UNO Java Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | 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 com.sun.star.uno.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(com.sun.star.uno.TypeClass typeClass)
Constructs a new Type with
the given TypeClass. |
|
| Method Summary | |
boolean |
equals(java.lang.Object object)
Compares two types. |
com.sun.star.uno.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 com.sun.star.uno.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.
typeDescription - a type descriptionpublic 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 UNKNOWN
public Type(com.sun.star.uno.TypeClass typeClass)
throws java.lang.IllegalArgumentException
Type with
the given TypeClass.
typeClass - the TypeClass of this type. Only typeclass for
simple types is allowed.| 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 com.sun.star.uno.TypeClass getTypeClass()
null if this
type has not been constructed by TypeClass.
public boolean equals(java.lang.Object object)
public int hashCode()
public java.lang.String toString()
String for the type.
String
|
UNO Java Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||