org.rhq.core.domain.util
Class ResourceUtility

java.lang.Object
  extended by org.rhq.core.domain.util.ResourceUtility

public abstract class ResourceUtility
extends Object

A set of utility methods for working with Resources.

Since:
4.4

Method Summary
static Resource getChildResource(Resource parent, ResourceType type, String key)
           
static Set<Resource> getChildResources(Resource parentResource, ResourceFilter filter)
          Returns the set of child Resources defined by the given parent Resource, which are accepted by the specified filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getChildResource

public static Resource getChildResource(Resource parent,
                                        ResourceType type,
                                        String key)

getChildResources

@NotNull
public static Set<Resource> getChildResources(Resource parentResource,
                                                      ResourceFilter filter)
Returns the set of child Resources defined by the given parent Resource, which are accepted by the specified filter. If the filter is null, all of the parent Resource's children will be returned.

Parameters:
parentResource - the parent Resource
filter - the filter; may be null
Returns:
the set of MeasurementDefinition defined by the given Resource type, which are accepted by the specified filter, or, if the filter is null, all of the type's MeasurementDefinitions


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