Class TypedPropertyCriteria
- java.lang.Object
-
- org.keycloak.models.utils.reflection.TypedPropertyCriteria
-
- All Implemented Interfaces:
PropertyCriteria
public class TypedPropertyCriteria extends Object implements PropertyCriteria
A criteria that matches a property based on its type- See Also:
PropertyCriteria
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TypedPropertyCriteria.MatchOption
Different options can be used to match a specific property based on its type.
-
Constructor Summary
Constructors Constructor Description TypedPropertyCriteria(Class<?> propertyClass)
TypedPropertyCriteria(Class<?> propertyClass, TypedPropertyCriteria.MatchOption matchOption)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
fieldMatches(Field f)
boolean
methodMatches(Method m)
Tests whether the specified method matches the criteria
-
-
-
Constructor Detail
-
TypedPropertyCriteria
public TypedPropertyCriteria(Class<?> propertyClass)
-
TypedPropertyCriteria
public TypedPropertyCriteria(Class<?> propertyClass, TypedPropertyCriteria.MatchOption matchOption)
-
-
Method Detail
-
fieldMatches
public boolean fieldMatches(Field f)
-
methodMatches
public boolean methodMatches(Method m)
Description copied from interface:PropertyCriteria
Tests whether the specified method matches the criteria- Specified by:
methodMatches
in interfacePropertyCriteria
- Returns:
- true if the method matches
-
-