Class NamedPropertyCriteria
- java.lang.Object
-
- org.keycloak.models.utils.reflection.NamedPropertyCriteria
-
- All Implemented Interfaces:
PropertyCriteria
public class NamedPropertyCriteria extends Object implements PropertyCriteria
A criteria that matches a property based on name- See Also:
PropertyCriteria
-
-
Constructor Summary
Constructors Constructor Description NamedPropertyCriteria(String... propertyNames)
-
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
-
NamedPropertyCriteria
public NamedPropertyCriteria(String... propertyNames)
-
-
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
-
-