toPrimitiveBoolean()

String オブジェクトまたは Boolean オブジェクトを基本的な boolean データ型に変換します。

構文

boolean toPrimitiveBoolean(Object objectData)
 

パラメーター

objectData
基本的な boolean データ型に変換したい String または Boolean オブジェクト。

戻り値

基本的な boolean 値を戻します。

例外

DtpIncompatibleFormatException - ソース・データ型を boolean に変換できない場合です。

boolean MyBoolean = DtpDataConversion.toPrimitiveBoolean(MyStringObj);
 

参照項目

getType(), isOKToConvert(), toBoolean()

Copyright IBM Corp. 2004