org.rhq.core.domain.util
Interface ResourceFilter

All Known Implementing Classes:
TypeAndKeyResourceFilter

public interface ResourceFilter

A filter for Resources

Instances of this interface may be passed to the ResourceUtility.getChildResources(org.rhq.core.domain.resource.Resource, ResourceFilter) method.

Since:
4.4

Method Summary
 boolean accept(Resource resource)
          Tests whether or not the specified Resource should be included in a Resource list.
 

Method Detail

accept

boolean accept(Resource resource)
Tests whether or not the specified Resource should be included in a Resource list.

Parameters:
resource - The Resource to be tested
Returns:
true if and only if resource should be included


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.