ComponentDefinition implementation that holds one or more nested
ComponentDefinition instances, aggregating them into a named group
of components.
getNestedComponents()
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final List | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public | CompositeComponentDefinition(String
the name of the composite component name, Object the source element that defines the root of the composite component source)Create a new CompositeComponentDefinition. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addNestedComponent(ComponentDefinition
the nested component to add component)Add the given component as nested element of this composite component. |
| public String | getName()
Implements org. Get the user-visible name of this |
| public ComponentDefinition[] | Returns: the array of nested components, or an empty array if noneReturn the nested components that this composite component holds. |
| public Object | getSource()
Overrides default org. Return the configuration source |
| name | back to summary |
|---|---|
| private final String name | |
| nestedComponents | back to summary |
|---|---|
| private final List<ComponentDefinition> nestedComponents | |
| source | back to summary |
|---|---|
| private final Object source
| |
| CompositeComponentDefinition | back to summary |
|---|---|
| public CompositeComponentDefinition(String name, Object source) Create a new CompositeComponentDefinition. | |
| addNestedComponent | back to summary |
|---|---|
| public void addNestedComponent(ComponentDefinition component) Add the given component as nested element of this composite component.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Get the user-visible name of this This should link back directly to the corresponding configuration data for this component in a given context.
| |
| getNestedComponents | back to summary |
|---|---|
| public ComponentDefinition[] getNestedComponents() Return the nested components that this composite component holds.
| |
| getSource | back to summary |
|---|---|
| public Object getSource() Overrides default org. Doc from org. Return the configuration source | |