类 ConvertProxy

java.lang.Object
org.anyline.proxy.ConvertProxy

public class ConvertProxy extends Object
  • 字段详细资料

  • 构造器详细资料

    • ConvertProxy

      public ConvertProxy()
  • 方法详细资料

    • reg

      public static void reg(Convert convert)
    • getConvert

      public static Convert getConvert(Class origin, Class target)
      参数:
      origin - 原类
      target - 目标类
      返回:
      Convert
    • convert

      public static Object convert(Object value, Class target, boolean array)
    • convert

      public static Object convert(Object value, Class target, boolean array, Object def)
    • convert

      public static <T> Object convert(Object value, Class<T> target, boolean array, Object def, boolean warn)
      参数:
      value - 值
      target - 目标类型
      array - 目标类型是否是数组
      def - 默认值
      warn - 是否异常提示
      返回:
      Object