|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ebi.adfconverter.common.data.tabulardata.DataTableHeader
This Class represents the list of data table headers
HeaderItemPool,
TODO improve data structure - hashtable?
ADF MAGE-TOOL - MicroArray Informatics Team / European Bioinformatics Institute (EBI)
ArrayExpress License:
==============================================================================
Copyright (c) 2002 The European Bioinformatics Institute. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
3. The name ArrayExpress must not be used to endorse or promote products
derived from this software without prior written permission. For
written permission, please contact arrayexpress@ebi.ac.uk
4. Products derived from this software may not be called "ArrayExpress"
nor may "ArrayExpress" appear in their names without prior written
permission of the ArrayExpress developers.
5. Redistributions of any form whatsoever must retain the following
acknowledgment:
"This product includes software developed by ArrayExpress
(http://www.ebi.ac.uk/arrayexpress)"
THIS SOFTWARE IS PROVIDED BY THE ARRAYEXPRESS GROUP ``AS IS'' AND ANY
EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ARRAYEXPRESS GROUP OR
ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.
The European Bioinformatics Institute may publish revised and/or new
versions of this license with new releases of ArrayExpress software.
==============================================================================| Constructor Summary | |
DataTableHeader()
Constructor of the headerItem class |
|
DataTableHeader(int capacity)
Constructor of the headerItem class with an initial capacity for the header list |
|
| Method Summary | |
void |
addItem(HeaderItem item)
Adds an item to the header list for convenience |
void |
addItem(HeaderItem item,
int index)
Adds an item to the header list |
void |
clear()
cleans memory used when the header is not needed anymore |
boolean |
contains(HeaderItem item)
retrieves an item is already in this header |
HeaderItem |
getItem(int index)
retrieve an item from the header list at a given position |
HeaderItem |
getItem(java.lang.String itemName)
retrieve an item from the header list by a given name |
int |
getItemColumn(HeaderItem item)
retrieve the position of an item |
int |
getItemColumnByLabel(java.lang.String label)
retrieve the position of an item by its label |
java.util.Iterator |
getItems()
Retrieves the list of items contained in the header . |
int |
getLineNumber()
Retrieves the line number of the header in the data file. |
void |
InitNextItem()
initialised the parsing of item list Starts at the begin of the list |
HeaderItem |
nextItem()
Retrieves the next item in the list |
void |
removeItem(HeaderItem item)
Removes an given item from the header list |
void |
removeItem(int index)
Removes an item at a given position from the header list |
void |
setLineNumber(int lineNumber)
Sets the line number of the header in the data file |
int |
size()
Retrieves the header items number |
java.lang.String |
toString()
For debugging purpose. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DataTableHeader()
public DataTableHeader(int capacity)
capacity - the initial capacity of the list| Method Detail |
public void addItem(HeaderItem item)
item - the new item to add
public void addItem(HeaderItem item,
int index)
item - the new item to addindex - the position of the item the header filepublic void clear()
public boolean contains(HeaderItem item)
item - the item wanted to be test
public HeaderItem getItem(int index)
index - the position of the item to remove
public HeaderItem getItem(java.lang.String itemName)
itemName - the name of the search file
public int getItemColumn(HeaderItem item)
item - the item to find
public int getItemColumnByLabel(java.lang.String label)
label - the item label to find
public java.util.Iterator getItems()
public int getLineNumber()
public void InitNextItem()
public HeaderItem nextItem()
public void removeItem(HeaderItem item)
item - the new item to addpublic void removeItem(int index)
index - the item positiompublic void setLineNumber(int lineNumber)
lineNumber - the line number of the header in
the data filepublic int size()
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||