TYPE.
The UNO type is not directly mapped to java.lang.Class for at
least two reasons. For one, some UNO types (like UNSIGNED
SHORT) do not have a matching Java class. For another, it can be
necessary to describe a type which is unknown to the Java runtime system
(for example, for delaying the need of a class, so that it is possible to
generate it on the fly.)
A Type is uniquely determined by its type class (a
TypeClass) and its type name (a String); these two
will never be null. A Type may have an additional
"z class" (a java.lang.Class), giving a Java class type that
corresponds to the UNO type. Also, a Type can cache a type
description (a com.sun.star.uno.typedesc.TypeDescription), which can be
computed and set by TypeDescription.getTypeDescription.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final HashMap | |
| private static final String[] | |
| private Class | |
| private TypeDescription | |
| private com. | |
| private String | |
| public static final Type | |
| public static final Type | |
| public static final Type | |
| public static final Type | |
| public static final Type | |
| public static final Type | |
| public static final Type | |
| public static final Type | |
| public static final Type | |
| public static final Type | |
| public static final Type | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| public static final Type | |
| public static final Type | |
| public static final Type | |
| public static final Type |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Type(String
the type name. Must not be typeName, com.null.the type class. Must not be typeClassnull, and must
match the typeName (for example, it is illegal to
combine a typeName of "void" with a
typeClass of BOOLEAN).Constructs a new |
| public | |
| public | |
| private | |
| public | Type(TypeDescription
a type description. Must not be
typeDescription)null.Constructs a new |
| public | |
| public | Type(com.
the type class of this type; must not be
typeClassnull. Only type classes for simple types are allowed
here.Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| private Class | |
| public boolean | Returns: true if this object is the same as the obj argument;
false otherwise.the reference object with which to compare. obj)Overrides java. Indicates whether some other object is equal to this one. |
| public com. | Returns: the type class. Will never benull, but might be
UNKNOWN.Gets the type class. |
| public TypeDescription | Returns: the type description; may benullGives the type description of this type. |
| public String | |
| public Class | Returns: the type name; may benull in extreme situations
(inconsistent TypeClass, error loading a class)Gets the Java class. |
| public int | Returns: a hash code value for this object.Overrides java. Returns a hash code value for the object. |
| private void | |
| public boolean | Returns: true if this type is a supertype of the given typesome Type type)Determines whether this UNO type is a supertype of another UNO type. |
| public void | setTypeDescription(TypeDescription
the type description typeDescription)Sets the type description for this type. |
| public String | Returns: a string representation of the object.Overrides java. Returns a string representation of the object. |
| __javaClassToTypeClass | back to summary |
|---|---|
| private static final HashMap<Class<?>, Type. | |
| __typeClassToTypeName | back to summary |
|---|---|
| private static final String[] __typeClassToTypeName | |
| _class | back to summary |
|---|---|
| private Class<?> _class | |
| _iTypeDescription | back to summary |
|---|---|
| private TypeDescription _iTypeDescription | |
| _typeClass | back to summary |
|---|---|
| private com. | |
| _typeName | back to summary |
|---|---|
| private String _typeName | |
| ANY | back to summary |
|---|---|
| public static final Type ANY | |
| BOOLEAN | back to summary |
|---|---|
| public static final Type BOOLEAN | |
| BYTE | back to summary |
|---|---|
| public static final Type BYTE | |
| CHAR | back to summary |
|---|---|
| public static final Type CHAR | |
| DOUBLE | back to summary |
|---|---|
| public static final Type DOUBLE | |
| FLOAT | back to summary |
|---|---|
| public static final Type FLOAT | |
| HYPER | back to summary |
|---|---|
| public static final Type HYPER | |
| LONG | back to summary |
|---|---|
| public static final Type LONG | |
| SHORT | back to summary |
|---|---|
| public static final Type SHORT | |
| STRING | back to summary |
|---|---|
| public static final Type STRING | |
| TYPE | back to summary |
|---|---|
| public static final Type TYPE | |
| TYPE_NAME_ANY | back to summary |
|---|---|
| private static final String TYPE_NAME_ANY | |
| TYPE_NAME_BOOLEAN | back to summary |
|---|---|
| private static final String TYPE_NAME_BOOLEAN | |
| TYPE_NAME_BYTE | back to summary |
|---|---|
| private static final String TYPE_NAME_BYTE | |
| TYPE_NAME_CHAR | back to summary |
|---|---|
| private static final String TYPE_NAME_CHAR | |
| TYPE_NAME_DOUBLE | back to summary |
|---|---|
| private static final String TYPE_NAME_DOUBLE | |
| TYPE_NAME_FLOAT | back to summary |
|---|---|
| private static final String TYPE_NAME_FLOAT | |
| TYPE_NAME_HYPER | back to summary |
|---|---|
| private static final String TYPE_NAME_HYPER | |
| TYPE_NAME_LONG | back to summary |
|---|---|
| private static final String TYPE_NAME_LONG | |
| TYPE_NAME_SHORT | back to summary |
|---|---|
| private static final String TYPE_NAME_SHORT | |
| TYPE_NAME_STRING | back to summary |
|---|---|
| private static final String TYPE_NAME_STRING | |
| TYPE_NAME_TYPE | back to summary |
|---|---|
| private static final String TYPE_NAME_TYPE | |
| TYPE_NAME_UNSIGNED_HYPER | back to summary |
|---|---|
| private static final String TYPE_NAME_UNSIGNED_HYPER | |
| TYPE_NAME_UNSIGNED_LONG | back to summary |
|---|---|
| private static final String TYPE_NAME_UNSIGNED_LONG | |
| TYPE_NAME_UNSIGNED_SHORT | back to summary |
|---|---|
| private static final String TYPE_NAME_UNSIGNED_SHORT | |
| TYPE_NAME_VOID | back to summary |
|---|---|
| private static final String TYPE_NAME_VOID | |
| UNSIGNED_HYPER | back to summary |
|---|---|
| public static final Type UNSIGNED_HYPER | |
| UNSIGNED_LONG | back to summary |
|---|---|
| public static final Type UNSIGNED_LONG | |
| UNSIGNED_SHORT | back to summary |
|---|---|
| public static final Type UNSIGNED_SHORT | |
| VOID | back to summary |
|---|---|
| public static final Type VOID | |
| Type | back to summary |
|---|---|
| public Type() Constructs a new | |
| Type | back to summary |
|---|---|
| public Type(String typeName, com. Constructs a new
| |
| Type | back to summary |
|---|---|
| public Type(Class<?> zClass) Constructs a new This is equivalent to
| |
| Type | back to summary |
|---|---|
| public Type(Class<?> zClass, boolean alternative) Constructs a new In certain cases, one Java class corresponds to two UNO types (e.g.,
the Java class
In all other cases, the value of This constructor cannot be used to create
| |
| Type | back to summary |
|---|---|
| private Type(Class<?> zClass, boolean alternative, boolean sequenceComponentType) | |
| Type | back to summary |
|---|---|
| public Type(TypeDescription typeDescription) Constructs a new
| |
| Type | back to summary |
|---|---|
| public Type(String typeName) Constructs a new
| |
| Type | back to summary |
|---|---|
| public Type(com. Constructs a new
| |
| __isTypeClassPrimitive | back to summary |
|---|---|
| private static boolean __isTypeClassPrimitive(com. | |
| determineClass | back to summary |
|---|---|
| private Class | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Indicates whether some other object is equal to this one.
| |
| getTypeClass | back to summary |
|---|---|
| public com. Gets the type class.
| |
| getTypeDescription | back to summary |
|---|---|
| public TypeDescription getTypeDescription() Gives the type description of this type. For internal URE use only. Not to be used by client code.
| |
| getTypeName | back to summary |
|---|---|
| public String getTypeName() Gets the type name.
| |
| getZClass | back to summary |
|---|---|
| public Class Gets the Java class.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hash code value for the object.
| |
| init | back to summary |
|---|---|
| private void init(String name, Class<?> zClass, boolean alternative, boolean arguments, boolean sequenceComponentType) | |
| isSupertypeOf | back to summary |
|---|---|
| public boolean isSupertypeOf(Type type) Determines whether this UNO type is a supertype of another UNO type. UNO only defines the following supertype relations: (1) A struct type t1 is a supertype of a struct type t2, if either t1 and t2 are the same, or t1 is a direct or indirect parent of t2. (2) An exception type t1 is a supertype of an exception type t2, if either t1 and t2 are the same, or t1 is a direct or indirect parent of t2. (3) An interface type t1 is a supertype of an interface type t2, if either t1 and t2 are the same, or t1 is a direct or indirect parent of t2. Following the conventions of the Java UNO language binding, com.sun.star.uno.Exception is not considered a supertype of com.sun.star.uno.RuntimeException or any exception type derived from com.sun.star.uno.RuntimeException.
| |
| setTypeDescription | back to summary |
|---|---|
| public void setTypeDescription(TypeDescription typeDescription) Sets the type description for this type. For internal URE use only. Not to be used by client code.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of the object.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final com. | |
| pack-priv final com. | |
| pack-priv final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | TypeInfo(com.
|
| alternative | back to summary |
|---|---|
| pack-priv final com. | |
| primary | back to summary |
|---|---|
| pack-priv final com. | |
| sequenceComponentType | back to summary |
|---|---|
| pack-priv final boolean sequenceComponentType | |
| TypeInfo | back to summary |
|---|---|
| pack-priv TypeInfo(com. | |