Package com.cognifide.slice.mapper.annotation

Examples of com.cognifide.slice.mapper.annotation.Children


    List<?> result;
    Resource parentResource = resource.getChild(propertyName);
    if (parentResource == null) {
      result = Collections.EMPTY_LIST;
    } else {
      Children childrenAnnotation = field.getAnnotation(Children.class);
      Class<?> modelClass = childrenAnnotation.value();
      result = modelProvider.get().getChildModels(modelClass, parentResource);
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of com.cognifide.slice.mapper.annotation.Children

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.