public final class FilteringHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.annotation.Annotation[] |
EMPTY_ANNOTATIONS
Empty annotation array.
|
private static java.util.concurrent.ConcurrentMap<java.lang.reflect.Type,java.lang.Class<?>> |
ENTITY_CLASSES |
Modifier | Constructor and Description |
---|---|
private |
FilteringHelper()
Prevent instantiation.
|
Modifier and Type | Method and Description |
---|---|
private static java.lang.Class<?> |
_getEntityClass(java.lang.reflect.Type genericType)
Note: This method was copied from
MOXyJsonProvider . |
static boolean |
filterableEntityClass(java.lang.Class<?> clazz)
Determine whether given class is filterable by entity-filtering.
|
static java.util.Set<java.lang.String> |
getDefaultFilteringScope()
Get a set containing default filtering scope.
|
static java.lang.Class<?> |
getEntityClass(java.lang.reflect.Type genericType)
A convenience method to get the domain class (i.e.
|
static java.util.Map<java.lang.String,java.lang.reflect.Method> |
getPropertyMethods(java.lang.Class<?> clazz,
boolean isGetter)
Get accessor method mappings (field -> getter/setter) for given class.
|
public static final java.lang.annotation.Annotation[] EMPTY_ANNOTATIONS
private static final java.util.concurrent.ConcurrentMap<java.lang.reflect.Type,java.lang.Class<?>> ENTITY_CLASSES
public static boolean filterableEntityClass(java.lang.Class<?> clazz)
java.*
.clazz
- entity class to be examined.true
whether the class is filterable, false otherwise
.public static java.lang.Class<?> getEntityClass(java.lang.reflect.Type genericType)
genericType
- type to obtain entity domain class for.private static java.lang.Class<?> _getEntityClass(java.lang.reflect.Type genericType)
MOXyJsonProvider
.public static java.util.Map<java.lang.String,java.lang.reflect.Method> getPropertyMethods(java.lang.Class<?> clazz, boolean isGetter)
clazz
- entity class to obtain property methods for.isGetter
- flag determining whether to look for getters or setters.public static java.util.Set<java.lang.String> getDefaultFilteringScope()