/** * Gets the description of the module. * * @return the description of the module or {@code null}. * @deprecated Replaced by {@link #getDocumentation() getDocumentation().getValue()}. */ public String getDescription() { return this.getDocumentation().getValue(); }
/** * Setter for property {@code description}. * * @param value the new description of the module. * @deprecated Replaced by {@link #setDocumentation(org.jdtaus.core.container.Text) getDocumentation().setValue( value )}. */ public void setDescription( final String value ) { this.getDocumentation().setValue( value ); }
/** * Takes care of initializing fields when constructed from an 1.0.x object * stream. * * @throws ObjectStreamException if no scope can be resolved. */ private Object readResolve() throws ObjectStreamException { if ( this.getDocumentation().getValue() == null && this.description != null ) { this.getDocumentation().setValue( this.description ); } if ( "".equals( this.version ) ) { this.version = null; } return this; }
/** * 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; }
platformSpec.setDocumentation( this.getPlatformModule(). getDocumentation() );