Class ComponentAssembly

    • Field Detail

      • myComponents

        protected java.util.List<Component> myComponents
    • Constructor Detail

      • ComponentAssembly

        public ComponentAssembly​(ModelElement parent)
      • ComponentAssembly

        public ComponentAssembly​(ModelElement parent,
                                 java.lang.String name)
    • Method Detail

      • addComponent

        public void addComponent​(Component component)
        Adds the component to the assembly
        Parameters:
        component - , must not be null and must not be already part of another assembly
      • contains

        public boolean contains​(Component component)
        Checks if the assembly contains the supplied component
        Parameters:
        component -
        Returns:
      • removeComponent

        public void removeComponent​(Component component)
        Removes the component from the assembly. It must be part of the assembly.
        Parameters:
        component - , must not be null