org.apache.fulcrum.yaafi.interceptor.util
Class DefaultToStringBuilderImpl

java.lang.Object
  extended by org.apache.fulcrum.yaafi.interceptor.util.DefaultToStringBuilderImpl
All Implemented Interfaces:
InterceptorToStringBuilder

public class DefaultToStringBuilderImpl
extends java.lang.Object
implements InterceptorToStringBuilder

Creates a string representation of java.lang.reflect.Method

Author:
Siegfried Goeschl

Constructor Summary
DefaultToStringBuilderImpl()
          Constructor
DefaultToStringBuilderImpl(java.lang.Object target)
          Constructor
 
Method Summary
 void setMaxArgLength(int maxArgLength)
           
 void setMode(int mode)
           
 void setTarget(java.lang.Object target)
           
 java.lang.String toString()
          Invokes the string builder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultToStringBuilderImpl

public DefaultToStringBuilderImpl()
Constructor


DefaultToStringBuilderImpl

public DefaultToStringBuilderImpl(java.lang.Object target)
Constructor

Parameters:
target - the object to print
Method Detail

setTarget

public void setTarget(java.lang.Object target)
Specified by:
setTarget in interface InterceptorToStringBuilder
Parameters:
target - The target to set.
See Also:
InterceptorToStringBuilder.setTarget(java.lang.Object)

setMaxArgLength

public void setMaxArgLength(int maxArgLength)
Specified by:
setMaxArgLength in interface InterceptorToStringBuilder
Parameters:
maxArgLength - The maxArgLength to set.
See Also:
InterceptorToStringBuilder.setMaxArgLength(int)

setMode

public void setMode(int mode)
Specified by:
setMode in interface InterceptorToStringBuilder
Parameters:
mode - Set the formatting mode to use
See Also:
InterceptorToStringBuilder.setMode(int)

toString

public java.lang.String toString()
Description copied from interface: InterceptorToStringBuilder
Invokes the string builder.

Specified by:
toString in interface InterceptorToStringBuilder
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.