edu.jhu.ece.iacl.jist.pipeline.parameter
Class DataLabelCollection

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<DataLabel>
              extended by edu.jhu.ece.iacl.jist.pipeline.parameter.DataLabelCollection
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<DataLabel>, java.util.Collection<DataLabel>, java.util.List<DataLabel>, java.util.RandomAccess

public class DataLabelCollection
extends java.util.ArrayList<DataLabel>

Collection data labels.

Author:
Blake Lucas (bclucas@jhu.edu)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
DataLabelCollection()
           
 
Method Summary
 java.io.File getFile()
          Get location of XML file.
static DataLabelCollection read(java.io.File f)
          Read labels from XML file.
 void setFile(java.io.File file)
          Set location of XML file.
 boolean write(java.io.File f)
          Write labels to XML file.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

DataLabelCollection

public DataLabelCollection()
Method Detail

read

public static DataLabelCollection read(java.io.File f)
Read labels from XML file.

Parameters:
f - XML file
Returns:
label collection

getFile

public java.io.File getFile()
Get location of XML file.

Returns:
the file

setFile

public void setFile(java.io.File file)
Set location of XML file.

Parameters:
file - the file

write

public boolean write(java.io.File f)
Write labels to XML file.

Parameters:
f - XML file
Returns:
true if successful