Expose type of a query parser Property.

This commit is contained in:
Oliver Gierke
2011-03-31 18:24:03 +02:00
parent 6bb0923c14
commit 9931e885c0

View File

@@ -115,6 +115,18 @@ public class Property {
return name;
}
/**
* Returns the type of the property will return the plain resolved type for
* simple properties, the component type for any {@link Iterable} or the
* value type of a {@link java.util.Map} if the property is one.
*
* @return
*/
public Class<?> getType() {
return this.type.getType();
}
/**
* Returns the next nested {@link Property}.