Package org.dozer.propertydescriptor

Examples of org.dozer.propertydescriptor.DozerPropertyDescriptor.genericType()


    return result;
  }

  public Class<?> getGenericType(Class<?> runtimeDestClass) {
    DozerPropertyDescriptor propertyDescriptor = getDestPropertyDescriptor(runtimeDestClass);
    return propertyDescriptor.genericType();
  }

  public Object getDestValue(Object runtimeDestObj) {
    return getDestPropertyDescriptor(runtimeDestObj.getClass()).getPropertyValue(runtimeDestObj);
  }
View Full Code Here


      latestClass = propDescriptor.getPropertyType();
      if (toks.hasMoreTokens()) {
        if (latestClass.isArray()) {
          latestClass = latestClass.getComponentType();
        } else if (Collection.class.isAssignableFrom(latestClass)) {
          Class<?> genericType = propDescriptor.genericType();

          if (genericType == null && deepIndexHintContainer == null) {
            MappingUtils
                    .throwMappingException("Hint(s) or Generics not specified.  Hint(s) or Generics must be specified for deep mapping with indexed field(s). Exception occurred determining deep field hierarchy for Class --> "
                            + parentClass.getName()
View Full Code Here

    return ((GetterSetterPropertyDescriptor) dpd).getWriteMethodPropertyType();
  }

  public Class<?> getGenericType(Class<?> runtimeDestClass) {
    DozerPropertyDescriptor propertyDescriptor = getDestPropertyDescriptor(runtimeDestClass);
    return propertyDescriptor.genericType();
  }

  public Object getDestValue(Object runtimeDestObj) {
    return getDestPropertyDescriptor(BuilderUtil.unwrapDestClassFromBuilder(runtimeDestObj)).getPropertyValue(runtimeDestObj);
  }
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.