Changeset 265


Ignore:
Timestamp:
Apr 27, 2007, 2:58:06 PM (15 years ago)
Author:
Johan Enell
Message:

the sections sets default value at construction

Location:
trunk/se/lu/onk/BaseFile/src/basefile
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/se/lu/onk/BaseFile/src/basefile/BASEFileAssaySection.java

    r250 r265  
    3737  {
    3838    super("assays");
     39    this.setAnnotationColumns("");
    3940  }
    4041 
     
    8283  {
    8384    return getColIndex("annotationColumns", col);
    84   }
    85  
    86   public final List<String> getColumns()
    87   {
    88     return findFieldList("columns");
    89   }
    90  
    91   public final int getColumnsColIndex(String col) throws BASEFileException
    92   {
    93     return getColIndex("columns", col);
    94   }
    95 
    96   public final String setColumns(Object... values)
    97   {
    98     return setHeader("columns", values);
    9985  }
    10086
  • trunk/se/lu/onk/BaseFile/src/basefile/BASEFileDataSection.java

    r250 r265  
    2424package basefile;
    2525
     26import java.util.List;
     27
    2628public abstract class BASEFileDataSection extends BASEFileSection
    2729{
     
    4648  {
    4749    super(type);
     50    this.setCount(0);
     51    this.setColumns();
    4852  }
    4953
     
    6165  {
    6266    return width;
     67  }
     68 
     69  public final List<String> getColumns()
     70  {
     71    return this.findFieldList("columns");
     72  }
     73
     74  public final int getColumnsColIndex(String col) throws BASEFileException
     75  {
     76    return this.getColIndex("columns", col);
     77  }
     78
     79  public final String setColumns(Object... values)
     80  {
     81    return setHeader("columns", values);
    6382  }
    6483 
  • trunk/se/lu/onk/BaseFile/src/basefile/BASEFileSpotSection.java

    r253 r265  
    3535  {
    3636    super("spots");
     37    this.setChannels(0);
     38    this.setAssayFields();
     39    this.setAssays();
    3740  }
    3841 
     
    128131    return reporterData.set(i, reporter);
    129132  }
    130  
    131   public List<String> getColumns()
    132   {
    133     return this.findFieldList("columns");
    134   }
    135 
    136   public int getColumnsColIndex(String col) throws BASEFileException
    137   {
    138     return this.getColIndex("columns", col);
    139   }
    140133
    141134  public List<Integer> getAssays()
     
    220213  {
    221214    return setHeader("assayFields", values);
    222   }
    223 
    224   public final String setColumns(Object... values)
    225   {
    226     return setHeader("columns", values);
    227215  }
    228216
Note: See TracChangeset for help on using the changeset viewer.