Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.lang.builder
Class ToStringStyle  view ToStringStyle download ToStringStyle.java

java.lang.Object
  extended byorg.apache.commons.lang.builder.ToStringStyle
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
StandardToStringStyle, ToStringStyle.DefaultToStringStyle, ToStringStyle.MultiLineToStringStyle, ToStringStyle.NoFieldNameToStringStyle, ToStringStyle.ShortPrefixToStringStyle, ToStringStyle.SimpleToStringStyle, ToStringStyleTest.ToStringStyleImpl

public abstract class ToStringStyle
extends java.lang.Object
implements java.io.Serializable

Controls String formatting for ToStringBuilder. The main public interface is always via ToStringBuilder.

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 StandardToStringStyle class can be used to set the individual settings. Thus most styles can be achieved without subclassing.

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.

If you want to format the output of certain objects, such as dates, you must create a subclass and override a method.

 public class MyStyle extends ToStringStyle {
   protected void appendDetail(StringBuffer buffer, String fieldName, Object value) {
     if (value instanceof Date) {
       value = new SimpleDateFormat("yyyy-MM-dd").format(value);
     }
     buffer.append(value);
   }
 }
 

Since:
1.0
Version:
$Id: ToStringStyle.java 161243 2005-04-14 04:30:28Z ggregory $

Nested Class Summary
private static class ToStringStyle.DefaultToStringStyle
          Default ToStringStyle.
private static class ToStringStyle.MultiLineToStringStyle
          ToStringStyle that outputs on multiple lines.
private static class ToStringStyle.NoFieldNameToStringStyle
          ToStringStyle that does not print out the field names.
private static class ToStringStyle.ShortPrefixToStringStyle
          ToStringStyle that prints out the short class name and no identity hashcode.
private static class ToStringStyle.SimpleToStringStyle
          ToStringStyle that does not print out the classname, identity hashcode, content start or field name.
 
Field Summary
private  boolean arrayContentDetail
          The detail for array content.
private  java.lang.String arrayEnd
          The array end '}'.
private  java.lang.String arraySeparator
          The array separator ','.
private  java.lang.String arrayStart
          The array start '{'.
private  java.lang.String contentEnd
          The content end ']'.
private  java.lang.String contentStart
          The content start '['.
static ToStringStyle DEFAULT_STYLE
          The default toString style.
private  boolean defaultFullDetail
          The value to use when fullDetail is null, the default value is true.
private  java.lang.String fieldNameValueSeparator
          The field name value separator '='.
private  java.lang.String fieldSeparator
          The field separator ','.
private  boolean fieldSeparatorAtEnd
          Whether the field separator should be added after any other fields.
private  boolean fieldSeparatorAtStart
          Whether the field separator should be added before any other fields.
static ToStringStyle MULTI_LINE_STYLE
          The multi line toString style.
static ToStringStyle NO_FIELD_NAMES_STYLE
          The no field names toString style.
private  java.lang.String nullText
          The null text '<null>'.
static ToStringStyle SHORT_PREFIX_STYLE
          The short prefix toString style.
static ToStringStyle SIMPLE_STYLE
          The simple toString style.
private  java.lang.String sizeEndText
          The summary size text start '>'.
private  java.lang.String sizeStartText
          The summary size text start '.
private  java.lang.String summaryObjectEndText
          The summary object text start '>'.
private  java.lang.String summaryObjectStartText
          The summary object text start '<'.
private  boolean useClassName
          Whether to use the class name, the default is true.
private  boolean useFieldNames
          Whether to use the field names, the default is true.
private  boolean useIdentityHashCode
          Whether to use the identity hash code, the default is true.
private  boolean useShortClassName
          Whether to use short class names, the default is false.
 
Constructor Summary
protected ToStringStyle()
          Constructor.
 
Method Summary
 void append(java.lang.StringBuffer buffer, java.lang.String fieldName, boolean value)
          Append to the toString a boolean value.
 void append(java.lang.StringBuffer buffer, java.lang.String fieldName, boolean[] array, java.lang.Boolean fullDetail)
          Append to the toString a boolean array.
 void append(java.lang.StringBuffer buffer, java.lang.String fieldName, byte value)
          Append to the toString a byte value.
 void append(java.lang.StringBuffer buffer, java.lang.String fieldName, byte[] array, java.lang.Boolean fullDetail)
          Append to the toString a byte array.
 void append(java.lang.StringBuffer buffer, java.lang.String fieldName, char value)
          Append to the toString a char value.
 void append(java.lang.StringBuffer buffer, java.lang.String fieldName, char[] array, java.lang.Boolean fullDetail)
          Append to the toString a char array.
 void append(java.lang.StringBuffer buffer, java.lang.String fieldName, double value)
          Append to the toString a double value.
 void append(java.lang.StringBuffer buffer, java.lang.String fieldName, double[] array, java.lang.Boolean fullDetail)
          Append to the toString a double array.
 void append(java.lang.StringBuffer buffer, java.lang.String fieldName, float value)
          Append to the toString a float value.
 void append(java.lang.StringBuffer buffer, java.lang.String fieldName, float[] array, java.lang.Boolean fullDetail)
          Append to the toString a float array.
 void append(java.lang.StringBuffer buffer, java.lang.String fieldName, int value)
          Append to the toString an int value.
 void append(java.lang.StringBuffer buffer, java.lang.String fieldName, int[] array, java.lang.Boolean fullDetail)
          Append to the toString an int array.
 void append(java.lang.StringBuffer buffer, java.lang.String fieldName, long value)
          Append to the toString a long value.
 void append(java.lang.StringBuffer buffer, java.lang.String fieldName, long[] array, java.lang.Boolean fullDetail)
          Append to the toString a long array.
 void append(java.lang.StringBuffer buffer, java.lang.String fieldName, java.lang.Object[] array, java.lang.Boolean fullDetail)
          Append to the toString an Object array.
 void append(java.lang.StringBuffer buffer, java.lang.String fieldName, java.lang.Object value, java.lang.Boolean fullDetail)
          Append to the toString an Object value, printing the full toString of the Object passed in.
 void append(java.lang.StringBuffer buffer, java.lang.String fieldName, short value)
          Append to the toString a short value.
 void append(java.lang.StringBuffer buffer, java.lang.String fieldName, short[] array, java.lang.Boolean fullDetail)
          Append to the toString a short array.
protected  void appendClassName(java.lang.StringBuffer buffer, java.lang.Object object)
          Append to the toString the class name.
protected  void appendContentEnd(java.lang.StringBuffer buffer)
          Append to the toString the content end.
protected  void appendContentStart(java.lang.StringBuffer buffer)
          Append to the toString the content start.
protected  void appendDetail(java.lang.StringBuffer buffer, java.lang.String fieldName, boolean value)
          Append to the toString a boolean value.
protected  void appendDetail(java.lang.StringBuffer buffer, java.lang.String fieldName, boolean[] array)
          Append to the toString the detail of a boolean array.
protected  void appendDetail(java.lang.StringBuffer buffer, java.lang.String fieldName, byte value)
          Append to the toString a byte value.
protected  void appendDetail(java.lang.StringBuffer buffer, java.lang.String fieldName, byte[] array)
          Append to the toString the detail of a byte array.
protected  void appendDetail(java.lang.StringBuffer buffer, java.lang.String fieldName, char value)
          Append to the toString a char value.
protected  void appendDetail(java.lang.StringBuffer buffer, java.lang.String fieldName, char[] array)
          Append to the toString the detail of a char array.
protected  void appendDetail(java.lang.StringBuffer buffer, java.lang.String fieldName, java.util.Collection coll)
          Append to the toString a Collection.
protected  void appendDetail(java.lang.StringBuffer buffer, java.lang.String fieldName, double value)
          Append to the toString a double value.
protected  void appendDetail(java.lang.StringBuffer buffer, java.lang.String fieldName, double[] array)
          Append to the toString the detail of a double array.
protected  void appendDetail(java.lang.StringBuffer buffer, java.lang.String fieldName, float value)
          Append to the toString a float value.
protected  void appendDetail(java.lang.StringBuffer buffer, java.lang.String fieldName, float[] array)
          Append to the toString the detail of a float array.
protected  void appendDetail(java.lang.StringBuffer buffer, java.lang.String fieldName, int value)
          Append to the toString an int value.
protected  void appendDetail(java.lang.StringBuffer buffer, java.lang.String fieldName, int[] array)
          Append to the toString the detail of an int array.
protected  void appendDetail(java.lang.StringBuffer buffer, java.lang.String fieldName, long value)
          Append to the toString a long value.
protected  void appendDetail(java.lang.StringBuffer buffer, java.lang.String fieldName, long[] array)
          Append to the toString the detail of a long array.
protected  void appendDetail(java.lang.StringBuffer buffer, java.lang.String fieldName, java.util.Map map)
          Append to the toString a Map.
protected  void appendDetail(java.lang.StringBuffer buffer, java.lang.String fieldName, java.lang.Object value)
          Append to the toString an Object value, printing the full detail of the Object.
protected  void appendDetail(java.lang.StringBuffer buffer, java.lang.String fieldName, java.lang.Object[] array)
          Append to the toString the detail of an Object array.
protected  void appendDetail(java.lang.StringBuffer buffer, java.lang.String fieldName, short value)
          Append to the toString a short value.
protected  void appendDetail(java.lang.StringBuffer buffer, java.lang.String fieldName, short[] array)
          Append to the toString the detail of a short array.
 void appendEnd(java.lang.StringBuffer buffer, java.lang.Object object)
          Append to the toString the end of data indicator.
protected  void appendFieldEnd(java.lang.StringBuffer buffer, java.lang.String fieldName)
          Append to the toString the field end.
protected  void appendFieldSeparator(java.lang.StringBuffer buffer)
          Append to the toString the field separator.
protected  void appendFieldStart(java.lang.StringBuffer buffer, java.lang.String fieldName)
          Append to the toString the field start.
protected  void appendIdentityHashCode(java.lang.StringBuffer buffer, java.lang.Object object)
          Append the System.identityHashCode(java.lang.Object)>System.identityHashCode(java.lang.Object) 55 .
protected  void appendInternal(java.lang.StringBuffer buffer, java.lang.String fieldName, java.lang.Object value, boolean detail)
          Append to the toString an Object, correctly interpreting its type.
protected  void appendNullText(java.lang.StringBuffer buffer, java.lang.String fieldName)
          Append to the toString an indicator for null.
 void appendStart(java.lang.StringBuffer buffer, java.lang.Object object)
          Append to the toString the start of data indicator.
protected  void appendSummary(java.lang.StringBuffer buffer, java.lang.String fieldName, boolean[] array)
          Append to the toString a summary of a boolean array.
protected  void appendSummary(java.lang.StringBuffer buffer, java.lang.String fieldName, byte[] array)
          Append to the toString a summary of a byte array.
protected  void appendSummary(java.lang.StringBuffer buffer, java.lang.String fieldName, char[] array)
          Append to the toString a summary of a char array.
protected  void appendSummary(java.lang.StringBuffer buffer, java.lang.String fieldName, double[] array)
          Append to the toString a summary of a double array.
protected  void appendSummary(java.lang.StringBuffer buffer, java.lang.String fieldName, float[] array)
          Append to the toString a summary of a float array.
protected  void appendSummary(java.lang.StringBuffer buffer, java.lang.String fieldName, int[] array)
          Append to the toString a summary of an int array.
protected  void appendSummary(java.lang.StringBuffer buffer, java.lang.String fieldName, long[] array)
          Append to the toString a summary of a long array.
protected  void appendSummary(java.lang.StringBuffer buffer, java.lang.String fieldName, java.lang.Object value)
          Append to the toString an Object value, printing a summary of the Object.
protected  void appendSummary(java.lang.StringBuffer buffer, java.lang.String fieldName, java.lang.Object[] array)
          Append to the toString a summary of an Object array.
protected  void appendSummary(java.lang.StringBuffer buffer, java.lang.String fieldName, short[] array)
          Append to the toString a summary of a short array.
protected  void appendSummarySize(java.lang.StringBuffer buffer, java.lang.String fieldName, int size)
          Append to the toString a size summary.
 void appendSuper(java.lang.StringBuffer buffer, java.lang.String superToString)
          Append to the toString the superclass toString.
 void appendToString(java.lang.StringBuffer buffer, java.lang.String toString)
          Append to the toString another toString.
protected  java.lang.String getArrayEnd()
          Gets the array end text.
protected  java.lang.String getArraySeparator()
          Gets the array separator text.
protected  java.lang.String getArrayStart()
          Gets the array start text.
protected  java.lang.String getContentEnd()
          Gets the content end text.
protected  java.lang.String getContentStart()
          Gets the content start text.
protected  java.lang.String getFieldNameValueSeparator()
          Gets the field name value separator text.
protected  java.lang.String getFieldSeparator()
          Gets the field separator text.
protected  java.lang.String getNullText()
          Gets the text to output when null found.
protected  java.lang.String getShortClassName(java.lang.Class cls)
          Gets the short class name for a class.
protected  java.lang.String getSizeEndText()
          Gets the end text to output when a Collection, Map or array size is output.
protected  java.lang.String getSizeStartText()
          Gets the start text to output when a Collection, Map or array size is output.
protected  java.lang.String getSummaryObjectEndText()
          Gets the end text to output when an Object is output in summary mode.
protected  java.lang.String getSummaryObjectStartText()
          Gets the start text to output when an Object is output in summary mode.
protected  boolean isArrayContentDetail()
          Gets whether to output array content detail.
protected  boolean isDefaultFullDetail()
          Gets whether to use full detail when the caller doesn't specify.
protected  boolean isFieldSeparatorAtEnd()
          Gets whether the field separator should be added at the end of each buffer.
protected  boolean isFieldSeparatorAtStart()
          Gets whether the field separator should be added at the start of each buffer.
protected  boolean isFullDetail(java.lang.Boolean fullDetailRequest)
          Is this field to be output in full detail.
protected  boolean isShortClassName()
          Deprecated. Use isUseShortClassName() 55 Method will be removed in Commons Lang 3.0.
protected  boolean isUseClassName()
          Gets whether to use the class name.
protected  boolean isUseFieldNames()
          Gets whether to use the field names passed in.
protected  boolean isUseIdentityHashCode()
          Gets whether to use the identity hash code.
protected  boolean isUseShortClassName()
          Gets whether to output short or long class names.
protected  void reflectionAppendArrayDetail(java.lang.StringBuffer buffer, java.lang.String fieldName, java.lang.Object array)
          Append to the toString the detail of an array type.
protected  void removeLastFieldSeparator(java.lang.StringBuffer buffer)
          Remove the last field separator from the buffer.
protected  void setArrayContentDetail(boolean arrayContentDetail)
          Sets whether to output array content detail.
protected  void setArrayEnd(java.lang.String arrayEnd)
          Sets the array end text.
protected  void setArraySeparator(java.lang.String arraySeparator)
          Sets the array separator text.
protected  void setArrayStart(java.lang.String arrayStart)
          Sets the array start text.
protected  void setContentEnd(java.lang.String contentEnd)
          Sets the content end text.
protected  void setContentStart(java.lang.String contentStart)
          Sets the content start text.
protected  void setDefaultFullDetail(boolean defaultFullDetail)
          Sets whether to use full detail when the caller doesn't specify.
protected  void setFieldNameValueSeparator(java.lang.String fieldNameValueSeparator)
          Sets the field name value separator text.
protected  void setFieldSeparator(java.lang.String fieldSeparator)
          Sets the field separator text.
protected  void setFieldSeparatorAtEnd(boolean fieldSeparatorAtEnd)
          Sets whether the field separator should be added at the end of each buffer.
protected  void setFieldSeparatorAtStart(boolean fieldSeparatorAtStart)
          Sets whether the field separator should be added at the start of each buffer.
protected  void setNullText(java.lang.String nullText)
          Sets the text to output when null found.
protected  void setShortClassName(boolean shortClassName)
          Deprecated. Use setUseShortClassName(boolean) 55 Method will be removed in Commons Lang 3.0.
protected  void setSizeEndText(java.lang.String sizeEndText)
          Sets the end text to output when a Collection, Map or array size is output.
protected  void setSizeStartText(java.lang.String sizeStartText)
          Sets the start text to output when a Collection, Map or array size is output.
protected  void setSummaryObjectEndText(java.lang.String summaryObjectEndText)
          Sets the end text to output when an Object is output in summary mode.
protected  void setSummaryObjectStartText(java.lang.String summaryObjectStartText)
          Sets the start text to output when an Object is output in summary mode.
protected  void setUseClassName(boolean useClassName)
          Sets whether to use the class name.
protected  void setUseFieldNames(boolean useFieldNames)
          Sets whether to use the field names passed in.
protected  void setUseIdentityHashCode(boolean useIdentityHashCode)
          Sets whether to use the identity hash code.
protected  void setUseShortClassName(boolean useShortClassName)
          Sets whether to output short or long class names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_STYLE

public static final ToStringStyle DEFAULT_STYLE
The default toString style.


MULTI_LINE_STYLE

public static final ToStringStyle MULTI_LINE_STYLE
The multi line toString style.


NO_FIELD_NAMES_STYLE

public static final ToStringStyle NO_FIELD_NAMES_STYLE
The no field names toString style.


SHORT_PREFIX_STYLE

public static final ToStringStyle SHORT_PREFIX_STYLE
The short prefix toString style.

Since:
2.1

SIMPLE_STYLE

public static final ToStringStyle SIMPLE_STYLE
The simple toString style.


useFieldNames

private boolean useFieldNames
Whether to use the field names, the default is true.


useClassName

private boolean useClassName
Whether to use the class name, the default is true.


useShortClassName

private boolean useShortClassName
Whether to use short class names, the default is false.


useIdentityHashCode

private boolean useIdentityHashCode
Whether to use the identity hash code, the default is true.


contentStart

private java.lang.String contentStart
The content start '['.


contentEnd

private java.lang.String contentEnd
The content end ']'.


fieldNameValueSeparator

private java.lang.String fieldNameValueSeparator
The field name value separator '='.


fieldSeparatorAtStart

private boolean fieldSeparatorAtStart
Whether the field separator should be added before any other fields.


fieldSeparatorAtEnd

private boolean fieldSeparatorAtEnd
Whether the field separator should be added after any other fields.


fieldSeparator

private java.lang.String fieldSeparator
The field separator ','.


arrayStart

private java.lang.String arrayStart
The array start '{'.


arraySeparator

private java.lang.String arraySeparator
The array separator ','.


arrayContentDetail

private boolean arrayContentDetail
The detail for array content.


arrayEnd

private java.lang.String arrayEnd
The array end '}'.


defaultFullDetail

private boolean defaultFullDetail
The value to use when fullDetail is null, the default value is true.


nullText

private java.lang.String nullText
The null text '<null>'.


sizeStartText

private java.lang.String sizeStartText
The summary size text start '.


sizeEndText

private java.lang.String sizeEndText
The summary size text start '>'.


summaryObjectStartText

private java.lang.String summaryObjectStartText
The summary object text start '<'.


summaryObjectEndText

private java.lang.String summaryObjectEndText
The summary object text start '>'.

Constructor Detail

ToStringStyle

protected ToStringStyle()

Constructor.

Method Detail

appendSuper

public void appendSuper(java.lang.StringBuffer buffer,
                        java.lang.String superToString)

Append to the toString the superclass toString.

A null superToString is ignored.

Since:
2.0

appendToString

public void appendToString(java.lang.StringBuffer buffer,
                           java.lang.String toString)

Append to the toString another toString.

A null toString is ignored.

Since:
2.0

appendStart

public void appendStart(java.lang.StringBuffer buffer,
                        java.lang.Object object)

Append to the toString the start of data indicator.


appendEnd

public void appendEnd(java.lang.StringBuffer buffer,
                      java.lang.Object object)

Append to the toString the end of data indicator.


removeLastFieldSeparator

protected void removeLastFieldSeparator(java.lang.StringBuffer buffer)

Remove the last field separator from the buffer.

Since:
2.0

append

public void append(java.lang.StringBuffer buffer,
                   java.lang.String fieldName,
                   java.lang.Object value,
                   java.lang.Boolean fullDetail)

Append to the toString an Object value, printing the full toString of the Object passed in.


appendInternal

protected void appendInternal(java.lang.StringBuffer buffer,
                              java.lang.String fieldName,
                              java.lang.Object value,
                              boolean detail)

Append to the toString an Object, correctly interpreting 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.

If a cycle is detected, an object will be appended with the Object.toString() format.


appendDetail

protected void appendDetail(java.lang.StringBuffer buffer,
                            java.lang.String fieldName,
                            java.lang.Object value)

Append to the toString an Object value, printing the full detail of the Object.


appendDetail

protected void appendDetail(java.lang.StringBuffer buffer,
                            java.lang.String fieldName,
                            java.util.Collection coll)

Append to the toString a Collection.


appendDetail

protected void appendDetail(java.lang.StringBuffer buffer,
                            java.lang.String fieldName,
                            java.util.Map map)

Append to the toString a Map.


appendSummary

protected void appendSummary(java.lang.StringBuffer buffer,
                             java.lang.String fieldName,
                             java.lang.Object value)

Append to the toString an Object value, printing a summary of the Object.


append

public void append(java.lang.StringBuffer buffer,
                   java.lang.String fieldName,
                   long value)

Append to the toString a long value.


appendDetail

protected void appendDetail(java.lang.StringBuffer buffer,
                            java.lang.String fieldName,
                            long value)

Append to the toString a long value.


append

public void append(java.lang.StringBuffer buffer,
                   java.lang.String fieldName,
                   int value)

Append to the toString an int value.


appendDetail

protected void appendDetail(java.lang.StringBuffer buffer,
                            java.lang.String fieldName,
                            int value)

Append to the toString an int value.


append

public void append(java.lang.StringBuffer buffer,
                   java.lang.String fieldName,
                   short value)

Append to the toString a short value.


appendDetail

protected void appendDetail(java.lang.StringBuffer buffer,
                            java.lang.String fieldName,
                            short value)

Append to the toString a short value.


append

public void append(java.lang.StringBuffer buffer,
                   java.lang.String fieldName,
                   byte value)

Append to the toString a byte value.


appendDetail

protected void appendDetail(java.lang.StringBuffer buffer,
                            java.lang.String fieldName,
                            byte value)

Append to the toString a byte value.


append

public void append(java.lang.StringBuffer buffer,
                   java.lang.String fieldName,
                   char value)

Append to the toString a char value.


appendDetail

protected void appendDetail(java.lang.StringBuffer buffer,
                            java.lang.String fieldName,
                            char value)

Append to the toString a char value.


append

public void append(java.lang.StringBuffer buffer,
                   java.lang.String fieldName,
                   double value)

Append to the toString a double value.


appendDetail

protected void appendDetail(java.lang.StringBuffer buffer,
                            java.lang.String fieldName,
                            double value)

Append to the toString a double value.


append

public void append(java.lang.StringBuffer buffer,
                   java.lang.String fieldName,
                   float value)

Append to the toString a float value.


appendDetail

protected void appendDetail(java.lang.StringBuffer buffer,
                            java.lang.String fieldName,
                            float value)

Append to the toString a float value.


append

public void append(java.lang.StringBuffer buffer,
                   java.lang.String fieldName,
                   boolean value)

Append to the toString a boolean value.


appendDetail

protected void appendDetail(java.lang.StringBuffer buffer,
                            java.lang.String fieldName,
                            boolean value)

Append to the toString a boolean value.


append

public void append(java.lang.StringBuffer buffer,
                   java.lang.String fieldName,
                   java.lang.Object[] array,
                   java.lang.Boolean fullDetail)

Append to the toString an Object array.


appendDetail

protected void appendDetail(java.lang.StringBuffer buffer,
                            java.lang.String fieldName,
                            java.lang.Object[] array)

Append to the toString the detail of an Object array.


reflectionAppendArrayDetail

protected void reflectionAppendArrayDetail(java.lang.StringBuffer buffer,
                                           java.lang.String fieldName,
                                           java.lang.Object array)

Append to the toString the detail of an array type.

Since:
2.0

appendSummary

protected void appendSummary(java.lang.StringBuffer buffer,
                             java.lang.String fieldName,
                             java.lang.Object[] array)

Append to the toString a summary of an Object array.


append

public void append(java.lang.StringBuffer buffer,
                   java.lang.String fieldName,
                   long[] array,
                   java.lang.Boolean fullDetail)

Append to the toString a long array.


appendDetail

protected void appendDetail(java.lang.StringBuffer buffer,
                            java.lang.String fieldName,
                            long[] array)

Append to the toString the detail of a long array.


appendSummary

protected void appendSummary(java.lang.StringBuffer buffer,
                             java.lang.String fieldName,
                             long[] array)

Append to the toString a summary of a long array.


append

public void append(java.lang.StringBuffer buffer,
                   java.lang.String fieldName,
                   int[] array,
                   java.lang.Boolean fullDetail)

Append to the toString an int array.


appendDetail

protected void appendDetail(java.lang.StringBuffer buffer,
                            java.lang.String fieldName,
                            int[] array)

Append to the toString the detail of an int array.


appendSummary

protected void appendSummary(java.lang.StringBuffer buffer,
                             java.lang.String fieldName,
                             int[] array)

Append to the toString a summary of an int array.


append

public void append(java.lang.StringBuffer buffer,
                   java.lang.String fieldName,
                   short[] array,
                   java.lang.Boolean fullDetail)

Append to the toString a short array.


appendDetail

protected void appendDetail(java.lang.StringBuffer buffer,
                            java.lang.String fieldName,
                            short[] array)

Append to the toString the detail of a short array.


appendSummary

protected void appendSummary(java.lang.StringBuffer buffer,
                             java.lang.String fieldName,
                             short[] array)

Append to the toString a summary of a short array.


append

public void append(java.lang.StringBuffer buffer,
                   java.lang.String fieldName,
                   byte[] array,
                   java.lang.Boolean fullDetail)

Append to the toString a byte array.


appendDetail

protected void appendDetail(java.lang.StringBuffer buffer,
                            java.lang.String fieldName,
                            byte[] array)

Append to the toString the detail of a byte array.


appendSummary

protected void appendSummary(java.lang.StringBuffer buffer,
                             java.lang.String fieldName,
                             byte[] array)

Append to the toString a summary of a byte array.


append

public void append(java.lang.StringBuffer buffer,
                   java.lang.String fieldName,
                   char[] array,
                   java.lang.Boolean fullDetail)

Append to the toString a char array.


appendDetail

protected void appendDetail(java.lang.StringBuffer buffer,
                            java.lang.String fieldName,
                            char[] array)

Append to the toString the detail of a char array.


appendSummary

protected void appendSummary(java.lang.StringBuffer buffer,
                             java.lang.String fieldName,
                             char[] array)

Append to the toString a summary of a char array.


append

public void append(java.lang.StringBuffer buffer,
                   java.lang.String fieldName,
                   double[] array,
                   java.lang.Boolean fullDetail)

Append to the toString a double array.


appendDetail

protected void appendDetail(java.lang.StringBuffer buffer,
                            java.lang.String fieldName,
                            double[] array)

Append to the toString the detail of a double array.


appendSummary

protected void appendSummary(java.lang.StringBuffer buffer,
                             java.lang.String fieldName,
                             double[] array)

Append to the toString a summary of a double array.


append

public void append(java.lang.StringBuffer buffer,
                   java.lang.String fieldName,
                   float[] array,
                   java.lang.Boolean fullDetail)

Append to the toString a float array.


appendDetail

protected void appendDetail(java.lang.StringBuffer buffer,
                            java.lang.String fieldName,
                            float[] array)

Append to the toString the detail of a float array.


appendSummary

protected void appendSummary(java.lang.StringBuffer buffer,
                             java.lang.String fieldName,
                             float[] array)

Append to the toString a summary of a float array.


append

public void append(java.lang.StringBuffer buffer,
                   java.lang.String fieldName,
                   boolean[] array,
                   java.lang.Boolean fullDetail)

Append to the toString a boolean array.


appendDetail

protected void appendDetail(java.lang.StringBuffer buffer,
                            java.lang.String fieldName,
                            boolean[] array)

Append to the toString the detail of a boolean array.


appendSummary

protected void appendSummary(java.lang.StringBuffer buffer,
                             java.lang.String fieldName,
                             boolean[] array)

Append to the toString a summary of a boolean array.


appendClassName

protected void appendClassName(java.lang.StringBuffer buffer,
                               java.lang.Object object)

Append to the toString the class name.


appendIdentityHashCode

protected void appendIdentityHashCode(java.lang.StringBuffer buffer,
                                      java.lang.Object object)

Append the System.identityHashCode(java.lang.Object)>System.identityHashCode(java.lang.Object) 55 .


appendContentStart

protected void appendContentStart(java.lang.StringBuffer buffer)

Append to the toString the content start.


appendContentEnd

protected void appendContentEnd(java.lang.StringBuffer buffer)

Append to the toString the content end.


appendNullText

protected void appendNullText(java.lang.StringBuffer buffer,