com.blackledge.david.tivo.shopper
Class VshItem

java.lang.Object
  extended by com.blackledge.david.tivo.shopper.VshItem
All Implemented Interfaces:
Comparable

public class VshItem
extends Object
implements Comparable

Needed, Item, Store, Category, Custom1, Custom2, Qty, Unit, Price, Coupon, Auto-Delete, Tax, Notes Needed = N for Needed, C for Completed, or blank for neither. Coupon, Auto-Delete and Tax are marked with an X if the value is true. Store, Custom2 and Price may contain multiple values separated by semi-colons (;) if that Item is assigned to multiple stores.

Version:
$Revision: 1.1 $

Constructor Summary
VshItem()
           
VshItem(String vshLine)
           
VshItem(VshItem other)
          Make a copy of the supplied item.
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object obj)
           
 String getCategory()
           
 String getCustom1()
           
 List getCustom2()
           
 String getItem()
           
 String getNeeded()
           
 String getNotes()
           
 String getPreviousItem()
           
 List getPrice()
           
 String getQty()
           
 String getStatus()
          non-Vsh status string
 List getStore()
           
 String getUnit()
           
 boolean isAutoDelete()
           
 boolean isCompleted()
           
 boolean isCoupon()
           
 boolean isNeeded()
           
 boolean isTax()
           
 void setAutoDelete(boolean autoDelete)
           
 void setCategory(String category)
           
 void setCompleted()
           
 void setCoupon(boolean coupon)
           
 void setCustom1(String custom1)
           
 void setCustom2(List custom2)
           
 void setItem(String item)
           
 void setNeeded()
           
 void setNeeded(String needed)
           
 void setNotes(String notes)
           
 void setPrice(List price)
           
 void setQty(String qty)
           
 void setStatus(String status)
          non-Vsh status string
 void setStore(List store)
           
 void setTax(boolean tax)
           
 void setUnit(String unit)
           
 void toggleNeeded()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VshItem

public VshItem()

VshItem

public VshItem(VshItem other)
Make a copy of the supplied item. does not copy status.

Parameters:
other -

VshItem

public VshItem(String vshLine)
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

setStatus

public void setStatus(String status)
non-Vsh status string

Parameters:
status -

getStatus

public String getStatus()
non-Vsh status string

Returns:
the string that was set (defaults to "")

isAutoDelete

public boolean isAutoDelete()

setAutoDelete

public void setAutoDelete(boolean autoDelete)

getCategory

public String getCategory()

setCategory

public void setCategory(String category)

isCoupon

public boolean isCoupon()

setCoupon

public void setCoupon(boolean coupon)

getCustom1

public String getCustom1()

setCustom1

public void setCustom1(String custom1)

getCustom2

public List getCustom2()

setCustom2

public void setCustom2(List custom2)

getItem

public String getItem()

setItem

public void setItem(String item)

getPreviousItem

public String getPreviousItem()

getNeeded

public String getNeeded()

setNeeded

public void setNeeded(String needed)

isNeeded

public boolean isNeeded()

setNeeded

public void setNeeded()

isCompleted

public boolean isCompleted()

setCompleted

public void setCompleted()

getNotes

public String getNotes()

setNotes

public void setNotes(String notes)

getPrice

public List getPrice()

setPrice

public void setPrice(List price)

getQty

public String getQty()

setQty

public void setQty(String qty)

getStore

public List getStore()

setStore

public void setStore(List store)

isTax

public boolean isTax()

setTax

public void setTax(boolean tax)

getUnit

public String getUnit()

setUnit

public void setUnit(String unit)

toggleNeeded

public void toggleNeeded()

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable