net.sf.composite
Interface ListableComposite

All Superinterfaces:
Composite
All Known Implementing Classes:
BaseComposite, CompositeDecorator

public interface ListableComposite
extends Composite

A composite that can be queried for information about its components.

Since:
Dec 27, 2004
Author:
Matt Sgarlata

Method Summary
 boolean containsComponentOfType(java.lang.Class componentType)
          Indicates whether one or more components of the given type make up this composite.
 java.lang.Object[] getComponentsOfType(java.lang.Class componentType)
          Returns the components that make up this composite that are of the given type.
 

Method Detail

getComponentsOfType

java.lang.Object[] getComponentsOfType(java.lang.Class componentType)
                                       throws CompositeException
Returns the components that make up this composite that are of the given type.

Parameters:
componentType - the type of component for which we are searching
Returns:
the components that make up this composite that are of the given type
Throws:
CompositeException - if an error occurrs
See Also:
ContainerUtils.getElementsOfType(Object[], Class)

containsComponentOfType

boolean containsComponentOfType(java.lang.Class componentType)
                                throws CompositeException
Indicates whether one or more components of the given type make up this composite.

Parameters:
componentType - the type of component for which we are searching
Returns:
true if one or more of the components of the given type make up this composite or
false, otherwise
Throws:
CompositeException - if an error occurrs


Copyright © 2005-2008.