org.specrunner.util.composite
Interface IComposite<P extends IComposite<P,T>,T>

Type Parameters:
P - The parent type.
T - The children type.
All Known Subinterfaces:
IAnnotatorFactoryGroup, IAnnotatorGroup, INamespaceProcessorGroup, IPluginFactoryGroup, IPluginGroup, IPresentationGroup, IReporterFactoryGroup, IReporterGroup, ISourceDumperFactoryGroup, ISourceDumperGroup, ITransformerGroup
All Known Implementing Classes:
AnnotatorFactoryGroupImpl, AnnotatorGroupImpl, CompositeImpl, NamespaceProcessorGroupDefault, PluginFactoryGroupDefault, PluginFactoryGroupImpl, PluginGroupImpl, PresentationGroupImpl, ReporterFactoryGroupImpl, ReporterGroupImpl, SourceDumperGroupImpl, TransformerGroupImpl

public interface IComposite<P extends IComposite<P,T>,T>

Basic composite interface.

Author:
Thiago Santos.

Method Summary
 P add(T child)
          Add a child and return the object itself.
 List<T> getChildren()
          Get the children list.
 boolean isEmpty()
          Check if object has children.
 

Method Detail

isEmpty

boolean isEmpty()
Check if object has children.

Returns:
true, if has none children, false, otherwise.

getChildren

List<T> getChildren()
Get the children list.

Returns:
The children list.

add

P add(T child)
Add a child and return the object itself.

Parameters:
child - The child.
Returns:
The composite itself.


Copyright © 2014. All rights reserved.