org.jboss.seam.solder.properties.query
Class NamedPropertyCriteria

java.lang.Object
  extended by org.jboss.seam.solder.properties.query.NamedPropertyCriteria
All Implemented Interfaces:
PropertyCriteria

public class NamedPropertyCriteria
extends Object
implements PropertyCriteria

A criteria that matches a property based on name

Author:
Shane Bryzak
See Also:
PropertyCriteria

Constructor Summary
NamedPropertyCriteria(String... propertyNames)
           
 
Method Summary
 boolean fieldMatches(Field f)
          Tests whether the specified field matches the criteria
 boolean methodMatches(Method m)
          Tests whether the specified method matches the criteria
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedPropertyCriteria

public NamedPropertyCriteria(String... propertyNames)
Method Detail

fieldMatches

public boolean fieldMatches(Field f)
Description copied from interface: PropertyCriteria
Tests whether the specified field matches the criteria

Specified by:
fieldMatches in interface PropertyCriteria
Returns:
true if the field matches

methodMatches

public boolean methodMatches(Method m)
Description copied from interface: PropertyCriteria
Tests whether the specified method matches the criteria

Specified by:
methodMatches in interface PropertyCriteria
Returns:
true if the method matches


Copyright © 2008-2011 Seam Framework. All Rights Reserved.