Composite Pattern

Kind: pattern

Layer: Design Patterns Core

Record: architecture:composite-pattern

Severity: recommended

Scope: structure, tree, hierarchy

Canonical: Ontology

A design pattern that gives leaves and groups one interface, so a tree is traversed without checking which kind each node is.

Listed in Architecture principles, after Decorator Pattern and before Flyweight Pattern.

Requires

Reinforces

Enables

Conflicts with

In tension with

Tensions

Violated by

Severity

Category

Linked from