org.apache.commons.lang.builder
クラス ToStringStyle

java.lang.Object
  拡張org.apache.commons.lang.builder.ToStringStyle
すべての実装インタフェース:
Serializable
直系の既知のサブクラス:
StandardToStringStyle, ToStringStyle.DefaultToStringStyle, ToStringStyle.MultiLineToStringStyle, ToStringStyle.NoFieldNameToStringStyle, ToStringStyle.SimpleToStringStyle

public abstract class ToStringStyle
extends Object
implements Serializable

ToStringStyle は ToStringBuilder と共に動作し、toString を生成します。 主な public interface は常に ToStringBuilder を介して処理されます。

ToStringStyle works with ToStringBuilder to create a toString. The main public interface is always via ToStringBuilder.

このクラスはシングルトンで利用されることを意図されています。 毎回新しいスタイルのインスタンスを生成する必要はありません。 プログラムは一般的にあらかじめ定義された1つの静的なこのクラスを使用することになります。 代わりに StandardToStringStyle クラスを個々の設定に使用することができます。 このクラスの代わりに StandardToStringStyle クラスを使用すれば独自の設定を行うことが可能です。 従ってほとんどのスタイルはサブクラス化を行わなくても実現することができます。

These classes are intended to be used as singletons. There is no need to instantiate a new style each time. A program will generally use one of the predefined constants on this class. Alternatively, the {@link StandardToStringStyle} class can be used to set the individual settings. Thus most styles can be achieved without subclassing.

必要であれば、サブクラスは必要なだけメソッドをオーバライドすることが可能でです。 各オブジェクト型 (boolean や long や Object や int[] 等) は自身を出力するためのそれぞれのメソッドを持っています。 その内のほとんどは概要と詳細の2つのバージョンを持っています。 例えば、配列を対象とするメソッドの詳細バージョンは全ての内容を出力し、 概要の方は配列の長さだけ出力します。

If required, a subclass can override as many or as few of the methods as it requires.Each object type (from boolean to long to Object to int[]) has its own methods to output it. Most have two versions, detail and summary. For example, the detail version of the array based methods will output the whole array, whereas the summary method will just output the array length.

バージョン:
$Id: ToStringStyle.java,v 1.1.1.1 2004/02/13 10:02:05 hioki Exp $
作成者:
Stephen Colebourne
関連項目:
直列化された形式
翻訳者:
日置 聡
翻訳状況:
初稿(校正者募集中)
翻訳更新日:
2003/08/16

入れ子クラスの概要
private static class ToStringStyle.DefaultToStringStyle
          デフォルトの ToStringStyle です。
private static class ToStringStyle.MultiLineToStringStyle
          複数行で内容を表示する ToStringStyle です。
private static class ToStringStyle.NoFieldNameToStringStyle
          フィールド名を表示しない ToStringStyle です。
private static class ToStringStyle.SimpleToStringStyle
          クラス名、ハッシュコード、内容の開始記号、フィールド名を表示しないToStringStyle です。
 
フィールドの概要
private  boolean arrayContentDetail
          配列の詳細を表示するかどうか(初期値 'true')。
private  String arrayEnd
          配列表示の終了記号(初期値 '}')。
private  String arraySeparator
          配列の区切り文字(初期値 ',')。
private  String arrayStart
          配列表示の開始記号(初期値 '{')。
private  String contentEnd
          内容表示の終了記号(初期値 ']')。
private  String contentStart
          内容表示の開始記号(初期値 '[')。
static ToStringStyle DEFAULT_STYLE
          デフォルトの toString スタイル。
private  boolean defaultFullDetail
          fullDetail が null の場合に使用される値(初期値 'true')。
private  String fieldNameValueSeparator
          フィールドの名称と値の区切り文字(初期値 '=')。
private  String fieldSeparator
          フィールドの区切り文字(初期値 ',')。
static ToStringStyle MULTI_LINE_STYLE
          複数行表示する toString スタイル。
static ToStringStyle NO_FIELD_NAMES_STYLE
          フィールド名を表示しない toString スタイル。
private  String nullText
          null の文字列表現(初期値 '<null>')。
static ToStringStyle SIMPLE_STYLE
          シンプルな toString スタイル。
private  String sizeEndText
          サイズ表示の終了記号(初期値 '>')。
private  String sizeStartText
          サイズ表示の開始記号(初期値 '<size')。
private  String summaryObjectEndText
          オブジェクト情報の終了記号(初期値 '>')。
private  String summaryObjectStartText
          オブジェクト情報の開始記号(初期値 '<')。
private  boolean useClassName
          クラス名を使うかどうか(初期値 'true')。
private  boolean useFieldNames
          フィールド名を使うかどうか(初期値 'true')。
private  boolean useIdentityHashCode
          ハッシュコードを使うかどうか(初期値 'true')。
private  boolean useShortClassName
          短縮されたクラス名を使うかどうか(初期値 'false')。
 
コンストラクタの概要
protected ToStringStyle()
          コンストラクタ。
 
メソッドの概要
 void append(StringBuffer buffer, String fieldName, boolean value)
          toString に boolean の値を追加します。
 void append(StringBuffer buffer, String fieldName, boolean[] array, Boolean fullDetail)
          toString に boolean の配列を追加します。
 void append(StringBuffer buffer, String fieldName, byte value)
          toString に byte の値を追加します。
 void append(StringBuffer buffer, String fieldName, byte[] array, Boolean fullDetail)
          toString に byte の配列を追加します。
 void append(StringBuffer buffer, String fieldName, char value)
          toString に char の値を追加します。
 void append(StringBuffer buffer, String fieldName, char[] array, Boolean fullDetail)
          toString に char の配列を追加します。
 void append(StringBuffer buffer, String fieldName, double value)
          toString に double の値を追加します。
 void append(StringBuffer buffer, String fieldName, double[] array, Boolean fullDetail)
          toString に double の配列を追加します。
 void append(StringBuffer buffer, String fieldName, float value)
          toString に float の値を追加します。
 void append(StringBuffer buffer, String fieldName, float[] array, Boolean fullDetail)
          toString に float の配列を追加します。
 void append(StringBuffer buffer, String fieldName, int value)
          toString に int の値を追加します。
 void append(StringBuffer buffer, String fieldName, int[] array, Boolean fullDetail)
          toString に int の配列を追加します。
 void append(StringBuffer buffer, String fieldName, long value)
          toString に long の値を追加します。
 void append(StringBuffer buffer, String fieldName, long[] array, Boolean fullDetail)
          toString に long の配列を追加します。
 void append(StringBuffer buffer, String fieldName, Object[] array, Boolean fullDetail)
          toString にオブジェクトの配列を追加します。
 void append(StringBuffer buffer, String fieldName, Object value, Boolean fullDetail)
          toString にオブジェクトから生成された内容を追加します。
 void append(StringBuffer buffer, String fieldName, short value)
          toString に short の値を追加します。
 void append(StringBuffer buffer, String fieldName, short[] array, Boolean fullDetail)
          toString に short の配列を追加します。
protected  void appendClassName(StringBuffer buffer, Object object)
          クラス名を追加します。
protected  void appendContentEnd(StringBuffer buffer)
          バッファに内容の終了記号を追加します。
protected  void appendContentStart(StringBuffer buffer)
          バッファに内容の開始記号を追加します。
protected  void appendDetail(StringBuffer buffer, String fieldName, boolean value)
          toString に boolean の値を追加します。
protected  void appendDetail(StringBuffer buffer, String fieldName, boolean[] array)
          toString に boolean の配列の詳細を追加します。
protected  void appendDetail(StringBuffer buffer, String fieldName, byte value)
          toString に byte の値を追加します。
protected  void appendDetail(StringBuffer buffer, String fieldName, byte[] array)
          toString に byte の配列の詳細を追加します。
protected  void appendDetail(StringBuffer buffer, String fieldName, char value)
          toString に char の値を追加します。
protected  void appendDetail(StringBuffer buffer, String fieldName, char[] array)
          toString に char の配列の詳細を追加します。
protected  void appendDetail(StringBuffer buffer, String fieldName, Collection coll)
          toString に Collection を追加します。
protected  void appendDetail(StringBuffer buffer, String fieldName, double value)
          toString に double の値を追加します。
protected  void appendDetail(StringBuffer buffer, String fieldName, double[] array)
          toString に double の配列の詳細を追加します。
protected  void appendDetail(StringBuffer buffer, String fieldName, float value)
          toString に float の値を追加します。
protected  void appendDetail(StringBuffer buffer, String fieldName, float[] array)
          toString に float の配列の詳細を追加します。
protected  void appendDetail(StringBuffer buffer, String fieldName, int value)
          toString に int の値を追加します。
protected  void appendDetail(StringBuffer buffer, String fieldName, int[] array)
          toString に int の配列の詳細を追加します。
protected  void appendDetail(StringBuffer buffer, String fieldName, long value)
          toString に long の値を追加します。
protected  void appendDetail(StringBuffer buffer, String fieldName, long[] array)
          toString に long の配列の詳細を追加します。
protected  void appendDetail(StringBuffer buffer, String fieldName, Map map)
          toString に Map を追加します。
protected  void appendDetail(StringBuffer buffer, String fieldName, Object value)
          toString にオブジェクトの全ての詳細情報を追加します。
protected  void appendDetail(StringBuffer buffer, String fieldName, Object[] array)
          toString にオブジェクトの配列の詳細を追加します。
protected  void appendDetail(StringBuffer buffer, String fieldName, short value)
          toString に short の値を追加します。
protected  void appendDetail(StringBuffer buffer, String fieldName, short[] array)
          toString に short の配列の詳細を追加します。
 void appendEnd(StringBuffer buffer, Object object)
          データの終了指示を追加します。
protected  void appendFieldEnd(StringBuffer buffer, String fieldName)
          バッファにフィールドの終了を追加します。
protected  void appendFieldSeparator(StringBuffer buffer)
          バッファにフィールドの区切り文字を追加します。
protected  void appendFieldStart(StringBuffer buffer, String fieldName)
          バッファにフィールドの開始を追加します。
protected  void appendIdentityHashCode(StringBuffer buffer, Object object)
          ハッシュコードを追加します。
protected  void appendInternal(StringBuffer buffer, String fieldName, Object value, boolean detail)
          toString にオブジェクトの情報をその型を判断して追加します。
protected  void appendNullText(StringBuffer buffer, String fieldName)
          バッファに null を示す記号を追加します。
 void appendStart(StringBuffer buffer, Object object)
          データの開始指示を追加します。
protected  void appendSummary(StringBuffer buffer, String fieldName, boolean[] array)
          toString に boolean の配列の概要を追加します。
protected  void appendSummary(StringBuffer buffer, String fieldName, byte[] array)
          toString に byte の配列の概要を追加します。
protected  void appendSummary(StringBuffer buffer, String fieldName, char[] array)
          toString に char の配列の概要を追加します。
protected  void appendSummary(StringBuffer buffer, String fieldName, double[] array)
          toString に double の配列の概要を追加します。
protected  void appendSummary(StringBuffer buffer, String fieldName, float[] array)
          toString に float の配列の概要を追加します。
protected  void appendSummary(StringBuffer buffer, String fieldName, int[] array)
          toString に int の配列の概要を追加します。
protected  void appendSummary(StringBuffer buffer, String fieldName, long[] array)
          toString に long の配列の概要を追加します。
protected  void appendSummary(StringBuffer buffer, String fieldName, Object value)
          toString にオブジェクトの概要を追加します。
protected  void appendSummary(StringBuffer buffer, String fieldName, Object[] array)
          toString にオブジェクトの配列の概要を追加します。
protected  void appendSummary(StringBuffer buffer, String fieldName, short[] array)
          toString に short の配列の概要を追加します。
protected  void appendSummarySize(StringBuffer buffer, String fieldName, int size)
          toString にサイズの概要を追加します。
protected  String getArrayEnd()
          配列の終了を示すテキストを取得します。
protected  String getArraySeparator()
          配列の区切り文字を取得します。
protected  String getArrayStart()
          配列の開始を示すテキストを取得します。
protected  String getContentEnd()
          内容の終了を示すテキストを取得します。
protected  String getContentStart()
          内容の開始を示すテキストを取得します。
protected  String getFieldNameValueSeparator()
          フィールドの名前と値の区切り文字を取得します。
protected  String getFieldSeparator()
          フィールドの区切り文字を取得します。
protected  String getNullText()
          null が見つかった場合に出力されるテキストを取得します。
protected  String getShortClassName(Class cls)
          クラスの短縮名を取得します。
protected  String getSizeEndText()
          Collection、Map または Array のサイズを出力する際のテキストを取得します。
protected  String getSizeStartText()
          Collection、Map または Array のサイズを出力する際のテキストを取得します。
protected  String getSummaryObjectEndText()
          オブジェクトの概要を出力する際のテキストを取得します。
protected  String getSummaryObjectStartText()
          オブジェクトの概要を出力する際のテキストを取得します。
protected  boolean isArrayContentDetail()
          配列の詳細な内容を出力するかどうかを取得します。
protected  boolean isDefaultFullDetail()
          明示されなかった場合に詳細情報を(デフォルトで)出力するかどうかを取得します。
protected  boolean isFullDetail(Boolean fullDetailRequest)
          この(クラスの)フィールドの詳細を出力するかどうかをチェックします。
protected  boolean isShortClassName()
          クラスの短縮名を使用するかフルネームを使用するかを取得します。
protected  boolean isUseClassName()
          クラス名を使用するかどうかを取得します。
protected  boolean isUseFieldNames()
          入力されたフィールド名を使用するかどうかを取得します。
protected  boolean isUseIdentityHashCode()
          ハッシュコードを使用するかどうかを取得します。
protected  void setArrayContentDetail(boolean arrayContentDetail)
          配列の詳細な内容を出力するかどうかを設定します。
protected  void setArrayEnd(String arrayEnd)
          配列の終了を示すテキストを設定します。
protected  void setArraySeparator(String arraySeparator)
          配列の区切り文字を設定します。
protected  void setArrayStart(String arrayStart)
          配列の開始を示すテキストを設定します。
protected  void setContentEnd(String contentEnd)
          内容の終了を示すテキストを設定します。
protected  void setContentStart(String contentStart)
          内容の開始を示すテキストを設定します。
protected  void setDefaultFullDetail(boolean defaultFullDetail)
          明示されなかった場合に詳細情報を(デフォルトで)出力するかどうかを設定します。
protected  void setFieldNameValueSeparator(String fieldNameValueSeparator)
          フィールドの名前と値の区切り文字を設定します。
protected  void setFieldSeparator(String fieldSeparator)
          フィールドの区切り文字を設定します。
protected  void setNullText(String nullText)
          null が見つかった場合に出力されるテキストを設定します。
protected  void setShortClassName(boolean shortClassName)
          クラスの短縮名を使用するかフルネームを使用するかを設定します。
protected  void setSizeEndText(String sizeEndText)
          Collection、Map または Array のサイズを出力する際のテキストを設定します。
protected  void setSizeStartText(String sizeStartText)
          Collection、Map または Array のサイズを出力する際のテキストを設定します。
protected  void setSummaryObjectEndText(String summaryObjectEndText)
          オブジェクトの概要を出力する際のテキストを設定します。
protected  void setSummaryObjectStartText(String summaryObjectStartText)
          オブジェクトの概要を出力する際のテキストを設定します。
protected  void setUseClassName(boolean useClassName)
          クラス名を使用するかどうかを設定します。
protected  void setUseFieldNames(boolean useFieldNames)
          入力されたフィールド名を使用するかどうかを設定します。
protected  void setUseIdentityHashCode(boolean useIdentityHashCode)
          ハッシュコードを使用するかどうかを設定します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

DEFAULT_STYLE

public static final ToStringStyle DEFAULT_STYLE
デフォルトの toString スタイル。
The default toString style.


MULTI_LINE_STYLE

public static final ToStringStyle MULTI_LINE_STYLE
複数行表示する toString スタイル。
The multi line toString style.


NO_FIELD_NAMES_STYLE

public static final ToStringStyle NO_FIELD_NAMES_STYLE
フィールド名を表示しない toString スタイル。
The no field names toString style.


SIMPLE_STYLE

public static final ToStringStyle SIMPLE_STYLE
シンプルな toString スタイル。
The simple toString style.


useFieldNames

private boolean useFieldNames
フィールド名を使うかどうか(初期値 'true')。
Whether to use the field names 'true'


useClassName

private boolean useClassName
クラス名を使うかどうか(初期値 'true')。
Whether to use the class name 'true'


useShortClassName

private boolean useShortClassName
短縮されたクラス名を使うかどうか(初期値 'false')。
Whether to use short class names 'false'


useIdentityHashCode

private boolean useIdentityHashCode
ハッシュコードを使うかどうか(初期値 'true')。
Whether to use the identity hash code 'true'


contentStart

private String contentStart
内容表示の開始記号(初期値 '[')。
The content start '['


contentEnd

private String contentEnd
内容表示の終了記号(初期値 ']')。
The content end ']'


fieldNameValueSeparator

private String fieldNameValueSeparator
フィールドの名称と値の区切り文字(初期値 '=')。
The field name value separator '='


fieldSeparator

private String fieldSeparator
フィールドの区切り文字(初期値 ',')。
The field separator ','


arrayStart

private String arrayStart
配列表示の開始記号(初期値 '{')。
The array start '{'


arraySeparator

private String arraySeparator
配列の区切り文字(初期値 ',')。
The array separator ','


arrayContentDetail

private boolean arrayContentDetail
配列の詳細を表示するかどうか(初期値 'true')。
The detail for array content 'true'


arrayEnd

private String arrayEnd
配列表示の終了記号(初期値 '}')。
The array end '}'


defaultFullDetail

private boolean defaultFullDetail
fullDetail が null の場合に使用される値(初期値 'true')。
The value to use when fullDetail is null 'true'


nullText

private String nullText
null の文字列表現(初期値 '<null>')。
The null text '<null>'


sizeStartText

private String sizeStartText
サイズ表示の開始記号(初期値 '<size')。
The summary size text start '<size'


sizeEndText

private String sizeEndText
サイズ表示の終了記号(初期値 '>')。
The summary size text start '>'


summaryObjectStartText

private String summaryObjectStartText
オブジェクト情報の開始記号(初期値 '<')。
The summary object text start '<'


summaryObjectEndText

private String summaryObjectEndText
オブジェクト情報の終了記号(初期値 '>')。
The summary object text start '>'

コンストラクタの詳細

ToStringStyle

protected ToStringStyle()
コンストラクタ。
Constructor.

メソッドの詳細

appendStart

public void appendStart(StringBuffer buffer,
                        Object object)
データの開始指示を追加します。
Append the start of data indicator.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
object - toString を生成する際に対象となるオブジェクト、null でない必要があります。
the object to build a toString for, must not be null

appendEnd

public void appendEnd(StringBuffer buffer,
                      Object object)
データの終了指示を追加します。
Append the end of data indicator.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
object - toString を生成する際に対象となるオブジェクト、null でない必要があります。
the object to build a toString for, must not be null

append

public void append(StringBuffer buffer,
                   String fieldName,
                   Object value,
                   Boolean fullDetail)
toString にオブジェクトから生成された内容を追加します。
Append to the toString an Object value, printing the full toString of the object passed in.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名
the field name
value - toString に追加する値
the value to add to the toString
fullDetail - true なら詳細情報、 false なら概要、 null ならスタイルの設定に依存
true for detail, false for summary info, null for style decides

appendInternal

protected void appendInternal(StringBuffer buffer,
                              String fieldName,
                              Object value,
                              boolean detail)
toString にオブジェクトの情報をその型を判断して追加します。
Append to the toString an Object, correctly interpretting its type.

このメソッドはクラス型が配列、コレクション、マップ、オブジェクトの順に該当するメソッドを 指定された詳細または概要のレベルで判断し、使用します。

This method performs the main lookup by Class type to correctly route arrays, collections, maps and objects to the appropriate method. Either detail or summary views can be specified.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
value - toString に追加する( null でない)値
the value to add to the toString, not null
detail - 詳細を表示するかどうか
output detail or not

appendDetail

protected void appendDetail(StringBuffer buffer,
                            String fieldName,
                            Object value)
toString にオブジェクトの全ての詳細情報を追加します。
Append to the toString an Object value, printing the full detail of the object.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
value - toString に追加する( null でない)値
the value to add to the toString, not null

appendDetail

protected void appendDetail(StringBuffer buffer,
                            String fieldName,
                            Collection coll)
toString に Collection を追加します。
Append to the toString a Collection.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
coll - toString に追加する( null でない)コレクション
the collection to add to the toString, not null

appendDetail

protected void appendDetail(StringBuffer buffer,
                            String fieldName,
                            Map map)
toString に Map を追加します。
Append to the toString a Map.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
map - toString に追加する( null でない)マップ
the maps to add to the toString, not null

appendSummary

protected void appendSummary(StringBuffer buffer,
                             String fieldName,
                             Object value)
toString にオブジェクトの概要を追加します。
Append to the toString an Object value, printing a summary of the object.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
value - toString に追加する( null でない)値
the value to add to the toString, not null

append

public void append(StringBuffer buffer,
                   String fieldName,
                   long value)
toString に long の値を追加します。
Append to the toString a long value.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名
the field name
value - toString に追加する値
the value to add to the toString

appendDetail

protected void appendDetail(StringBuffer buffer,
                            String fieldName,
                            long value)
toString に long の値を追加します。
Append to the toString a long value.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
value - toString に追加する値
the value to add to the toString

append

public void append(StringBuffer buffer,
                   String fieldName,
                   int value)
toString に int の値を追加します。
Append to the toString an int value.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名
the field name
value - toString に追加する値
the value to add to the toString

appendDetail

protected void appendDetail(StringBuffer buffer,
                            String fieldName,
                            int value)
toString に int の値を追加します。
Append to the toString an int value.

パラメータ:
buffer - the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
value - toString に追加する値
the value to add to the toString

append

public void append(StringBuffer buffer,
                   String fieldName,
                   short value)
toString に short の値を追加します。
Append to the toString a short value.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名
the field name
value - toString に追加する値
the value to add to the toString

appendDetail

protected void appendDetail(StringBuffer buffer,
                            String fieldName,
                            short value)
toString に short の値を追加します。
Append to the toString a short value.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
value - toString に追加する値
the value to add to the toString

append

public void append(StringBuffer buffer,
                   String fieldName,
                   byte value)
toString に byte の値を追加します。
Append to the toString a byte value.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名
the field name
value - toString に追加する値
the value to add to the toString

appendDetail

protected void appendDetail(StringBuffer buffer,
                            String fieldName,
                            byte value)
toString に byte の値を追加します。
Append to the toString a byte value.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
value - toString に追加する値
the value to add to the toString

append

public void append(StringBuffer buffer,
                   String fieldName,
                   char value)
toString に char の値を追加します。
Append to the toString a char value.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名
the field name
value - toString に追加する値
the value to add to the toString

appendDetail

protected void appendDetail(StringBuffer buffer,
                            String fieldName,
                            char value)
toString に char の値を追加します。
Append to the toString a char value.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
value - toString に追加する値
the value to add to the toString

append

public void append(StringBuffer buffer,
                   String fieldName,
                   double value)
toString に double の値を追加します。
Append to the toString a double value.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名
the field name
value - toString に追加する値
the value to add to the toString

appendDetail

protected void appendDetail(StringBuffer buffer,
                            String fieldName,
                            double value)
toString に double の値を追加します。
Append to the toString a double value.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
value - toString に追加する値
the value to add to the toString

append

public void append(StringBuffer buffer,
                   String fieldName,
                   float value)
toString に float の値を追加します。
Append to the toString a float value.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名
the field name
value - toString に追加する値
the value to add to the toString

appendDetail

protected void appendDetail(StringBuffer buffer,
                            String fieldName,
                            float value)
toString に float の値を追加します。
Append to the toString a float value.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
value - toString に追加する値
the value to add to the toString

append

public void append(StringBuffer buffer,
                   String fieldName,
                   boolean value)
toString に boolean の値を追加します。
Append to the toString a boolean value.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名
the field name
value - toString に追加する値
the value to add to the toString

appendDetail

protected void appendDetail(StringBuffer buffer,
                            String fieldName,
                            boolean value)
toString に boolean の値を追加します。
Append to the toString a boolean value.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
value - toString に追加する値
the value to add to the toString

append

public void append(StringBuffer buffer,
                   String fieldName,
                   Object[] array,
                   Boolean fullDetail)
toString にオブジェクトの配列を追加します。
Append to the toString an Object array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名
the field name
array - the array to add to the toString
fullDetail - true なら詳細情報、 false なら概要、 null ならスタイルの設定に依存
true for detail, false for summary info, null for style decides

appendDetail

protected void appendDetail(StringBuffer buffer,
                            String fieldName,
                            Object[] array)
toString にオブジェクトの配列の詳細を追加します。
Append to the toString the detail of an Object array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
array - toString に追加する( null でない)配列
the array to add to the toString, not null

appendSummary

protected void appendSummary(StringBuffer buffer,
                             String fieldName,
                             Object[] array)
toString にオブジェクトの配列の概要を追加します。
Append to the toString a summary of an Object array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
array - toString に追加する( null でない)配列
the array to add to the toString, not null

append

public void append(StringBuffer buffer,
                   String fieldName,
                   long[] array,
                   Boolean fullDetail)
toString に long の配列を追加します。
Append to the toString a long array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名
the field name
array - the array to add to the toString
fullDetail - true なら詳細情報、 false なら概要、 null ならスタイルの設定に依存
true for detail, false for summary info, null for style decides

appendDetail

protected void appendDetail(StringBuffer buffer,
                            String fieldName,
                            long[] array)
toString に long の配列の詳細を追加します。
Append to the toString the detail of a long array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
array - toString に追加する( null でない)配列
the array to add to the toString, not null

appendSummary

protected void appendSummary(StringBuffer buffer,
                             String fieldName,
                             long[] array)
toString に long の配列の概要を追加します。
Append to the toString a summary of a long array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
array - toString に追加する( null でない)配列
the array to add to the toString, not null

append

public void append(StringBuffer buffer,
                   String fieldName,
                   int[] array,
                   Boolean fullDetail)
toString に int の配列を追加します。
Append to the toString an int array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名
the field name
array - the array to add to the toString
fullDetail - true なら詳細情報、 false なら概要、 null ならスタイルの設定に依存
true for detail, false for summary info, null for style decides

appendDetail

protected void appendDetail(StringBuffer buffer,
                            String fieldName,
                            int[] array)
toString に int の配列の詳細を追加します。
Append to the toString the detail of an int array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
array - toString に追加する( null でない)配列
the array to add to the toString, not null

appendSummary

protected void appendSummary(StringBuffer buffer,
                             String fieldName,
                             int[] array)
toString に int の配列の概要を追加します。
Append to the toString a summary of an int array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
array - toString に追加する( null でない)配列
the array to add to the toString, not null

append

public void append(StringBuffer buffer,
                   String fieldName,
                   short[] array,
                   Boolean fullDetail)
toString に short の配列を追加します。
Append to the toString a short array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名
the field name
array - the array to add to the toString
fullDetail - true なら詳細情報、 false なら概要、 null ならスタイルの設定に依存
true for detail, false for summary info, null for style decides

appendDetail

protected void appendDetail(StringBuffer buffer,
                            String fieldName,
                            short[] array)
toString に short の配列の詳細を追加します。
Append to the toString the detail of a short array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
array - toString に追加する( null でない)配列
the array to add to the toString, not null

appendSummary

protected void appendSummary(StringBuffer buffer,
                             String fieldName,
                             short[] array)
toString に short の配列の概要を追加します。
Append to the toString a summary of a short array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
array - toString に追加する( null でない)配列
the array to add to the toString, not null

append

public void append(StringBuffer buffer,
                   String fieldName,
                   byte[] array,
                   Boolean fullDetail)
toString に byte の配列を追加します。
Append to the toString a byte array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名
the field name
array - the array to add to the toString
fullDetail - true なら詳細情報、 false なら概要、 null ならスタイルの設定に依存
true for detail, false for summary info, null for style decides

appendDetail

protected void appendDetail(StringBuffer buffer,
                            String fieldName,
                            byte[] array)
toString に byte の配列の詳細を追加します。
Append to the toString the detail of a byte array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
array - toString に追加する( null でない)配列
the array to add to the toString, not null

appendSummary

protected void appendSummary(StringBuffer buffer,
                             String fieldName,
                             byte[] array)
toString に byte の配列の概要を追加します。
Append to the toString a summary of a byte array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
array - toString に追加する( null でない)配列
the array to add to the toString, not null

append

public void append(StringBuffer buffer,
                   String fieldName,
                   char[] array,
                   Boolean fullDetail)
toString に char の配列を追加します。
Append to the toString a char array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名
the field name
array - the array to add to the toString
fullDetail - true なら詳細情報、 false なら概要、 null ならスタイルの設定に依存
true for detail, false for summary info, null for style decides

appendDetail

protected void appendDetail(StringBuffer buffer,
                            String fieldName,
                            char[] array)
toString に char の配列の詳細を追加します。
Append to the toString the detail of a char array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
array - toString に追加する( null でない)配列
the array to add to the toString, not null

appendSummary

protected void appendSummary(StringBuffer buffer,
                             String fieldName,
                             char[] array)
toString に char の配列の概要を追加します。
Append to the toString a summary of a char array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
array - toString に追加する( null でない)配列
the array to add to the toString, not null

append

public void append(StringBuffer buffer,
                   String fieldName,
                   double[] array,
                   Boolean fullDetail)
toString に double の配列を追加します。
Append to the toString a double array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名
the field name
array - the array to add to the toString
fullDetail - true なら詳細情報、 false なら概要、 null ならスタイルの設定に依存
true for detail, false for summary info, null for style decides

appendDetail

protected void appendDetail(StringBuffer buffer,
                            String fieldName,
                            double[] array)
toString に double の配列の詳細を追加します。
Append to the toString the detail of a double array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
array - toString に追加する( null でない)配列
the array to add to the toString, not null

appendSummary

protected void appendSummary(StringBuffer buffer,
                             String fieldName,
                             double[] array)
toString に double の配列の概要を追加します。
Append to the toString a summary of a double array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
array - toString に追加する( null でない)配列
the array to add to the toString, not null

append

public void append(StringBuffer buffer,
                   String fieldName,
                   float[] array,
                   Boolean fullDetail)
toString に float の配列を追加します。
Append to the toString a float array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名
the field name
array - the array to add to the toString
fullDetail - true なら詳細情報、 false なら概要、 null ならスタイルの設定に依存
true for detail, false for summary info, null for style decides

appendDetail

protected void appendDetail(StringBuffer buffer,
                            String fieldName,
                            float[] array)
toString に float の配列の詳細を追加します。
Append to the toString the detail of a float array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
array - toString に追加する( null でない)配列
the array to add to the toString, not null

appendSummary

protected void appendSummary(StringBuffer buffer,
                             String fieldName,
                             float[] array)
toString に float の配列の概要を追加します。
Append to the toString a summary of a float array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
array - toString に追加する( null でない)配列
the array to add to the toString, not null

append

public void append(StringBuffer buffer,
                   String fieldName,
                   boolean[] array,
                   Boolean fullDetail)
toString に boolean の配列を追加します。
Append to the toString a boolean array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名
the field name
array - the array to add to the toString
fullDetail - true なら詳細情報、 false なら概要、 null ならスタイルの設定に依存
true for detail, false for summary info, null for style decides

appendDetail

protected void appendDetail(StringBuffer buffer,
                            String fieldName,
                            boolean[] array)
toString に boolean の配列の詳細を追加します。
Append to the toString the detail of a boolean array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
array - toString に追加する( null でない)配列
the array to add to the toString, not null

appendSummary

protected void appendSummary(StringBuffer buffer,
                             String fieldName,
                             boolean[] array)
toString に boolean の配列の概要を追加します。
Append to the toString a summary of a boolean array.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
array - toString に追加する( null でない)配列
the array to add to the toString, not null

appendClassName

protected void appendClassName(StringBuffer buffer,
                               Object object)
クラス名を追加します。
Append the class name.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
object - 名前を出力するオブジェクト
the object whose name to output

appendIdentityHashCode

protected void appendIdentityHashCode(StringBuffer buffer,
                                      Object object)
ハッシュコードを追加します。
Append the IdentityHashCode.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
object - IDを出力するオブジェクト
the object whose id to output

appendContentStart

protected void appendContentStart(StringBuffer buffer)
バッファに内容の開始記号を追加します。
Append the content start to the buffer.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate

appendContentEnd

protected void appendContentEnd(StringBuffer buffer)
バッファに内容の終了記号を追加します。
Append the content end to the buffer.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate

appendNullText

protected void appendNullText(StringBuffer buffer,
                              String fieldName)
バッファに null を示す記号を追加します。 デフォルトの出力は '<null>' です。
Append an indicator for null to the buffer. Default output is '<null>'.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended

appendFieldSeparator

protected void appendFieldSeparator(StringBuffer buffer)
バッファにフィールドの区切り文字を追加します。
Append the field separator to the buffer.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate

appendFieldStart

protected void appendFieldStart(StringBuffer buffer,
                                String fieldName)
バッファにフィールドの開始を追加します。
Append the field start to the buffer.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名
the field name

appendFieldEnd

protected void appendFieldEnd(StringBuffer buffer,
                              String fieldName)
バッファにフィールドの終了を追加します。
Append the field end to the buffer.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended

appendSummarySize

protected void appendSummarySize(StringBuffer buffer,
                                 String fieldName,
                                 int size)
toString にサイズの概要を追加します。
Append to the toString a size summary.

このサイズの概要はコレクション、マップ、配列を要約する際に使用されます。 出力されるテキストはサイズの開始記号、渡されたサイズ、終了記号です。 デフォルトのフォーマットは '<size=n>' です。

The size summary is used to summarize the contents of collections, maps and arrays. The text output is a prefix, the size (passed in) and a suffix. The default format is '<size=n>'.

パラメータ:
buffer - 出力先となる StringBuffer
the StringBuffer to populate
fieldName - フィールド名、既に追加されている場合には使用されません
the field name, typically not used as already appended
size - 追加するサイズ
the size to append

isFullDetail

protected boolean isFullDetail(Boolean fullDetailRequest)
この(クラスの)フィールドの詳細を出力するかどうかをチェックします。
Is this field to be output in full detail.

このメソッドは詳細表示の要求を詳細表示レベルに変換します。 詳細情報の表示(true)を設定しても、サブクラスはこれを無視して必ず false を返す可能性があります。 null が渡された場合には詳細表示レベルを指定しないことを意味します。 この場合にはデフォルトの詳細表示レベルが適用されます。

This method converts a detail request into a detail level. The calling code may request full detail (true), but a subclass might ignore that and always return false. The calling code may pass in null indicating that it doesn't care about the detail level. In this case the default detail level is used.

パラメータ:
fullDetailRequest - 要求された詳細表示レベル
the detail level requested
戻り値:
詳細情報を表示するかどうか
whether full detail is to be shown

getShortClassName

protected String getShortClassName(Class cls)
クラスの短縮名を取得します。
Gets the short class name for a class.

クラスの短縮名はパッケージ名が省かれたものとなります。

The short class name is the name excluding the package name.

パラメータ:
cls - 短縮名を取得するクラス
the class to get the short name of
戻り値:
短縮名
the short name

isUseClassName

protected boolean isUseClassName()
クラス名を使用するかどうかを取得します。
Gets whether to use the class name.

戻り値:
現在の useClassName フラグ
the current useClassName flag

setUseClassName

protected void setUseClassName(boolean useClassName)
クラス名を使用するかどうかを設定します。
Sets whether to use the class name.

パラメータ:
useClassName - 新たな useClassName フラグ
the new useClassName flag

isShortClassName

protected boolean isShortClassName()
クラスの短縮名を使用するかフルネームを使用するかを取得します。
Gets whether to output short or long class names.

戻り値:
現在の shortClassName フラグ
the current shortClassName flag

setShortClassName

protected void setShortClassName(boolean shortClassName)
クラスの短縮名を使用するかフルネームを使用するかを設定します。
Sets whether to output short or long class names.

パラメータ:
shortClassName - 新たな shortClassName フラグ
shortClassName the new shortClassName flag

isUseIdentityHashCode

protected boolean isUseIdentityHashCode()
ハッシュコードを使用するかどうかを取得します。
Gets whether to use the identity hash code.

戻り値:
現在の useIdentityHashCode フラグ
the current useIdentityHashCode flag

setUseIdentityHashCode

protected void setUseIdentityHashCode(boolean useIdentityHashCode)
ハッシュコードを使用するかどうかを設定します。
Sets whether to use the identity hash code.

パラメータ:
useIdentityHashCode - 新たな useIdentityHashCode フラグ
useIdentityHashCode the new useIdentityHashCode flag

isUseFieldNames

protected boolean isUseFieldNames()
入力されたフィールド名を使用するかどうかを取得します。
Gets whether to use the field names passed in.

戻り値:
現在の useFieldNames フラグ
the current useFieldNames flag

setUseFieldNames

protected void setUseFieldNames(boolean useFieldNames)
入力されたフィールド名を使用するかどうかを設定します。
Sets whether to use the field names passed in.

パラメータ:
useFieldNames - 新たな useFieldNames フラグ
the new useFieldNames flag

isDefaultFullDetail

protected boolean isDefaultFullDetail()
明示されなかった場合に詳細情報を(デフォルトで)出力するかどうかを取得します。
Gets whether to use full detail when the caller doesn't specify.

戻り値:
現在の defaultFullDetail フラグ
the current defaultFullDetail flag

setDefaultFullDetail

protected void setDefaultFullDetail(boolean defaultFullDetail)
明示されなかった場合に詳細情報を(デフォルトで)出力するかどうかを設定します。
Sets whether to use full detail when the caller doesn't specify.

パラメータ:
defaultFullDetail - 新たな defaultFullDetail フラグ
the new defaultFullDetail flag

isArrayContentDetail

protected boolean isArrayContentDetail()
配列の詳細な内容を出力するかどうかを取得します。
Gets whether to output array content detail.

戻り値:
現在の配列の詳細な内容の設定
the current array content detail setting

setArrayContentDetail

protected void setArrayContentDetail(boolean arrayContentDetail)
配列の詳細な内容を出力するかどうかを設定します。
Sets whether to output array content detail.

パラメータ:
arrayContentDetail - 新たな arrayContentDetail フラグ
the new arrayContentDetail flag

getArrayStart

protected String getArrayStart()
配列の開始を示すテキストを取得します。
Gets the array start text.

戻り値:
現在の配列の開始を示すテキスト
the current array start text

setArrayStart

protected void setArrayStart(String arrayStart)
配列の開始を示すテキストを設定します。 nullの入力は受け付けられますが、これは空の文字列に変換されます。
Sets the array start text. Null is accepted, but will be converted to a blank string.

パラメータ:
arrayStart - 新たな配列の開始を示すテキスト
the new array start text

getArrayEnd

protected String getArrayEnd()
配列の終了を示すテキストを取得します。
Gets the array end text.

戻り値:
現在の配列の終了を示すテキスト
the current array end text

setArrayEnd

protected void setArrayEnd(String arrayEnd)
配列の終了を示すテキストを設定します。 nullの入力は受け付けられますが、これは空の文字列に変換されます。
Sets the array end text.
Null is accepted, but will be converted to a blank string.

パラメータ:
arrayEnd - 新たな配列の終了を示すテキスト
the new array end text

getArraySeparator

protected String getArraySeparator()
配列の区切り文字を取得します。
Gets the array separator text.

戻り値:
現在の配列の区切り文字
the current array separator text

setArraySeparator

protected void setArraySeparator(String arraySeparator)
配列の区切り文字を設定します。 nullの入力は受け付けられますが、これは空の文字列に変換されます。
Sets the array separator text. Null is accepted, but will be converted to a blank string.

パラメータ:
arraySeparator - 新たな配列の区切り文字
the new array separator text

getContentStart

protected String getContentStart()
内容の開始を示すテキストを取得します。
Gets the content start text.

戻り値:
現在の内容の開始を示すテキスト
the current content start text

setContentStart

protected void setContentStart(String contentStart)
内容の開始を示すテキストを設定します。 nullの入力は受け付けられますが、これは空の文字列に変換されます。
Sets the content start text. Null is accepted, but will be converted to a blank string.

パラメータ:
contentStart - 新たな内容の開始を示すテキスト
the new content start text

getContentEnd

protected String getContentEnd()
内容の終了を示すテキストを取得します。
Gets the content end text.

戻り値:
現在の内容の終了を示すテキスト
the current content end text

setContentEnd

protected void setContentEnd(String contentEnd)
内容の終了を示すテキストを設定します。 nullの入力は受け付けられますが、これは空の文字列に変換されます。
Sets the content end text. Null is accepted, but will be converted to a blank string.

パラメータ:
contentEnd - 新たな内容の終了を示すテキスト
the new content end text

getFieldNameValueSeparator

protected String getFieldNameValueSeparator()
フィールドの名前と値の区切り文字を取得します。
Gets the field name value separator text.

戻り値:
現在のフィールドの名前と値の区切り文字
the current field name value separator text

setFieldNameValueSeparator

protected void setFieldNameValueSeparator(String fieldNameValueSeparator)
フィールドの名前と値の区切り文字を設定します。 nullの入力は受け付けられますが、これは空の文字列に変換されます。
Sets the field name value separator text. Null is accepted, but will be converted to a blank string.

パラメータ:
fieldNameValueSeparator - 新たなフィールドの名前と値の区切り文字
the new field name value separator text

getFieldSeparator

protected String getFieldSeparator()
フィールドの区切り文字を取得します。
Gets the field separator text.

戻り値:
現在のフィールドの区切り文字
the current field separator text

setFieldSeparator

protected void setFieldSeparator(String fieldSeparator)
フィールドの区切り文字を設定します。 nullの入力は受け付けられますが、これは空の文字列に変換されます。
Sets the field separator text. Null is accepted, but will be converted to a blank string.

パラメータ:
fieldSeparator - 新たなフィールドの区切り文字
the new field separator text

getNullText

protected String getNullText()
null が見つかった場合に出力されるテキストを取得します。
Gets the text to output when null found.

戻り値:
現在の null が見つかった場合のテキスト
the current text to output when null found

setNullText

protected void setNullText(String nullText)
null が見つかった場合に出力されるテキストを設定します。 nullの入力は受け付けられますが、これは空の文字列に変換されます。
Sets the text to output when null found. Null is accepted, but will be converted to a blank string.

パラメータ:
nullText - 新たな null が見つかった場合のテキスト
the new text to output when null found

getSizeStartText

protected String getSizeStartText()
Collection、Map または Array のサイズを出力する際のテキストを取得します。 これはサイズの値の前に出力されます。
Gets the text to output when a Collection, Map or Array size is output. This is output before the size value.

戻り値:
現在のサイズ開始のテキスト
the current start of size text

setSizeStartText

protected void setSizeStartText(String sizeStartText)
Collection、Map または Array のサイズを出力する際のテキストを設定します。 これはサイズの値の前に出力されます。 nullの入力は受け付けられますが、これは空の文字列に変換されます。
Sets the text to output when a Collection, Map or Array size is output. This is output before the size value. Null is accepted, but will be converted to a blank string.

パラメータ:
sizeStartText - 新たなサイズ開始のテキスト
the new start of size text

getSizeEndText

protected String getSizeEndText()
Collection、Map または Array のサイズを出力する際のテキストを取得します。 これはサイズの値の後に出力されます。
Gets the text to output when a Collection, Map or Array size is output. This is output after the size value.

戻り値:
現在のサイズ終了のテキスト
the current end of size text

setSizeEndText

protected void setSizeEndText(String sizeEndText)
Collection、Map または Array のサイズを出力する際のテキストを設定します。 これはサイズの値の後に出力されます。 nullの入力は受け付けられますが、これは空の文字列に変換されます。
Sets the text to output when a Collection, Map or Array size is output. This is output after the size value. Null is accepted, but will be converted to a blank string.

パラメータ:
sizeEndText - 新たなサイズ終了のテキスト
the new end of size text

getSummaryObjectStartText

protected String getSummaryObjectStartText()
オブジェクトの概要を出力する際のテキストを取得します。 これはサイズの値の前に出力されます。
Gets the text to output when an Object is output in summary mode. This is output before the size value.

戻り値:
現在の概要開始のテキスト
the current start of summary text

setSummaryObjectStartText

protected void setSummaryObjectStartText(String summaryObjectStartText)
オブジェクトの概要を出力する際のテキストを設定します。 これはサイズの値の前に出力されます。 nullの入力は受け付けられますが、これは空の文字列に変換されます。
Sets the text to output when an Object is output in summary mode. This is output before the size value. Null is accepted, but will be converted to a blank string.

パラメータ:
summaryObjectStartText - 新たな概要開始のテキスト
the new start of summary text

getSummaryObjectEndText

protected String getSummaryObjectEndText()
オブジェクトの概要を出力する際のテキストを取得します。 これはサイズの値の後に出力されます。
Gets the text to output when an Object is output in summary mode. This is output after the size value.

戻り値:
現在の概要終了のテキスト
the current end of summary text

setSummaryObjectEndText

protected void setSummaryObjectEndText(String summaryObjectEndText)
オブジェクトの概要を出力する際のテキストを設定します。 これはサイズの値の後に出力されます。 nullの入力は受け付けられますが、これは空の文字列に変換されます。
Sets the text to output when an Object is output in summary mode. This is output after the size value. Null is accepted, but will be converted to a blank string.

パラメータ:
summaryObjectEndText - 新たな概要終了のテキスト
the new end of summary text


このドキュメントは、Ja-Jakartaにより訳されました。 コメントがある場合は report@jajakarta.orgまでお願いします。
Translated into Japanese by jajakarta.org. The original page is here.
Copyright (c) 2002-2003 - Apache Software Foundation