Files
G4G0-1/Semester 2/Programming 2/Project/Part 2/LibraryItem.ctxt

30 lines
1.5 KiB
Plaintext

#BlueJ class context
comment0.params=
comment0.target=java.lang.String\ getTitle()
comment0.text=\n\ Field\ Accessor\ Start\n
comment1.params=
comment1.target=java.lang.String\ getItemCode()
comment10.params=
comment10.target=void\ printDetails()
comment10.text=\n\ \ \ \ public\ void\ printDetails()\n\ \ \ \ {\n\ \ \ \ \ \ \ \ System.out.println(\ title\ +\ "\ with\ an\ item\ code\ "\ +\ itemCode\ +\ "\ has\ been\ borrowed\ "\ +\ timesBorrowed\ +\ "\ times.");\n\ \ \ \ \ \ \ \ if(\ onLoan\ )\n\ \ \ \ \ \ \ \ \ \ \ \ System.out.println(\ "This\ item\ is\ at\ present\ on\ loan\ and\ when\ new\ cost\ "\ +\ cost\ +\ "\ pence.\\n"\ );\n\ \ \ \ \ \ \ \ else\ \n\ \ \ \ \ \ \ \ \ \ \ \ System.out.println(\ "This\ item\ is\ at\ present\ not\ on\ loan\ and\ when\ new\ cost\ "\ +\ cost\ +\ "\ pence.\\n"\ );\n\ \ \ \ }\n
comment11.params=detailScanner
comment11.target=void\ readItemData(java.util.Scanner)
comment2.params=
comment2.target=int\ getCost()
comment3.params=
comment3.target=int\ getTimesBorrowed()
comment4.params=
comment4.target=boolean\ getOnLoan()
comment5.params=title
comment5.target=void\ setTitle(java.lang.String)
comment5.text=\n\ Field\ Accessor\ End\n\ \n\ Field\ Mutator\ Start\n
comment6.params=itemCode
comment6.target=void\ setItemCode(java.lang.String)
comment7.params=cost
comment7.target=void\ setCost(int)
comment8.params=timesBorrowed
comment8.target=void\ setTimesBorrowed(int)
comment9.params=onLoan
comment9.target=void\ setOnLoan(boolean)
numComments=12