JavaTM Platform
Standard Ed. 6

javax.xml.soap
クラス SOAPElementFactory

java.lang.Object
  上位を拡張 javax.xml.soap.SOAPElementFactory

推奨されていません。 - SOAPElement の作成に javax.xml.soap.SOAPFactory を使用します。

public class SOAPElementFactory
extends Object

SOAPElementFactory は、最終的に SOAP 部分で終了する XML フラグメントのファクトリです。これらのフラグメントは、SOAPHeaderSOAPBodySOAPEnvelope の子として挿入できます。  

このファクトリを使用して作成された要素は、SOAP ヘッダードキュメント内部にある要素のプロパティーを保有していません。これらの要素は、挿入時に XML 文書ツリーにコピーされます。

関連項目:
SOAPFactory

メソッドの概要
 SOAPElement create(Name name)
          推奨されていません。 代わりに javax.xml.soap.SOAPFactory.createElement(javax.xml.soap.Name) を使用してください。
 SOAPElement create(String localName)
          推奨されていません。 代わりに javax.xml.soap.SOAPFactory.createElement(String localName) を使用してください。
 SOAPElement create(String localName, String prefix, String uri)
          推奨されていません。 代わりに javax.xml.soap.SOAPFactory.createElement(String localName, String prefix, String uri) を使用してください。
static SOAPElementFactory newInstance()
          推奨されていません。 SOAPElementFactory の新しいインスタンスを作成します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

create

public SOAPElement create(Name name)
                   throws SOAPException
推奨されていません。 代わりに javax.xml.soap.SOAPFactory.createElement(javax.xml.soap.Name) を使用してください。

指定の Name オブジェクトで初期化された SOAPElement オブジェクトを作成します。

パラメータ:
name - 新規要素の XML 名を持つ Name オブジェクト
戻り値:
作成された新しい SOAPElement オブジェクト
例外:
SOAPException - SOAPElement オブジェクトの作成でエラーが発生した場合
関連項目:
SOAPFactory.createElement(javax.xml.soap.Name), SOAPFactory.createElement(javax.xml.namespace.QName)

create

public SOAPElement create(String localName)
                   throws SOAPException
推奨されていません。 代わりに javax.xml.soap.SOAPFactory.createElement(String localName) を使用してください。

指定のローカル名で初期化された SOAPElement オブジェクトを作成します。

パラメータ:
localName - 新規要素のローカル名を示す String
戻り値:
作成された新しい SOAPElement オブジェクト
例外:
SOAPException - SOAPElement オブジェクトの作成でエラーが発生した場合
関連項目:
SOAPFactory.createElement(java.lang.String)

create

public SOAPElement create(String localName,
                          String prefix,
                          String uri)
                   throws SOAPException
推奨されていません。 代わりに javax.xml.soap.SOAPFactory.createElement(String localName, String prefix, String uri) を使用してください。

指定のローカル名、接頭辞、URI を保有する SOAPElement オブジェクトを作成します。

パラメータ:
localName - 新規要素のローカル名を示す String
prefix - この SOAPElement 用の接頭辞
uri - 新規要素が属する名前空間の URI を指定する String
例外:
SOAPException - SOAPElement オブジェクトの作成でエラーが発生した場合
関連項目:
SOAPFactory.createElement(java.lang.String, java.lang.String, java.lang.String)

newInstance

public static SOAPElementFactory newInstance()
                                      throws SOAPException
推奨されていません。 
SOAPElementFactory の新しいインスタンスを作成します。

戻り値:
SOAPElementFactory の新しいインスタンス
例外:
SOAPException - デフォルトの SOAPElementFactory の作成時にエラーが発生した場合

JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。