net.sf.composite
Interface StrictlyTypedComposite

All Known Implementing Classes:
BaseComposite, CompositeDecorator

public interface StrictlyTypedComposite

A composite that requires that all of its components implement a given interface. The interface is specified by getComponentType().

Since:
Dec 28, 2004
Author:
Matt Sgarlata

Method Summary
 java.lang.Class getComponentType()
          Indicates a type which must be implemented by each of the components of this composite
 

Method Detail

getComponentType

java.lang.Class getComponentType()
                                 throws CompositeException
Indicates a type which must be implemented by each of the components of this composite

Returns:
the type which must be implemented by each of the components of this composite
Throws:
CompositeException - if an error occurrs


Copyright © 2005-2008.