|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
public interface HasControls
このインタフェースは、オブジェクトが NamingEnumerations で返されるとき、コントロールを返すのに使用されます。たとえば、サーバーが検索操作の結果を持つコントロールを送り返す場合、サービスプロバイダは、SearchResult および implement HasControls の両オブジェクトの NamingEnumeration を返します。
NamingEnumeration elts = ectx.search((Name)name, filter, sctls);
while (elts.hasMore()) {
Object entry = elts.next();
// Get search result
SearchResult res = (SearchResult)entry;
// do something with it
// Get entry controls
if (entry instanceof HasControls) {
Control[] entryCtls = ((HasControls)entry).getControls();
// do something with controls
}
}
| メソッドの概要 | |
|---|---|
Control[] |
getControls()
このインタフェースを実装するオブジェクトから Control の配列を取得します。 |
| メソッドの詳細 |
|---|
Control[] getControls()
throws NamingException
NamingException - エラーのためコントロールが返せない場合
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。