Package org.modelmapper.internal.PropertyInfoImpl

Examples of org.modelmapper.internal.PropertyInfoImpl.ValueReaderPropertyInfo


    String[] propertyNames = DOT_PATTERN.split(sourcePropertyPath);
    sourceAccessors = new ArrayList<Accessor>(propertyNames.length);
    ValueReader<?> valueReader = configuration.valueAccessStore.getFirstSupportedReader(sourceType);
    if (valueReader != null)
      for (String propertyName : propertyNames)
        sourceAccessors.add(new ValueReaderPropertyInfo(valueReader, Object.class, propertyName));
    else {
      Accessor accessor = null;
      for (String propertyName : propertyNames) {
        Class<?> propertyType = accessor == null ? sourceType : accessor.getType();
        TypeInfoRegistry.typeInfoFor(propertyType, configuration).getAccessors();
View Full Code Here


      NameTransformer nameTransformer = configuration.getSourceNameTransformer();
      for (String memberName : valueReader.memberNames(source)) {
        Object sourceValue = valueReader.get(source, memberName);
        if (sourceValue != null)
          accessors.put(nameTransformer.transform(memberName, NameableType.GENERIC),
              new ValueReaderPropertyInfo(valueReader, sourceValue, memberName));
      }
    }
    return accessors;
  }
View Full Code Here

TOP

Related Classes of org.modelmapper.internal.PropertyInfoImpl.ValueReaderPropertyInfo

Copyright © 2018 www.massapicom. 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.