DPML
DPML Metro: Parts Directive
HomeUtilitiesStationMetro
Parts Directive
Description

A <parts> elements enables the declaration of 0..n nested components.

Part Nested Elements
component 0..n nested components.
part 0..n nested components references.
Example

The following XML fragment demonstrates a component directive containing a single nested part.

  <component xmlns="dpml:metro" name="demo" class="org.acme.Demo">
    <parts>
      <component key="widget" name="widget" class="org.acme.Widget">
        <context>
          <entry key="color" method="BLUE"/>
        </context>
      </component>
    </parts>
  </component>