Class Stealable

java.lang.Object
  |
  +--LibraryItem
        |
        +--Stealable
All Implemented Interfaces:
Availability

public abstract class Stealable
extends LibraryItem
implements Availability

Abstract container for non-borrowable library items.

Version:
FINAL 17-OCT-2003
Author:
Ned Martin 40529927

Field Summary
private  java.lang.String availability
           
 
Fields inherited from class LibraryItem
callNumber, cost, usage
 
Constructor Summary
Stealable(java.lang.String id, int val)
          Construct a non-borrowable library item given its call number and cost.
 
Method Summary
private  java.lang.String getAvailability()
          Return availability
 boolean isLost()
          Has the library item been lost.
 void setAvailability(java.lang.String avail)
          Set whether item is on-shelf or off-shelf (lost).
 
Methods inherited from class LibraryItem
getCallNumber, getCost, getReplacementCost, getUsage, setUsage
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

availability

private java.lang.String availability
Constructor Detail

Stealable

public Stealable(java.lang.String id,
                 int val)
Construct a non-borrowable library item given its call number and cost. Only called by subclasses.
Method Detail

isLost

public boolean isLost()
Has the library item been lost.
Overrides:
isLost in class LibraryItem
Returns:
true if the library item is lost

setAvailability

public void setAvailability(java.lang.String avail)
Set whether item is on-shelf or off-shelf (lost). Either Y/N
Specified by:
setAvailability in interface Availability

getAvailability

private java.lang.String getAvailability()
Return availability
Returns:
String Y if item available or N if item not available