クラス CommonsXsdSchemaCollection
java.lang.ObjectSE
org.springframework.xml.xsd.commons.CommonsXsdSchemaCollection
- 実装済みのインターフェース一覧:
org.springframework.beans.factory.Aware、org.springframework.beans.factory.InitializingBean、org.springframework.context.ResourceLoaderAware、XsdSchemaCollection
public class CommonsXsdSchemaCollection
extends ObjectSE
implements XsdSchemaCollection, org.springframework.beans.factory.InitializingBean, org.springframework.context.ResourceLoaderAware
Apache WS-Commons XML スキーマを使用する
XsdSchemaCollection の実装。inline フラグを true に設定すると、参照されているすべてのスキーマ(含まれているスキーマとインポートされているスキーマ)が参照されているスキーマにマージされます。スキーマを WSDL に含める場合、これによりスキーマのデプロイが大幅に簡素化されます。
- 導入:
- 1.5.0
- 作成者:
- Arjen Poutsma
- 関連事項:
コンストラクター概要
コンストラクターコンストラクター説明CommonsXsdSchemaCollectionの新しい空のインスタンスを構築します。CommonsXsdSchemaCollection(org.springframework.core.io.Resource... resources) 指定されたリソースに基づいて、CommonsXsdSchemaCollectionの新しいインスタンスを構築します。方法の概要
修飾子と型メソッド説明voidこのコレクションに含まれるスキーマに基づいてXmlValidatorを作成します。このコレクションに含まれるすべてのスキーマを返します。voidsetInline(boolean inline) インクルードスキーマをインクルードスキーマにインライン化するかどうかを定義します。voidsetResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) voidsetUriResolver(org.apache.ws.commons.schema.resolver.URIResolver uriResolver) (相対)スキーマを解決するときに使用する WS-Commonsuri リゾルバーを設定します。voidsetXsds(org.springframework.core.io.Resource... xsdResources) ロードするスキーマリソースを設定します。toString()
コンストラクターの詳細
CommonsXsdSchemaCollection
public CommonsXsdSchemaCollection()CommonsXsdSchemaCollectionの新しい空のインスタンスを構築します。その後、
setXsds(Resource[])を呼び出す必要があります。CommonsXsdSchemaCollection
public CommonsXsdSchemaCollection(org.springframework.core.io.Resource... resources) 指定されたリソースに基づいて、CommonsXsdSchemaCollectionの新しいインスタンスを構築します。- パラメーター:
resources- ロードするスキーマリソース
メソッドの詳細
setXsds
public void setXsds(org.springframework.core.io.Resource... xsdResources) ロードするスキーマリソースを設定します。- パラメーター:
xsdResources- ロードするスキーマリソース
setInline
public void setInline(boolean inline) インクルードスキーマをインクルードスキーマにインライン化するかどうかを定義します。デフォルトは
falseです。setUriResolver
public void setUriResolver(org.apache.ws.commons.schema.resolver.URIResolver uriResolver) (相対)スキーマを解決するときに使用する WS-Commonsuri リゾルバーを設定します。デフォルトは、クラスパス上のスキーマを正しく処理する
DefaultURIResolverの内部サブクラスです。setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) - 次で指定:
- インターフェース
org.springframework.context.ResourceLoaderAwareのsetResourceLoader
afterPropertiesSet
- 次で指定:
- インターフェース
org.springframework.beans.factory.InitializingBeanのafterPropertiesSet - 例外:
IOExceptionSE
getXsdSchemas
インターフェースからコピーされた説明:XsdSchemaCollectionこのコレクションに含まれるすべてのスキーマを返します。- 次で指定:
- インターフェース
XsdSchemaCollectionのgetXsdSchemas - 戻り値:
- このコレクションに含まれるスキーマ
createValidator
インターフェースからコピーされた説明:XsdSchemaCollectionこのコレクションに含まれるスキーマに基づいてXmlValidatorを作成します。- 次で指定:
- インターフェース
XsdSchemaCollectionのcreateValidator - 戻り値:
- このコレクションのバリデーター
toString