public void addSubmodule ( final Module submodule ) { if ( ! submodules . contains ( submodule ) ) { submodule . setSubmodule ( true ) ; if ( promoted ) { submodule . setPromoted ( promoted ) ; } submodules . add ( submodule ) ; } }
Adds a submodule to the module .