| java.lang.Object org.apache.commons.lang.builder.ToStringStyle org.apache.commons.lang.builder.StandardToStringStyle
StandardToStringStyle | public class StandardToStringStyle extends ToStringStyle (Code) | | 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.
author: Stephen Colebourne author: Pete Gieser author: Gary Gregory since: 1.0 version: $Id: StandardToStringStyle.java 437554 2006-08-28 06:21:41Z bayard $ |
StandardToStringStyle | public StandardToStringStyle()(Code) | | Constructor.
|
getArrayEnd | public String getArrayEnd()(Code) | | Gets the array end text.
the current array end text |
getArraySeparator | public String getArraySeparator()(Code) | | Gets the array separator text.
the current array separator text |
getArrayStart | public String getArrayStart()(Code) | | Gets the array start text.
the current array start text |
getContentEnd | public String getContentEnd()(Code) | | Gets the content end text.
the current content end text |
getContentStart | public String getContentStart()(Code) | | Gets the content start text.
the current content start text |
getFieldNameValueSeparator | public String getFieldNameValueSeparator()(Code) | | Gets the field name value separator text.
the current field name value separator text |
getFieldSeparator | public String getFieldSeparator()(Code) | | Gets the field separator text.
the current field separator text |
getNullText | public String getNullText()(Code) | | Gets the text to output when null found.
the current text to output when null found |
getSizeEndText | public String getSizeEndText()(Code) | | Gets the end 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 |
getSizeStartText | public String getSizeStartText()(Code) | | 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 |
getSummaryObjectEndText | public String getSummaryObjectEndText()(Code) | | Gets the end text to output when an Object is
output in summary mode.
This is output after the size value.
the current end of summary text |
getSummaryObjectStartText | public String getSummaryObjectStartText()(Code) | | Gets the start text to output when an Object is
output in summary mode.
This is output before the size value.
the current start of summary text |
isArrayContentDetail | public boolean isArrayContentDetail()(Code) | | Gets whether to output array content detail.
the current array content detail setting |
isDefaultFullDetail | public boolean isDefaultFullDetail()(Code) | | Gets whether to use full detail when the caller doesn't
specify.
the current defaultFullDetail flag |
isFieldSeparatorAtEnd | public boolean isFieldSeparatorAtEnd()(Code) | | Gets whether the field separator should be added at the end
of each buffer.
fieldSeparatorAtEnd flag since: 2.0 |
isFieldSeparatorAtStart | public boolean isFieldSeparatorAtStart()(Code) | | Gets whether the field separator should be added at the start
of each buffer.
the fieldSeparatorAtStart flag since: 2.0 |
isUseClassName | public boolean isUseClassName()(Code) | | Gets whether to use the class name.
the current useClassName flag |
isUseFieldNames | public boolean isUseFieldNames()(Code) | | Gets whether to use the field names passed in.
the current useFieldNames flag |
isUseIdentityHashCode | public boolean isUseIdentityHashCode()(Code) | | Gets whether to use the identity hash code.
the current useIdentityHashCode flag |
isUseShortClassName | public boolean isUseShortClassName()(Code) | | Gets whether to output short or long class names.
the current useShortClassName flag since: 2.0 |
setArrayContentDetail | public void setArrayContentDetail(boolean arrayContentDetail)(Code) | | Sets whether to output array content detail.
Parameters: arrayContentDetail - the new arrayContentDetail flag |
setArrayEnd | public void setArrayEnd(String arrayEnd)(Code) | | Sets the array end text.
null is accepted, but will be converted
to an empty String.
Parameters: arrayEnd - the new array end text |
setArraySeparator | public void setArraySeparator(String arraySeparator)(Code) | | Sets the array separator text.
null is accepted, but will be converted
to an empty String.
Parameters: arraySeparator - the new array separator text |
setArrayStart | public void setArrayStart(String arrayStart)(Code) | | Sets the array start text.
null is accepted, but will be converted
to an empty String.
Parameters: arrayStart - the new array start text |
setContentEnd | public void setContentEnd(String contentEnd)(Code) | | Sets the content end text.
null is accepted, but will be converted
to an empty String.
Parameters: contentEnd - the new content end text |
setContentStart | public void setContentStart(String contentStart)(Code) | | Sets the content start text.
null is accepted, but will be converted
to an empty String.
Parameters: contentStart - the new content start text |
setDefaultFullDetail | public void setDefaultFullDetail(boolean defaultFullDetail)(Code) | | Sets whether to use full detail when the caller doesn't
specify.
Parameters: defaultFullDetail - the new defaultFullDetail flag |
setFieldNameValueSeparator | public void setFieldNameValueSeparator(String fieldNameValueSeparator)(Code) | | Sets the field name value separator text.
null is accepted, but will be converted
to an empty String.
Parameters: fieldNameValueSeparator - the new field name value separator text |
setFieldSeparator | public void setFieldSeparator(String fieldSeparator)(Code) | | Sets the field separator text.
null is accepted, but will be converted
to an empty String.
Parameters: fieldSeparator - the new field separator text |
setFieldSeparatorAtEnd | public void setFieldSeparatorAtEnd(boolean fieldSeparatorAtEnd)(Code) | | Sets whether the field separator should be added at the end
of each buffer.
Parameters: fieldSeparatorAtEnd - the fieldSeparatorAtEnd flag since: 2.0 |
setFieldSeparatorAtStart | public void setFieldSeparatorAtStart(boolean fieldSeparatorAtStart)(Code) | | Sets whether the field separator should be added at the start
of each buffer.
Parameters: fieldSeparatorAtStart - the fieldSeparatorAtStart flag since: 2.0 |
setNullText | public void setNullText(String nullText)(Code) | | Sets the text to output when null found.
null is accepted, but will be converted
to an empty String.
Parameters: nullText - the new text to output when null found |
setSizeEndText | public void setSizeEndText(String sizeEndText)(Code) | | 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.
Parameters: sizeEndText - the new end of size text |
setSizeStartText | public void setSizeStartText(String sizeStartText)(Code) | | 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.
Parameters: sizeStartText - the new start of size text |
setSummaryObjectEndText | public void setSummaryObjectEndText(String summaryObjectEndText)(Code) | | 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.
Parameters: summaryObjectEndText - the new end of summary text |
setSummaryObjectStartText | public void setSummaryObjectStartText(String summaryObjectStartText)(Code) | | 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.
Parameters: summaryObjectStartText - the new start of summary text |
setUseClassName | public void setUseClassName(boolean useClassName)(Code) | | Sets whether to use the class name.
Parameters: useClassName - the new useClassName flag |
setUseFieldNames | public void setUseFieldNames(boolean useFieldNames)(Code) | | Sets whether to use the field names passed in.
Parameters: useFieldNames - the new useFieldNames flag |
setUseIdentityHashCode | public void setUseIdentityHashCode(boolean useIdentityHashCode)(Code) | | Sets whether to use the identity hash code.
Parameters: useIdentityHashCode - the new useIdentityHashCode flag |
setUseShortClassName | public void setUseShortClassName(boolean useShortClassName)(Code) | | Sets whether to output short or long class names.
Parameters: useShortClassName - the new useShortClassName flag since: 2.0 |
Methods inherited from org.apache.commons.lang.builder.ToStringStyle | public void append(StringBuffer buffer, String fieldName, Object value, Boolean fullDetail)(Code)(Java Doc) public void append(StringBuffer buffer, String fieldName, long value)(Code)(Java Doc) public void append(StringBuffer buffer, String fieldName, int value)(Code)(Java Doc) public void append(StringBuffer buffer, String fieldName, short value)(Code)(Java Doc) public void append(StringBuffer buffer, String fieldName, byte value)(Code)(Java Doc) public void append(StringBuffer buffer, String fieldName, char value)(Code)(Java Doc) public void append(StringBuffer buffer, String fieldName, double value)(Code)(Java Doc) public void append(StringBuffer buffer, String fieldName, float value)(Code)(Java Doc) public void append(StringBuffer buffer, String fieldName, boolean value)(Code)(Java Doc) public void append(StringBuffer buffer, String fieldName, Object[] array, Boolean fullDetail)(Code)(Java Doc) public void append(StringBuffer buffer, String fieldName, long[] array, Boolean fullDetail)(Code)(Java Doc) public void append(StringBuffer buffer, String fieldName, int[] array, Boolean fullDetail)(Code)(Java Doc) public void append(StringBuffer buffer, String fieldName, short[] array, Boolean fullDetail)(Code)(Java Doc) public void append(StringBuffer buffer, String fieldName, byte[] array, Boolean fullDetail)(Code)(Java Doc) public void append(StringBuffer buffer, String fieldName, char[] array, Boolean fullDetail)(Code)(Java Doc) public void append(StringBuffer buffer, String fieldName, double[] array, Boolean fullDetail)(Code)(Java Doc) public void append(StringBuffer buffer, String fieldName, float[] array, Boolean fullDetail)(Code)(Java Doc) public void append(StringBuffer buffer, String fieldName, boolean[] array, Boolean fullDetail)(Code)(Java Doc) protected void appendClassName(StringBuffer buffer, Object object)(Code)(Java Doc) protected void appendContentEnd(StringBuffer buffer)(Code)(Java Doc) protected void appendContentStart(StringBuffer buffer)(Code)(Java Doc) protected void appendCyclicObject(StringBuffer buffer, String fieldName, Object value)(Code)(Java Doc) protected void appendDetail(StringBuffer buffer, String fieldName, Object value)(Code)(Java Doc) protected void appendDetail(StringBuffer buffer, String fieldName, Collection coll)(Code)(Java Doc) protected void appendDetail(StringBuffer buffer, String fieldName, Map map)(Code)(Java Doc) protected void appendDetail(StringBuffer buffer, String fieldName, long value)(Code)(Java Doc) protected void appendDetail(StringBuffer buffer, String fieldName, int value)(Code)(Java Doc) protected void appendDetail(StringBuffer buffer, String fieldName, short value)(Code)(Java Doc) protected void appendDetail(StringBuffer buffer, String fieldName, byte value)(Code)(Java Doc) protected void appendDetail(StringBuffer buffer, String fieldName, char value)(Code)(Java Doc) protected void appendDetail(StringBuffer buffer, String fieldName, double value)(Code)(Java Doc) protected void appendDetail(StringBuffer buffer, String fieldName, float value)(Code)(Java Doc) protected void appendDetail(StringBuffer buffer, String fieldName, boolean value)(Code)(Java Doc) protected void appendDetail(StringBuffer buffer, String fieldName, Object[] array)(Code)(Java Doc) protected void appendDetail(StringBuffer buffer, String fieldName, long[] array)(Code)(Java Doc) protected void appendDetail(StringBuffer buffer, String fieldName, int[] array)(Code)(Java Doc) protected void appendDetail(StringBuffer buffer, String fieldName, short[] array)(Code)(Java Doc) protected void appendDetail(StringBuffer buffer, String fieldName, byte[] array)(Code)(Java Doc) protected void appendDetail(StringBuffer buffer, String fieldName, char[] array)(Code)(Java Doc) protected void appendDetail(StringBuffer buffer, String fieldName, double[] array)(Code)(Java Doc) protected void appendDetail(StringBuffer buffer, String fieldName, float[] array)(Code)(Java Doc) protected void appendDetail(StringBuffer buffer, String fieldName, boolean[] array)(Code)(Java Doc) public void appendEnd(StringBuffer buffer, Object object)(Code)(Java Doc) protected void appendFieldEnd(StringBuffer buffer, String fieldName)(Code)(Java Doc) protected void appendFieldSeparator(StringBuffer buffer)(Code)(Java Doc) protected void appendFieldStart(StringBuffer buffer, String fieldName)(Code)(Java Doc) protected void appendIdentityHashCode(StringBuffer buffer, Object object)(Code)(Java Doc) protected void appendInternal(StringBuffer buffer, String fieldName, Object value, boolean detail)(Code)(Java Doc) protected void appendNullText(StringBuffer buffer, String fieldName)(Code)(Java Doc) public void appendStart(StringBuffer buffer, Object object)(Code)(Java Doc) protected void appendSummary(StringBuffer buffer, String fieldName, Object value)(Code)(Java Doc) protected void appendSummary(StringBuffer buffer, String fieldName, Object[] array)(Code)(Java Doc) protected void appendSummary(StringBuffer buffer, String fieldName, long[] array)(Code)(Java Doc) protected void appendSummary(StringBuffer buffer, String fieldName, int[] array)(Code)(Java Doc) protected void appendSummary(StringBuffer buffer, String fieldName, short[] array)(Code)(Java Doc) protected void appendSummary(StringBuffer buffer, String fieldName, byte[] array)(Code)(Java Doc) protected void appendSummary(StringBuffer buffer, String fieldName, char[] array)(Code)(Java Doc) protected void appendSummary(StringBuffer buffer, String fieldName, double[] array)(Code)(Java Doc) protected void appendSummary(StringBuffer buffer, String fieldName, float[] array)(Code)(Java Doc) protected void appendSummary(StringBuffer buffer, String fieldName, boolean[] array)(Code)(Java Doc) protected void appendSummarySize(StringBuffer buffer, String fieldName, int size)(Code)(Java Doc) public void appendSuper(StringBuffer buffer, String superToString)(Code)(Java Doc) public void appendToString(StringBuffer buffer, String toString)(Code)(Java Doc) protected String getArrayEnd()(Code)(Java Doc) protected String getArraySeparator()(Code)(Java Doc) protected String getArrayStart()(Code)(Java Doc) protected String getContentEnd()(Code)(Java Doc) protected String getContentStart()(Code)(Java Doc) protected String getFieldNameValueSeparator()(Code)(Java Doc) protected String getFieldSeparator()(Code)(Java Doc) protected String getNullText()(Code)(Java Doc) static Set getRegistry()(Code)(Java Doc) protected String getShortClassName(Class cls)(Code)(Java Doc) protected String getSizeEndText()(Code)(Java Doc) protected String getSizeStartText()(Code)(Java Doc) protected String getSummaryObjectEndText()(Code)(Java Doc) protected String getSummaryObjectStartText()(Code)(Java Doc) protected boolean isArrayContentDetail()(Code)(Java Doc) protected boolean isDefaultFullDetail()(Code)(Java Doc) protected boolean isFieldSeparatorAtEnd()(Code)(Java Doc) protected boolean isFieldSeparatorAtStart()(Code)(Java Doc) protected boolean isFullDetail(Boolean fullDetailRequest)(Code)(Java Doc) static boolean isRegistered(Object value)(Code)(Java Doc) protected boolean isShortClassName()(Code)(Java Doc) protected boolean isUseClassName()(Code)(Java Doc) protected boolean isUseFieldNames()(Code)(Java Doc) protected boolean isUseIdentityHashCode()(Code)(Java Doc) protected boolean isUseShortClassName()(Code)(Java Doc) protected void reflectionAppendArrayDetail(StringBuffer buffer, String fieldName, Object array)(Code)(Java Doc) static void register(Object value)(Code)(Java Doc) protected void removeLastFieldSeparator(StringBuffer buffer)(Code)(Java Doc) protected void setArrayContentDetail(boolean arrayContentDetail)(Code)(Java Doc) protected void setArrayEnd(String arrayEnd)(Code)(Java Doc) protected void setArraySeparator(String arraySeparator)(Code)(Java Doc) protected void setArrayStart(String arrayStart)(Code)(Java Doc) protected void setContentEnd(String contentEnd)(Code)(Java Doc) protected void setContentStart(String contentStart)(Code)(Java Doc) protected void setDefaultFullDetail(boolean defaultFullDetail)(Code)(Java Doc) protected void setFieldNameValueSeparator(String fieldNameValueSeparator)(Code)(Java Doc) protected void setFieldSeparator(String fieldSeparator)(Code)(Java Doc) protected void setFieldSeparatorAtEnd(boolean fieldSeparatorAtEnd)(Code)(Java Doc) protected void setFieldSeparatorAtStart(boolean fieldSeparatorAtStart)(Code)(Java Doc) protected void setNullText(String nullText)(Code)(Java Doc) protected void setShortClassName(boolean shortClassName)(Code)(Java Doc) protected void setSizeEndText(String sizeEndText)(Code)(Java Doc) protected void setSizeStartText(String sizeStartText)(Code)(Java Doc) protected void setSummaryObjectEndText(String summaryObjectEndText)(Code)(Java Doc) protected void setSummaryObjectStartText(String summaryObjectStartText)(Code)(Java Doc) protected void setUseClassName(boolean useClassName)(Code)(Java Doc) protected void setUseFieldNames(boolean useFieldNames)(Code)(Java Doc) protected void setUseIdentityHashCode(boolean useIdentityHashCode)(Code)(Java Doc) protected void setUseShortClassName(boolean useShortClassName)(Code)(Java Doc) static void unregister(Object value)(Code)(Java Doc)
|
|
|