|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Objectorg.apache.commons.lang.builder.ToStringStyle
org.apache.commons.lang.builder.StandardToStringStyle
Works with ToStringBuilder to create a toString.
This class is intended to be used as a singleton. There is no need to instantiate a new style each time. Simply instantiate the class once, customize the values as required, and store the result in a public static final variable for the rest of the program to access.
| フィールドの概要 |
| クラス org.apache.commons.lang.builder.ToStringStyle から継承したフィールド |
DEFAULT_STYLE, MULTI_LINE_STYLE, NO_FIELD_NAMES_STYLE, SIMPLE_STYLE |
| コンストラクタの概要 | |
StandardToStringStyle()
Constructor. |
|
| メソッドの概要 | |
String |
getArrayEnd()
Gets the array end text. |
String |
getArraySeparator()
Gets the array separator text. |
String |
getArrayStart()
Gets the array start text. |
String |
getContentEnd()
Gets the content end text. |
String |
getContentStart()
Gets the content start text. |
String |
getFieldNameValueSeparator()
Gets the field name value separator text. |
String |
getFieldSeparator()
Gets the field separator text. |
String |
getNullText()
Gets the text to output when null found. |
String |
getSizeEndText()
Gets the end text to output when a Collection,
Map or Array size is output. |
String |
getSizeStartText()
Gets the text to output when a Collection,
Map or Array size is output. |
String |
getSummaryObjectEndText()
Gets the end text to output when an Object is
output in summary mode. |
String |
getSummaryObjectStartText()
Gets the start text to output when an Object is
output in summary mode. |
boolean |
isArrayContentDetail()
Gets whether to output array content detail. |
boolean |
isDefaultFullDetail()
Gets whether to use full detail when the caller doesn't specify. |
boolean |
isFieldSeparatorAtEnd()
Gets whether the field separator should be added at the end of each buffer. |
boolean |
isFieldSeparatorAtStart()
Gets whether the field separator should be added at the start of each buffer. |
boolean |
isShortClassName()
推奨されていません。 Use isUseShortClassName()
Method will be removed in Commons Lang 3.0. |
boolean |
isUseClassName()
Gets whether to use the class name. |
boolean |
isUseFieldNames()
Gets whether to use the field names passed in. |
boolean |
isUseIdentityHashCode()
Gets whether to use the identity hash code. |
boolean |
isUseShortClassName()
Gets whether to output short or long class names. |
void |
setArrayContentDetail(boolean arrayContentDetail)
Sets whether to output array content detail. |
void |
setArrayEnd(String arrayEnd)
Sets the array end text. |
void |
setArraySeparator(String arraySeparator)
Sets the array separator text. |
void |
setArrayStart(String arrayStart)
Sets the array start text. |
void |
setContentEnd(String contentEnd)
Sets the content end text. |
void |
setContentStart(String contentStart)
Sets the content start text. |
void |
setDefaultFullDetail(boolean defaultFullDetail)
Sets whether to use full detail when the caller doesn't specify. |
void |
setFieldNameValueSeparator(String fieldNameValueSeparator)
Sets the field name value separator text. |
void |
setFieldSeparator(String fieldSeparator)
Sets the field separator text. |
void |
setFieldSeparatorAtEnd(boolean fieldSeparatorAtEnd)
Sets whether the field separator should be added at the end of each buffer. |
void |
setFieldSeparatorAtStart(boolean fieldSeparatorAtStart)
Sets whether the field separator should be added at the start of each buffer. |
void |
setNullText(String nullText)
Sets the text to output when null found. |
void |
setShortClassName(boolean shortClassName)
推奨されていません。 Use setUseShortClassName(boolean)
Method will be removed in Commons Lang 3.0. |
void |
setSizeEndText(String sizeEndText)
Sets the end text to output when a Collection,
Map or Array size is output. |
void |
setSizeStartText(String sizeStartText)
Sets the start text to output when a Collection,
Map or Array size is output. |
void |
setSummaryObjectEndText(String summaryObjectEndText)
Sets the end text to output when an Object is
output in summary mode. |
void |
setSummaryObjectStartText(String summaryObjectStartText)
Sets the start text to output when an Object is
output in summary mode. |
void |
setUseClassName(boolean useClassName)
Sets whether to use the class name. |
void |
setUseFieldNames(boolean useFieldNames)
Sets whether to use the field names passed in. |
void |
setUseIdentityHashCode(boolean useIdentityHashCode)
Sets whether to use the identity hash code. |
void |
setUseShortClassName(boolean useShortClassName)
Sets whether to output short or long class names. |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
public StandardToStringStyle()
Constructor.
| メソッドの詳細 |
public boolean isUseClassName()
Gets whether to use the class name.
ToStringStyle 内の isUseClassNamepublic void setUseClassName(boolean useClassName)
Sets whether to use the class name.
ToStringStyle 内の setUseClassNameuseClassName - the new useClassName flagpublic boolean isUseShortClassName()
Gets whether to output short or long class names.
ToStringStyle 内の isUseShortClassNamepublic boolean isShortClassName()
isUseShortClassName()
Method will be removed in Commons Lang 3.0.
Gets whether to output short or long class names.
ToStringStyle 内の isShortClassNamepublic void setUseShortClassName(boolean useShortClassName)
Sets whether to output short or long class names.
ToStringStyle 内の setUseShortClassNameuseShortClassName - the new useShortClassName flagpublic void setShortClassName(boolean shortClassName)
setUseShortClassName(boolean)
Method will be removed in Commons Lang 3.0.
Sets whether to output short or long class names.
ToStringStyle 内の setShortClassNameshortClassName - the new shortClassName flagpublic boolean isUseIdentityHashCode()
Gets whether to use the identity hash code.
ToStringStyle 内の isUseIdentityHashCodepublic void setUseIdentityHashCode(boolean useIdentityHashCode)
Sets whether to use the identity hash code.
ToStringStyle 内の setUseIdentityHashCodeuseIdentityHashCode - the new useIdentityHashCode flagpublic boolean isUseFieldNames()
Gets whether to use the field names passed in.
ToStringStyle 内の isUseFieldNamespublic void setUseFieldNames(boolean useFieldNames)
Sets whether to use the field names passed in.
ToStringStyle 内の setUseFieldNamesuseFieldNames - the new useFieldNames flagpublic boolean isDefaultFullDetail()
Gets whether to use full detail when the caller doesn't specify.
ToStringStyle 内の isDefaultFullDetailpublic void setDefaultFullDetail(boolean defaultFullDetail)
Sets whether to use full detail when the caller doesn't specify.
ToStringStyle 内の setDefaultFullDetaildefaultFullDetail - the new defaultFullDetail flagpublic boolean isArrayContentDetail()
Gets whether to output array content detail.
ToStringStyle 内の isArrayContentDetailpublic void setArrayContentDetail(boolean arrayContentDetail)
Sets whether to output array content detail.
ToStringStyle 内の setArrayContentDetailarrayContentDetail - the new arrayContentDetail flagpublic String getArrayStart()
Gets the array start text.
ToStringStyle 内の getArrayStartpublic void setArrayStart(String arrayStart)
Sets the array start text.
null is accepted, but will be converted
to an empty String.
ToStringStyle 内の setArrayStartarrayStart - the new array start textpublic String getArrayEnd()
Gets the array end text.
ToStringStyle 内の getArrayEndpublic void setArrayEnd(String arrayEnd)
Sets the array end text.
null is accepted, but will be converted
to an empty String.
ToStringStyle 内の setArrayEndarrayEnd - the new array end textpublic String getArraySeparator()
Gets the array separator text.
ToStringStyle 内の getArraySeparatorpublic void setArraySeparator(String arraySeparator)
Sets the array separator text.
null is accepted, but will be converted
to an empty String.
ToStringStyle 内の setArraySeparatorarraySeparator - the new array separator textpublic String getContentStart()
Gets the content start text.
ToStringStyle 内の getContentStartpublic void setContentStart(String contentStart)
Sets the content start text.
null is accepted, but will be converted
to an empty String.
ToStringStyle 内の setContentStartcontentStart - the new content start textpublic String getContentEnd()
Gets the content end text.
ToStringStyle 内の getContentEndpublic void setContentEnd(String contentEnd)
Sets the content end text.
null is accepted, but will be converted
to an empty String.
ToStringStyle 内の setContentEndcontentEnd - the new content end textpublic String getFieldNameValueSeparator()
Gets the field name value separator text.
ToStringStyle 内の getFieldNameValueSeparatorpublic void setFieldNameValueSeparator(String fieldNameValueSeparator)
Sets the field name value separator text.
null is accepted, but will be converted
to an empty String.
ToStringStyle 内の setFieldNameValueSeparatorfieldNameValueSeparator - the new field name value separator textpublic String getFieldSeparator()
Gets the field separator text.
ToStringStyle 内の getFieldSeparatorpublic void setFieldSeparator(String fieldSeparator)
Sets the field separator text.
null is accepted, but will be converted
to an empty String.
ToStringStyle 内の setFieldSeparatorfieldSeparator - the new field separator textpublic boolean isFieldSeparatorAtStart()
Gets whether the field separator should be added at the start of each buffer.
ToStringStyle 内の isFieldSeparatorAtStartpublic void setFieldSeparatorAtStart(boolean fieldSeparatorAtStart)
Sets whether the field separator should be added at the start of each buffer.
ToStringStyle 内の setFieldSeparatorAtStartfieldSeparatorAtStart - the fieldSeparatorAtStart flagpublic boolean isFieldSeparatorAtEnd()
Gets whether the field separator should be added at the end of each buffer.
ToStringStyle 内の isFieldSeparatorAtEndpublic void setFieldSeparatorAtEnd(boolean fieldSeparatorAtEnd)
Sets whether the field separator should be added at the end of each buffer.
ToStringStyle 内の setFieldSeparatorAtEndfieldSeparatorAtEnd - the fieldSeparatorAtEnd flagpublic String getNullText()
Gets the text to output when null found.
ToStringStyle 内の getNullTextnull foundpublic void setNullText(String nullText)
Sets the text to output when null found.
null is accepted, but will be converted
to an empty String.
ToStringStyle 内の setNullTextnullText - the new text to output when null foundpublic String getSizeStartText()
Gets the text to output when a Collection,
Map or Array size is output.
This is output before the size value.
ToStringStyle 内の getSizeStartTextpublic void setSizeStartText(String sizeStartText)
Sets the start 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
an empty String.
ToStringStyle 内の setSizeStartTextsizeStartText - the new start of size textpublic String getSizeEndText()
Collection,
Map or Array size is output.
This is output after the size value.
ToStringStyle 内の getSizeEndTextpublic void setSizeEndText(String sizeEndText)
Sets the end 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 an empty String.
ToStringStyle 内の setSizeEndTextsizeEndText - the new end of size textpublic String getSummaryObjectStartText()
Gets the start text to output when an Object is
output in summary mode.
This is output before the size value.
ToStringStyle 内の getSummaryObjectStartTextpublic void setSummaryObjectStartText(String summaryObjectStartText)
Sets the start 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
an empty String.
ToStringStyle 内の setSummaryObjectStartTextsummaryObjectStartText - the new start of summary textpublic String getSummaryObjectEndText()
Gets the end text to output when an Object is
output in summary mode.
This is output after the size value.
ToStringStyle 内の getSummaryObjectEndTextpublic void setSummaryObjectEndText(String summaryObjectEndText)
Sets the end 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
an empty String.
ToStringStyle 内の setSummaryObjectEndTextsummaryObjectEndText - the new end of summary text
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||