Context: |
A recursive object structure (e.g. file directory tree) has to be traversed from the outside (e.g. view traversing its document), applying routine functionality (e.g. formatting for display). |
||||||||
Challenges: |
|
||||||||
Skill: |
|||||||||
Participants: |
|
||||||||
Signature: |
Both particular Leaves and default Composite are Concrete Components. Composite contains (or references) Components. The Particular Composite may choose to limit the scope of the inherited association (see rectangular inheritance of association). |
||||||||
Used patterns and idioms: |
Recursive Object-Structure idiom, Rectangular Inheritance of Association idiom, unified interface. |
||||||||
Used by: |
Document/View architectures (document side), generic presentation and report systems, arithmetic expressions, parse trees, rule bases. |
||||||||
Known issues: |
|||||||||
Scope: |
General. |