|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.ics.inf111.dvdvendor.app.Transaction
edu.uci.ics.inf111.dvdvendor.app.ReturnTransaction
public class ReturnTransaction
This class represents a Return Transaction in the point of sale. It contains the main characteristics of a Return Transaction and it extends the abstract class Transaction
Field Summary | |
---|---|
private BarCode |
barCode
The bar code for the transaction. |
Constructor Summary | |
---|---|
ReturnTransaction()
Constructor that returns a Return Transaction with blank values |
|
ReturnTransaction(java.lang.String line)
Constructor that assigns values based on the information on the TransactionDB |
Method Summary | |
---|---|
BarCode |
getBarCode()
An accessor method which returns the BarCode for the transaction. |
void |
setBarCode(BarCode barCode)
An accessor method which sets the BarCode for the transaction. |
java.lang.String |
toString()
Implementation of the abstract method to define the toString action. |
Methods inherited from class edu.uci.ics.inf111.dvdvendor.app.Transaction |
---|
createTransaction, getCardNumber, getCost, getDateTime, setCardNumber, setCost, setDateTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private BarCode barCode
Constructor Detail |
---|
public ReturnTransaction()
public ReturnTransaction(java.lang.String line) throws InvalidBarCodeException
line
- String that represents a line in the TransactionDB file
InvalidBarCodeException
- if the BarCode read is not validMethod Detail |
---|
public void setBarCode(BarCode barCode)
public BarCode getBarCode()
public java.lang.String toString()
toString
in class Transaction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |