public class TypedPropertyCriteria extends Object implements PropertyCriteria
PropertyCriteria
Modifier and Type | Class and Description |
---|---|
static class |
TypedPropertyCriteria.MatchOption
Different options can be used to match a specific property based on its type.
|
Constructor and Description |
---|
TypedPropertyCriteria(Class<?> propertyClass) |
TypedPropertyCriteria(Class<?> propertyClass,
TypedPropertyCriteria.MatchOption matchOption) |
Modifier and Type | Method and Description |
---|---|
boolean |
fieldMatches(Field f)
Tests whether the specified field matches the criteria
|
boolean |
methodMatches(Method m)
Tests whether the specified method matches the criteria
|
public TypedPropertyCriteria(Class<?> propertyClass)
public TypedPropertyCriteria(Class<?> propertyClass, TypedPropertyCriteria.MatchOption matchOption)
public boolean fieldMatches(Field f)
PropertyCriteria
fieldMatches
in interface PropertyCriteria
public boolean methodMatches(Method m)
PropertyCriteria
methodMatches
in interface PropertyCriteria
Copyright © 2019 JBoss by Red Hat. All rights reserved.