站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

DefaultValueStyler (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


org.springframework.core.style
Class DefaultValueStyler

java.lang.Object
  extended by org.springframework.core.style.DefaultValueStyler
All Implemented Interfaces:
ValueStyler

public class DefaultValueStyler
extends Object
implements ValueStyler

Converts objects to string form, generally for debugging purposes, using Spring's toString styling conventions.

Underneath the hood, uses the reflective visitor pattern to nicely encapsulate styling algorithms for each type of styled object.

Since:
1.2.2
Author:
Keith Donald

Constructor Summary
DefaultValueStyler()
           
 
Method Summary
 String style(Object value)
          Style the given value, returning a String representation.
(package private)  String visit(Class clazz)
           
(package private)  String visit(Collection value)
           
(package private)  String visit(Map.Entry value)
           
(package private)  String visit(Map value)
           
(package private)  String visit(Method method)
           
(package private)  String visit(Number value)
           
(package private)  String visit(Object value)
           
(package private)  String visit(String value)
           
(package private)  String visitNull()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultValueStyler

public DefaultValueStyler()
Method Detail

style

public String style(Object value)
Description copied from interface: ValueStyler
Style the given value, returning a String representation.

Specified by:
style in interface ValueStyler
Parameters:
value - the Object value to style
Returns:
the styled String

visit

String visit(String value)

visit

String visit(Number value)

visit

String visit(Class clazz)

visit

String visit(Method method)

visit

String visit(Map value)

visit

String visit(Map.Entry value)

visit

String visit(Collection value)

visit

String visit(Object value)

visitNull

String visitNull()


Copyright (c) 2002-2007 The Spring Framework Project.