|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.go.aist.dmrc.platform.beans.util.variable.PFVariable
public abstract class PFVariable
オブジェクトを格納する変数コンポーネントの最上位抽象クラス。
変数コンポーネントとは、それぞれが特定のクラスのインスタンスを変数として持ち、 ユーザがビルダー上でその変数にアクセスする処理を記述するためのコンポーネントである。 コンポーネント自体はシリアライズ可能であるが、変数として持つインスタンスは シリアライズされない。
このコンポーネントから以下のイベントが発生する。
トリガー | 設定データ | イベント番号 |
---|---|---|
setObject メソッド呼出 |
任意のオブジェクトデータ (Object) |
0 |
変数に値がセットされた場合にデータ設定イベントが発生する。 特定の型のオブジェクトが正しくセットされるかどうかはサブクラス側で保証する必要がある。
フィールドの概要 | |
---|---|
protected static java.lang.String |
PROPERTY_EXCEPTION_NULL
|
protected static java.lang.String |
RESOURCE_NAME
|
コンストラクタの概要 | |
---|---|
PFVariable()
|
メソッドの概要 | |
---|---|
void |
addPFDataSetListener(PFDataSetListener lis)
引数で与えられたイベントリスナを登録し、 データ設定イベント発生時に処理を行う対象とする。 |
int |
getComponentID()
コンポーネントIDを取得する。 |
java.lang.String |
getComponentKey()
コンポーネントキーを取得する。 |
PFMultiLocaleString |
getComponentKeys()
全ロケール分のコンポーネントキーを返す。 |
java.lang.String |
getComponentPublicName()
コンポーネント公開名を取得する. |
java.lang.String |
getComponentString()
コンポーネントの文字列表現を取得する。 |
java.lang.Object |
getDuplicateObject()
格納されているオブジェクトの複製を返す。 |
java.lang.String |
getName()
格納されているオブジェクトの名前を取得する。 |
protected java.lang.Object |
getObject()
格納されているオブジェクトを返す。 |
java.util.Iterator |
getPFDataSetListenerList()
データ設定イベントリスナ配列を取得する。 |
java.lang.Object |
getResult()
処理結果のオブジェクトを返す。 |
boolean |
hasInstanceOf(java.lang.String className)
格納されているオブジェクトが指定したクラスのインスタンスかどうかを判定する。 |
boolean |
hasResult()
処理結果のオブジェクトの有無をチェックする。 |
boolean |
isAllowPullTransfer()
他PFからのPull型コンポーネント転送要求に対する可否属性を取得する. |
boolean |
isAllowPushTransfer()
他PFへのPush型コンポーネント転送要求に対する可否属性を取得する. |
boolean |
isAllowRemoteInvocation()
他PFからのコンポーネント連携要求に対する可否属性を取得する. |
boolean |
isNull()
変数が空(null)かチェック |
void |
removePFDataSetListener(PFDataSetListener lis)
引数で与えられたイベントリスナを削除し、 データ設定イベント発生時に処理を行う対象から外す。 |
void |
setAllowPullTransfer(boolean flag)
他PFからのPull型コンポーネント転送要求に対する可否属性を設定する. |
void |
setAllowPushTransfer(boolean flag)
他PFへのPush型コンポーネント転送要求に対する可否属性を設定する. |
void |
setAllowRemoteInvocation(boolean flag)
他PFからのコンポーネント連携要求に対する可否属性を設定する. |
void |
setComponentID(int id)
コンポーネントIDを設定する。 |
void |
setComponentKey(java.lang.String key)
コンポーネントのキー情報を設定する |
void |
setComponentKeys(PFMultiLocaleString keys)
全ロケール分のコンポーネントキーを設定する。 |
void |
setComponentPublicName(java.lang.String publicName)
コンポーネント公開名を設定する. |
void |
setName(java.lang.String str)
格納されているオブジェクトに名前を設定する。 |
protected void |
setNull()
変数を空(null)にする。 |
protected void |
setObject(java.lang.Object obj)
オブジェクトを格納する。 |
protected void |
setObjectQuiet(java.lang.Object obj)
オブジェクトを格納する。 |
protected void |
setResult(java.lang.Object res)
処理結果のオブジェクトをセットする。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
インタフェース jp.go.aist.dmrc.platform.base.PFComponent から継承されたメソッド |
---|
getComponentName, localeUpdated |
フィールドの詳細 |
---|
protected static final java.lang.String RESOURCE_NAME
protected static final java.lang.String PROPERTY_EXCEPTION_NULL
コンストラクタの詳細 |
---|
public PFVariable()
メソッドの詳細 |
---|
public java.lang.String getComponentKey()
PFComponent
内の getComponentKey
PFComponent.getComponentKey()
public void setComponentKey(java.lang.String key)
PFComponent
内の setComponentKey
key
- 設定するコンポーネントのキーPFComponent.setComponentKey(java.lang.String)
public PFMultiLocaleString getComponentKeys()
public void setComponentKeys(PFMultiLocaleString keys)
keys
- 全ロケール分のコンポーネントキーpublic int getComponentID()
PFComponent
内の getComponentID
PFComponent.getComponentID()
public void setComponentID(int id)
PFComponentBus
から設定される。
各コンポーネント内では操作しないこと。
PFComponent
内の setComponentID
id
- 設定するコンポーネントIDPFComponent.setComponentID(int)
public java.lang.String getComponentString()
PFComponent
内の getComponentString
PFComponent.getComponentString()
public java.lang.String getComponentPublicName()
PFComponent
内の getComponentPublicName
public void setComponentPublicName(java.lang.String publicName) throws PFComponentException
PFComponent
内の setComponentPublicName
publicName
- 設定するコンポーネント公開名
PFComponentException
- 規約に反する名前が設定されようとした場合public boolean isAllowRemoteInvocation()
PFComponent
内の isAllowRemoteInvocation
public void setAllowRemoteInvocation(boolean flag)
PFComponent
内の setAllowRemoteInvocation
flag
- コンポーネント連携要求に対する可否public boolean isAllowPullTransfer()
PFComponent
内の isAllowPullTransfer
public void setAllowPullTransfer(boolean flag)
PFComponent
内の setAllowPullTransfer
flag
- Pull型コンポーネント転送要求に対する可否public boolean isAllowPushTransfer()
PFComponent
内の isAllowPushTransfer
public void setAllowPushTransfer(boolean flag)
PFComponent
内の setAllowPushTransfer
flag
- Push型コンポーネント転送要求に対する可否public java.util.Iterator getPFDataSetListenerList()
PFDataSetEventSource
内の getPFDataSetListenerList
public void addPFDataSetListener(PFDataSetListener lis)
PFDataSetEventSource
内の addPFDataSetListener
lis
- 追加対象イベントリスナpublic void removePFDataSetListener(PFDataSetListener lis)
PFDataSetEventSource
内の removePFDataSetListener
lis
- 削除対象イベントリスナprotected void setObject(java.lang.Object obj) throws PFException
obj
- 格納するオブジェクト
PFException
- イベント処理のエラーprotected void setObjectQuiet(java.lang.Object obj)
obj
- 格納するオブジェクトprotected java.lang.Object getObject()
public java.lang.Object getDuplicateObject() throws PFComponentException
PFComponentException
- シリアライズ失敗protected void setNull()
public boolean isNull()
public java.lang.Object getResult()
protected void setResult(java.lang.Object res)
res
- 結果public boolean hasResult()
public java.lang.String getName()
public void setName(java.lang.String str)
str
- 名前public boolean hasInstanceOf(java.lang.String className)
className
- クラス名
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |