pl.edu.agh.cast.importer.base.data
Class RawTabularData

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<E>
              extended by java.util.LinkedList<RawDataRow>
                  extended by pl.edu.agh.cast.importer.base.data.RawTabularData
All Implemented Interfaces:
Serializable, Cloneable, Iterable<RawDataRow>, Collection<RawDataRow>, Deque<RawDataRow>, List<RawDataRow>, Queue<RawDataRow>, ITabularData<RawDataRow>

public class RawTabularData
extends LinkedList<RawDataRow>
implements ITabularData<RawDataRow>

Class, which represents the data read from the source data file in a form of a table with unanalyzed records. It extends LinkedList of RawDataRows, which do not need to have the same number of columns.

Author:
AGH CAST Team
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
RawTabularData()
          The default constructor.
RawTabularData(RawTabularData data)
          The copying constructor.
 
Method Summary
 List<String> getColumnCaptions()
          Retrieves the captions of columns of the tabular data.
 int getColumnsCount()
          Retrieves the number of columns of the tabular data.
 List<String> getDistinctTokensInColumn(int columnIndex)
          Retrieves all distinct tokens in column with the specified index.
 String getSheetName()
           
 void setSheetName(String name)
           
 
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 
Methods inherited from interface java.util.Deque
iterator
 

Constructor Detail

RawTabularData

public RawTabularData()
The default constructor.


RawTabularData

public RawTabularData(RawTabularData data)
The copying constructor. Constructs a raw tabular data containing the raw data rows of the specified data, in the order they are returned by the specified data's iterator.

Parameters:
data - the raw tabular data to copy the raw data rows from
Method Detail

getColumnsCount

public int getColumnsCount()
Retrieves the number of columns of the tabular data.

Specified by:
getColumnsCount in interface ITabularData<RawDataRow>
Returns:
the columns count
See Also:
ITabularData.getColumnsCount()

getColumnCaptions

public List<String> getColumnCaptions()
Retrieves the captions of columns of the tabular data.

Specified by:
getColumnCaptions in interface ITabularData<RawDataRow>
Returns:
the columns' captions
See Also:
ITabularData.getColumnCaptions()

getDistinctTokensInColumn

public List<String> getDistinctTokensInColumn(int columnIndex)
Retrieves all distinct tokens in column with the specified index.

Parameters:
columnIndex - the column index
Returns:
distinct tokens in specified column

setSheetName

public void setSheetName(String name)

getSheetName

public String getSheetName()


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.