com.blackledge.david.tivo.shopper
Class VshFile

java.lang.Object
  extended by com.blackledge.david.tivo.shopper.VshFile

public class VshFile
extends Object


Constructor Summary
VshFile()
           
VshFile(String fileName)
           
 
Method Summary
 boolean addItem(VshItem item)
           
 void addNeededItems(VshFile baseFile)
          Adds items that are marked needed
 List getCategories()
           
 String getHeader()
           
 Set getItems()
          this is actually a TreeSet so it automatically maintains natural order of the items.
 String getName()
           
 List getUnits()
           
 boolean removeItem(VshItem item)
           
 File saveAs(String fileName, String header)
          (Probably) overwrites the file if it exists.
 void setAllAutoDelete(boolean status)
           
 void setAllStatus(String status)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VshFile

public VshFile()

VshFile

public VshFile(String fileName)
Method Detail

saveAs

public File saveAs(String fileName,
                   String header)
            throws IOException
(Probably) overwrites the file if it exists.

Parameters:
fileName -
header -
Returns:
the file object for the file that was written.
Throws:
IOException

getHeader

public String getHeader()

addItem

public boolean addItem(VshItem item)

removeItem

public boolean removeItem(VshItem item)

setAllStatus

public void setAllStatus(String status)

setAllAutoDelete

public void setAllAutoDelete(boolean status)

getItems

public Set getItems()
this is actually a TreeSet so it automatically maintains natural order of the items.

Returns:
list of VshItems

addNeededItems

public void addNeededItems(VshFile baseFile)
Adds items that are marked needed

Parameters:
baseFile -

getName

public String getName()

size

public int size()

getCategories

public List getCategories()

getUnits

public List getUnits()