/** * 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 implementations of all modules held by the * instance. * * @return a reference to all implementations of all modules held by the * instance. */ public Implementations getImplementations() { if ( this.implementations == null ) { this.implementations = new Implementations(); } final Collection col = new ArrayList( this.implementations.size() ); for ( int i = this.size() - 1; i >= 0; i-- ) { final Module mod = this.getModule( i ); for ( int j = mod.getImplementations().size() - 1; j >= 0; j-- ) { col.add( mod.getImplementations().getImplementation( j ) ); } } this.implementations.setImplementations( (Implementation[]) col.toArray( new Implementation[ col.size() ] ) ); return this.implementations; }
for ( int j = mod.getImplementations().size() - 1; j >= 0; j-- ) mod.getImplementations().getImplementation( j );
impls = value[i].getImplementations(); for ( int j = impls.size() - 1; j >= 0; j-- )
getImplementations().getImplementations();