概要 | パッケージ | クラス | 使用 | 階層ツリー | 非推奨 API | 索引 | ヘルプ
| UDK 3.1.0 Java API Reference
前のクラス 次のクラス | フレームあり フレームなし
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド

## com.sun.star.uno
インタフェース ITypeDescription

public interface ITypeDescription

The `ITypeDescription` allows to examine a type in detail (e.g. it is used for marshaling/unmarshaling).

導入されたバージョン:
  UDK3.0

メソッドの概要
`String` | `getArrayTypeName()` Gets the (Java) array type name.
`ITypeDescription` | `getComponentType()` Gets the component `ITypeDescription` if this is an array type, otherwise returns `null`.
`IFieldDescription` | `getFieldDescription(String name)` Gets the `IFieldDescription` for the field with the name `name`, if it exists, otherwise returns `null`.
`IFieldDescription[]` | `getFieldDescriptions()` Gets the `IFieldDescription` for every field, if this type is an interface.
`IMethodDescription` | `getMethodDescription(int methodId)` Gets the `IMethodDescription` for the method with index methodId, if it exists, otherwise returns `null`.
`IMethodDescription` | `getMethodDescription(String name)` Gets the `IMethodDescription` for the method with the name `name`, if it exists, otherwise returns `null`.
`IMethodDescription[]` | `getMethodDescriptions()` Gets the `IMethodDescription` for every method, if this type is an interface.
`ITypeDescription` | `getSuperType()` Gets the `ITypeDescription` of the super, if it exists.
`TypeClass` | `getTypeClass()` Gets the IDL `TypeClass` of the type.
`String` | `getTypeName()` Gets the (UNO) type name.
`Class` | `getZClass()` Gets the corresponding java class for the type.

メソッドの詳細

### getSuperType

    public ITypeDescription getSuperType()

  Gets the `ITypeDescription` of the super, if it exists.

  戻り値:
    the `ITypeDescription`.

### getMethodDescriptions

    public IMethodDescription[] getMethodDescriptions()

  Gets the `IMethodDescription` for every method, if this type is an interface. Otherwise returns `null`.

  戻り値:
    the `IMethodDescription[]`.

### getMethodDescription

    public IMethodDescription getMethodDescription(int methodId)

  Gets the `IMethodDescription` for the method with index methodId, if it exists, otherwise returns `null`.

  戻り値:
    the `IMethodDescription`.

### getMethodDescription

    public IMethodDescription getMethodDescription(String name)

  Gets the `IMethodDescription` for the method with the name `name`, if it exists, otherwise returns `null`.

  戻り値:
    the `IMethodDescription`.

### getFieldDescriptions

    public IFieldDescription[] getFieldDescriptions()

  Gets the `IFieldDescription` for every field, if this type is an interface. Otherwise returns `null`.

  戻り値:
    the `IFieldDescription[]`.

### getFieldDescription

    public IFieldDescription getFieldDescription(String name)

  Gets the `IFieldDescription` for the field with the name `name`, if it exists, otherwise returns `null`.

  戻り値:
    the `IFieldDescription`.

### getTypeClass

    public TypeClass getTypeClass()

  Gets the IDL `TypeClass` of the type.

  戻り値:
    the `TypeClass`.

### getComponentType

    public ITypeDescription getComponentType()

  Gets the component `ITypeDescription` if this is an array type, otherwise returns `null`.

  戻り値:
    the `ITypeDescription`

### getTypeName

    public String getTypeName()

  Gets the (UNO) type name.

  The following table lists how UNO types map to type names:

  UNO type | type name
  --- | ---
  VOID | `"void"`
  BOOLEAN | `"boolean"`
  CHAR | `"char"`
  BYTE | `"byte"`
  SHORT | `"short"`
  UNSIGNED SHORT | `"unsigned short"`
  LONG | `"long"`
  UNSIGNED LONG | `"unsigned long"`
  HYPER | `"hyper"`
  UNSIGNED HYPER | `"unsigned hyper"`
  FLOAT | `"float"`
  DOUBLE | `"double"`
  STRING | `"string"`
  TYPE | `"type"`
  ANY | `"any"`
  sequence type of base type T | `"[]"` followed by type name for T
  enum type named N | N (see below)
  struct type named N | N (see below)
  exception type named N | N (see below)
  interface type named N | N (see below)

  For a UNO type named N, consisting of a sequence of module names M1, ..., Mn followed by a simple name S, the corresponding type name consists of the same sequence of module names and simple name, with `"."` seperating the individual elements.

  戻り値:
    the type name.

### getArrayTypeName

    public String getArrayTypeName()

  Gets the (Java) array type name.

  The array type name is defined to be the Java class name (as returned by `Class.forName`) of the Java array class that corresponds to the UNO sequence type with this type (the UNO type represented by this `ITypeDescription` instance) as base type. For an `ITypeDescription` instance representing the UNO type VOID, the array type name is defined to be `"[Ljava.lang.Void;"`.

  戻り値:
    the array type name.

### getZClass

    public Class getZClass()

  Gets the corresponding java class for the type.

  戻り値:
    the corresponding java class.

概要 | パッケージ | クラス | 使用 | 階層ツリー | 非推奨 API | 索引 | ヘルプ
| UDK 3.1.0 Java API Reference
前のクラス 次のクラス | フレームあり フレームなし
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド