クラス ParameterDescriptor
java.lang.ObjectSE
org.springframework.restdocs.snippet.AbstractDescriptor<ParameterDescriptor>
org.springframework.restdocs.snippet.IgnorableDescriptor<ParameterDescriptor>
org.springframework.restdocs.request.ParameterDescriptor
リクエストまたはパスパラメーターの記述子。
- 作成者:
- Andy Wilkinson
- 関連事項:
コンストラクターの概要
コンストラクター修飾子コンストラクター説明protectedParameterDescriptor(StringSE name) 指定されたnameでパラメーターを記述する新しいParameterDescriptorを作成します。方法の概要
修飾子と型メソッド説明final StringSEgetName()この記述子によって記述されているパラメーターの名前を返します。final boolean記述されたパラメーターがオプションの場合はtrueを返し、そうでない場合はfalseを返します。final ParameterDescriptoroptional()パラメーターをオプションとしてマークします。クラス IgnorableDescriptor から継承されたメソッド
ignored, isIgnoredクラス AbstractDescriptor から継承されたメソッド
attributes, description, getAttributes, getDescription
コンストラクターの詳細
ParameterDescriptor
指定されたnameでパラメーターを記述する新しいParameterDescriptorを作成します。- パラメーター:
name- パラメーターの名前
メソッドの詳細
optional
getName
isOptional
public final boolean isOptional()記述されたパラメーターがオプションの場合はtrueを返し、そうでない場合はfalseを返します。- 戻り値:
- 記述されたパラメーターがオプションの場合は
true、それ以外の場合はfalse