/** * Creates a string representing the properties of the instance. * * @return a string representing the properties of the instance. */ private String internalString() { final StringBuffer buf = new StringBuffer( 500 ).append( '{' ). append( this.internalString( this ) ). append( ", name=" ).append( this.name ). append( ", version=" ).append( this.version ). append( ", properties=" ).append( this.properties ). append( ", messages=" ).append( this.messages ). append( ", specifications=" ).append( this.getSpecifications() ). append( ", implementations=" ).append( this.getImplementations() ); buf.append( '}' ).toString(); return buf.toString(); }
/** * Gets a collection of all specifications of all modules. * * @return a reference to all specifications of all modules held by the * instance. */ public Specifications getSpecifications() { if ( this.specifications == null ) { this.specifications = new Specifications(); } final Collection col = new ArrayList( this.specifications.size() ); for ( int i = this.size() - 1; i >= 0; i-- ) { final Module mod = this.getModule( i ); for ( int j = mod.getSpecifications().size() - 1; j >= 0; j-- ) { col.add( mod.getSpecifications().getSpecification( j ) ); } } this.specifications.setSpecifications( (Specification[]) col.toArray( new Specification[ col.size() ] ) ); return this.specifications; }
for ( int j = mod.getSpecifications().size() - 1; j >= 0; j-- ) mod.getSpecifications().getSpecification( j );
specs = value[i].getSpecifications(); for ( int j = specs.size() - 1; j >= 0; j-- )
providedPlatformModule.getSpecifications() != null ) for ( int i = providedPlatformModule.getSpecifications().size() - 1; i >= 0; i-- ) providedPlatformModule.getSpecifications(). getSpecification( i ).getIdentifier(), true );
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() ); } } } } }
getSpecifications().getSpecifications();