Package pierre.reports

Examples of pierre.reports.Tuple


    final Collection tuples = new ArrayList();
   
    for( Iterator iterator = tupleMaps.iterator(); iterator.hasNext(); )
    {
      nameToValue = (Map)iterator.next();
      final Tuple tuple = new Tuple();
      tuples.add( tuple );
     
      tuple.setRecordClassName( recordClassName );
      tuple.setTitle( title );
      tuple.setAttributeNames( attributeNames );

      for( Iterator iterator2 = nameToValue.entrySet().iterator(); iterator2.hasNext(); )
      {
        final Map.Entry entry = (Map.Entry)iterator2.next();
        tuple.setValue( (String)entry.getKey(), entry.getValue() );
      }
    }
   
    return (Tuple[])tuples.toArray( new Tuple[ tuples.size() ] );
  }
View Full Code Here


    for( int i = 0; i < tuples.length; i++ )
    {
      tupleProviders[ i ] = new DefaultTupleProvider( tuples[ i ] );
    }
   
    final Tuple tuple = (Tuple)CollectionUtils.getFirst( tuples );
   
    if( fieldNamesRequested != null && tuple != null )
    {
      fieldNamesRequested.clear();
      fieldNamesRequested.addAll( Arrays.asList( tuple.getAttributeNames() ) );
      fieldNamesRequested.remove( DOCUMENT );
    }

    return tupleProviders;
  }
View Full Code Here

   *
   *
   * @param titleID
   */
  public ExperimentDescription (String titleID) {
    tuple = new Tuple();
    attributes = new String[3];
    attributes[0]="titleID"; //$NON-NLS-1$;
    attributes[1]="start_date"; //$NON-NLS-1$;
    attributes[2]="person"; //$NON-NLS-1$;
    tuple.setAttributeNames(attributes);
View Full Code Here

TOP

Related Classes of pierre.reports.Tuple

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.