Examples of expandable()


Examples of org.eclipse.orion.server.core.resources.annotations.PropertyDescription.expandable()

    try {
      for (Property property : resourceShape.getProperties()) {
        Method getter = ReflectionHelper.findGetterForPropertyName(resource.getClass(), property.getName());
        Object value = ReflectionHelper.callGetter(resource, getter);
        PropertyDescription propertyDescriptionAnnotation = ReflectionHelper.getAnnotation(getter, PropertyDescription.class);
        if (propertyDescriptionAnnotation.expandable()) {
          ResourceShape nestedResourceShape = property.getResourceShape();
          Assert.isNotNull(nestedResourceShape, "Could not find resource shape definition for: " + property.getName()); //$NON-NLS-1$
          result.put(property.getName(), serialize(value, nestedResourceShape));
        } else {
          result.put(property.getName(), value);
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.