/** * Gets the description of the specification. * * @return the description of the specification 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 specification. * @deprecated Replaced by {@link #getDocumentation() 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.scope == SCOPE_MULTITON && this.singleton ) { this.scope = SCOPE_SINGLETON; } if ( this.getDocumentation().getValue() == null && this.description != null ) { this.getDocumentation().setValue( this.description ); } return this; }
defaultImpl.setVendor( implVendor ); defaultImpl.setDocumentation( platformSpec.getDocumentation() );
private void updateSpecificationReferences() { for ( int m = this.modules.size() - 1; m >= 0; m-- ) { final Module module = this.modules.getModule( m ); for ( int s = module.getSpecifications().size() - 1; s >= 0; s-- ) { final Specification spec = module.getSpecifications(). getSpecification( s ); final Collection references = (Collection) this.specifications.get( spec.getIdentifier() ); assert references != null : "Expected specification meta-data."; for ( final Iterator it = references.iterator(); it.hasNext(); ) { final Specification reference = (Specification) it.next(); reference.setModuleName( module.getName() ); if ( !reference.equals( spec ) ) { reference.setDocumentation( spec.getDocumentation() ); reference.setMultiplicity( spec.getMultiplicity() ); reference.setProperties( spec.getProperties() ); reference.setScope( spec.getScope() ); reference.setStateless( spec.isStateless() ); reference.setVendor( spec.getVendor() ); reference.setModelVersion( spec.getModelVersion() ); } } } } }