Module module = new Module(); module.setModelVersion( modelVersion ); module.setName( e.getAttributeNS( namespace, "name" ) );
/** * Gets the {@code Module} holding platform specifications. * * @return the {@code Module} holding platform specifications. */ protected Module getPlatformModule() { if ( this.platformModule == null ) { final String description = DefaultModelBundle.getInstance(). getPlatformModuleDescriptionMessage( Locale.getDefault() ); this.platformModule = new Module(); this.platformModule.getDocumentation().setValue( description ); this.platformModule.setName( PLATFORM_MODULE_NAME ); this.platformModule.setVersion( PLATFORM_MODULE_VERSION ); if ( LOGGER.isLoggable( Level.CONFIG ) ) { LOGGER.log( Level.CONFIG, DefaultModelBundle.getInstance(). getAddedPlatformModuleMessage( Locale.getDefault(), this.platformModule.getDocumentation().getValue() ) ); } } return this.platformModule; }