Package juzu.impl.value

Examples of juzu.impl.value.ValueType.format()


  }

  private String valueOf(AnnotatedElement annotated, Object o) {
    ValueType vt = controllerPlugin.resolveValueType(o.getClass());
    if (vt != null) {
      return vt.format(annotated, o);
    } else {
      return null;
    }
  }
View Full Code Here


          ValueType valueType = plugin.resolveValueType(clazz);
          if (valueType != null) {
            String[] ret = new String[length];
            for (int i = 0;i < length;i++) {
              Object element = Array.get(value, i);
              ret[i] = valueType.format(annotated, element);
            }
            return ret;
          }
        }
      } else {
View Full Code Here

          }
        }
      } else {
        ValueType valueType = plugin.resolveValueType(clazz);
        if (valueType != null) {
          return new String[]{valueType.format(annotated, value)};
        }
      }
    } else if (type instanceof ParameterizedType) {
      ParameterizedType parameterizedType = (ParameterizedType)type;
      if (parameterizedType.getRawType().equals(List.class)) {
View Full Code Here

            ValueType valueType = plugin.resolveValueType((Class)typeArg);
            if (valueType != null) {
              String[] ret = new String[size];
              for (int i = 0;i < size;i++) {
                Object element = list.get(i);
                ret[i] = valueType.format(annotated, element);
              }
              return ret;
            }
          }
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.