Klasse ToStringBuilder

java.lang.Object
org.apache.fulcrum.yaafi.framework.util.ToStringBuilder

public class ToStringBuilder extends Object
A simple replacement for the more involved version in commons-lang; this is used to help construct the description string returned by an object's toString() method. The code was pasted from the Hivemind container written by Howard Lewis Ship.
Autor:
Siegfried Goeschl
  • Felddetails

    • INCLUDE_PACKAGE_PREFIX

      public static final int INCLUDE_PACKAGE_PREFIX
      Siehe auch:
    • INCLUDE_HASHCODE

      public static final int INCLUDE_HASHCODE
      Siehe auch:
  • Konstruktordetails

    • ToStringBuilder

      public ToStringBuilder(Object target)
    • ToStringBuilder

      public ToStringBuilder(Object target, int mode)
  • Methodendetails

    • getDefaultMode

      public static int getDefaultMode()
    • setDefaultMode

      public static void setDefaultMode(int i)
    • toString

      public String toString()
      Returns the final assembled string. This may only be invoked once, after all attributes have been appended.
      Setzt außer Kraft:
      toString in Klasse Object
    • append

      public void append(String attributeName, boolean value)
    • append

      public void append(String attributeName, byte value)
    • append

      public void append(String attributeName, short value)
    • append

      public void append(String attributeName, int value)
    • append

      public void append(String attributeName, Object value)
    • append

      public void append(String attributeName, String value)