このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


null
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.16

API

SDK

Tips ‘n’ Tricks

Miscellaneous

Type (Java UNO Runtime 言及/関連)
UDK 3.2.7 Java API 言及/関連

com.sun.星/主役にする.uno
Class Type

java.lang.反対する
  extended by com.sun.星/主役にする.uno.Type

public class Type
延長するs 反対する

代表するs the UNO built-in type TYPE.

The UNO type is not 直接/まっすぐに mapped to java.lang.Class for at least two 推論する/理由s. For one, some UNO types (like UNSIGNED SHORT) do not have a matching Java class. For another, it can be necessary to 述べる a type which is unknown to the Java runtime system (for example, for 延期するing the need of a class, so that it is possible to 生成する it on the 飛行機で行く.)

A Type is uniquely 決定するd by its type class (a TypeClass) and its type 指名する (a String); these two will never be null. A Type may have an 付加 "z class" (a java.lang.Class), giving a Java class type that corresponds to the UNO type. Also, a Type can (武器などの)隠匿場所 a type description (a com.sun.星/主役にする.uno.ITypeDescription), which can be 計算するd and 始める,決める by TypeDescription.getTypeDescription.


Field 要約
保護するd  Class _class
           
保護するd  ITypeDescription _iTypeDescription
           
保護するd  TypeClass _typeClass
           
保護するd  String _typeName
           
static Type ANY
           
static Type BOOLEAN
           
static Type BYTE
           
static Type CHAR
           
static Type DOUBLE
           
static Type FLOAT
           
static Type HYPER
           
static Type LONG
           
static Type SHORT
           
static Type STRING
           
static Type TYPE
           
static Type UNSIGNED_HYPER
           
static Type UNSIGNED_LONG
           
static Type UNSIGNED_SHORT
           
static Type VOID
           
 
建設者 要約
Type()
          建設するs a new Type which defaults to VOID.
Type(Class zClass)
          建設するs a new Type from the given java.lang.Class.
Type(Class zClass, boolean 代案/選択肢)
          建設するs a new Type from the given java.lang.Class, 扱うing あいまいな 事例/患者s.
Type(ITypeDescription typeDescription)
          建設するs a new Type from the given type description.
Type(String typeName)
          建設するs a new Type with the given type 指名する.
Type(String typeName, TypeClass typeClass)
          建設するs a new Type with the given type class and type 指名する.
Type(TypeClass typeClass)
          建設するs a new Type with the given type class.
 
Method 要約
 boolean equals(反対する obj)
           
 TypeClass getTypeClass()
          Gets the type class.
 ITypeDescription getTypeDescription()
          Gives the type description of this type.
 String getTypeName()
          Gets the type 指名する.
 Class getZClass()
          Gets the Java class.
 int hashCode()
           
 boolean isSupertypeOf(Type type)
          決定するs whether this UNO type is a supertype of another UNO type.
 無効の setTypeDescription(ITypeDescription typeDescription)
          始める,決めるs the type description for this type.
 String toString()
           
 
Methods 相続するd from class java.lang.反対する
clone, 完結する, getClass, 通知する, notifyAll, wait, wait, wait
 

Field 詳細(に述べる)

VOID

public static final Type VOID

CHAR

public static final Type CHAR

BOOLEAN

public static final Type BOOLEAN

BYTE

public static final Type BYTE

SHORT

public static final Type SHORT

UNSIGNED_SHORT

public static final Type UNSIGNED_SHORT

LONG

public static final Type LONG

UNSIGNED_LONG

public static final Type UNSIGNED_LONG

HYPER

public static final Type HYPER

UNSIGNED_HYPER

public static final Type UNSIGNED_HYPER

FLOAT

public static final Type FLOAT

DOUBLE

public static final Type DOUBLE

STRING

public static final Type STRING

TYPE

public static final Type TYPE

ANY

public static final Type ANY

_typeClass

保護するd TypeClass _typeClass

_typeName

保護するd String _typeName

_class

保護するd Class _class

_iTypeDescription

保護するd ITypeDescription _iTypeDescription
建設者 詳細(に述べる)

Type

public Type()
建設するs a new Type which defaults to VOID.


Type

public Type(String typeName,
            TypeClass typeClass)
建設するs a new Type with the given type class and type 指名する.

Parameters:
typeName - the type 指名する. Must not be null.
typeClass - the type class. Must not be null, and must match the typeName (for example, it is 違法な to 連合させる a typeName of "無効の" with a typeClass of BOOLEAN).

Type

public Type(Class zClass)
建設するs a new Type from the given java.lang.Class.

This is 同等(の) to Type(zClass, 誤った).

Parameters:
zClass - the Java class of this type. Must not be null.

Type

public Type(Class zClass,
            boolean 代案/選択肢)
建設するs a new Type from the given java.lang.Class, 扱うing あいまいな 事例/患者s.

In 確かな 事例/患者s, one Java class corresponds to two UNO types (e.g., the Java class short[].class corresponds to both a sequence of SHORT and a sequence of UNSIGNED SHORT in UNO). In such あいまいな 事例/患者s, the parameter 代案/選択肢 支配(する)/統制するs which UNO type is chosen:

  • If the Java type is (an array type with element type) short or java.lang.Short: If 代案/選択肢 is 誤った, the chosen UNO type is (a sequence type with element type) SHORT. If 代案/選択肢 is true, the chosen UNO type is (a sequence type with element type) UNSIGNED SHORT.
  • If the Java type is (an array type with element type) int or java.lang.Integer: If 代案/選択肢 is 誤った, the chosen UNO type is (a sequence type with element type) LONG. If 代案/選択肢 is true, the chosen UNO type is (a sequence type with element type) UNSIGNED LONG.
  • If the Java type is (an array type with element type) long or java.lang.Long: If 代案/選択肢 is 誤った, the chosen UNO type is (a sequence type with element type) HYPER. If 代案/選択肢 is true, the chosen UNO type is (a sequence type with element type) UNSIGNED HYPER.
  • If the Java type is (an array type with element type) java.lang.反対する: If 代案/選択肢 is 誤った, the chosen UNO type is (a sequence type with element type) ANY. If 代案/選択肢 is true, the chosen UNO type is (a sequence type with element type) com.sun.星/主役にする.uno.XInterface.

In all other 事例/患者s, the value of 代案/選択肢 is ignored.

This 建設者 cannot be used to create Type instances that 代表する (sequences of) instantiated polymorphic struct types.

Parameters:
zClass - the Java class of this type; must not be null
代案/選択肢 - 支配(する)/統制するs which UNO type to choose in 事例/患者 of ambiguities
Since:
UDK 3.2.0

Type

public Type(ITypeDescription typeDescription)
建設するs a new Type from the given type description.

Parameters:
typeDescription - a type description. Must not be null.

Type

public Type(String typeName)
建設するs a new Type with the given type 指名する.

Parameters:
typeName - the 指名する of this type; must not be null.

Type

public Type(TypeClass typeClass)
建設するs a new Type with the given type class.

Parameters:
typeClass - the type class of this type; must not be null. Only type classes for simple types are 許すd here.
Throws:
IllegalArgumentException - if the given typeClass is not simple (for example, a struct or an interface type). This 建設者 could not find out the type 指名する in such a 事例/患者.
Method 詳細(に述べる)

getTypeClass

public TypeClass getTypeClass()
Gets the type class.

Returns:
the type class. Will never be null, but might be UNKNOWN.

getTypeName

public String getTypeName()
Gets the type 指名する.

Returns:
the type 指名する; will never be null

getZClass

public Class getZClass()
Gets the Java class.

Returns:
the type 指名する; may be null in extreme 状況/情勢s (inconsistent TypeClass, error 負担ing a class)

getTypeDescription

public ITypeDescription getTypeDescription()
Gives the type description of this type.

Returns:
the type description; may be null

setTypeDescription

public 無効の setTypeDescription(ITypeDescription typeDescription)
始める,決めるs the type description for this type.

Parameters:
typeDescription - the type description

isSupertypeOf

public boolean isSupertypeOf(Type type)
決定するs whether this UNO type is a supertype of another UNO type. UNO only defines the に引き続いて 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. に引き続いて the 条約s of the Java UNO language binding, com.sun.星/主役にする.uno.Exception is not considered a supertype of com.sun.星/主役にする.uno.RuntimeException or any exception type derived from com.sun.星/主役にする.uno.RuntimeException.

Parameters:
type - some Type
Returns:
true if this type is a supertype of the given type
Since:
UDK 3.2.0

equals

public boolean equals(反対する obj)
無視/無効s:
equals in class 反対する

hashCode

public int hashCode()
無視/無効s:
hashCode in class 反対する

toString

public String toString()
無視/無効s:
toString in class 反対する

UDK 3.2.7 Java API 言及/関連

The ASF

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The ASF logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.