com.pkrete.jsip2.messages.responses
Class SIP2CirculationTransactionResponse

java.lang.Object
  extended by com.pkrete.jsip2.messages.SIP2Message
      extended by com.pkrete.jsip2.messages.SIP2MessageResponse
          extended by com.pkrete.jsip2.messages.responses.SIP2CirculationTransactionResponse
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SIP2CheckinResponse, SIP2CheckoutResponse, SIP2HoldResponse

public abstract class SIP2CirculationTransactionResponse
extends SIP2MessageResponse

This abstract class is a base class of the SIP2CheckoutResponse and the SIP2CheckinResponse classes.

Author:
Petteri Kivimäki
See Also:
Serialized Form

Field Summary
protected  boolean magneticMedia
          Tells if the item is magnetic media and the system will then handle the security discharge accordingly.
protected  boolean magneticMediaSupported
          Tells if the ILS identifies magnetic media items.
 
Fields inherited from class com.pkrete.jsip2.messages.SIP2MessageResponse
data, dueDate, mediaType, ok, permanentLocation, printLine, screenMessage
 
Fields inherited from class com.pkrete.jsip2.messages.SIP2Message
bibId, checkSum, code, currencyType, currentLocation, expirationDate, feeAmount, feeType, institutionId, itemIdentifier, itemProperties, patronIdentifier, pickupLocation, sequence, titleIdentifier, transactionDate, transactionId
 
Constructor Summary
protected SIP2CirculationTransactionResponse(String code, String data)
          Constructs and initializes a new SIP2CirculationTransactionResponse object containing the given data.
 
Method Summary
 boolean isMagneticMedia()
          Returns true if and only if the item is magnetic media and the ILS identifies magnetic media.
 boolean isMagneticMediaSupported()
          Returns true if and only if the ILS identifies magnetic media items.
 void setMagneticMedia(boolean magneticMedia)
          Sets the value that tells if the item is magnetic media and the ILS identifies magnetic media.
 void setMagneticMediaSupported(boolean magneticMediaSupported)
          Sets the value that tells if the ILS identifies magnetic media items.
 
Methods inherited from class com.pkrete.jsip2.messages.SIP2MessageResponse
countChecksum, getData, getDueDate, getMediaType, getPermanentLocation, getPrintLine, getScreenMessage, isOk, isValid, setData, setDueDate, setMediaType, setOk, setPermanentLocation, setPrintLine, setScreenMessage
 
Methods inherited from class com.pkrete.jsip2.messages.SIP2Message
getBibId, getCheckSum, getCode, getCurrencyType, getCurrentLocation, getExpirationDate, getFeeAmount, getFeeType, getInstitutionId, getItemIdentifier, getItemProperties, getPatronIdentifier, getPickupLocation, getSequence, getTitleIdentifier, getTransactionDate, getTransactionId, isChecksum, isSequence, setBibId, setCheckSum, setCode, setCurrencyType, setCurrentLocation, setExpirationDate, setFeeAmount, setFeeType, setInstitutionId, setItemIdentifier, setItemProperties, setPatronIdentifier, setPickupLocation, setSequence, setTitleIdentifier, setTransactionDate, setTransactionId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

magneticMediaSupported

protected boolean magneticMediaSupported
Tells if the ILS identifies magnetic media items. If this value is false, then also magneticMedia is false.


magneticMedia

protected boolean magneticMedia
Tells if the item is magnetic media and the system will then handle the security discharge accordingly. This value should be used if and only if the ILS identifies magnetic media items, which means that magneticMediaSupported should be true.

Constructor Detail

SIP2CirculationTransactionResponse

protected SIP2CirculationTransactionResponse(String code,
                                             String data)
Constructs and initializes a new SIP2CirculationTransactionResponse object containing the given data.

Parameters:
code - command identifier
data - the data that the message contains
Method Detail

isMagneticMediaSupported

public boolean isMagneticMediaSupported()
Returns true if and only if the ILS identifies magnetic media items. Otherwise returns false.

Returns:
true if the ILS identifies magnetic media item, otherwise false

setMagneticMediaSupported

public void setMagneticMediaSupported(boolean magneticMediaSupported)
Sets the value that tells if the ILS identifies magnetic media items.

Parameters:
magneticMediaSupported - new value

isMagneticMedia

public boolean isMagneticMedia()
Returns true if and only if the item is magnetic media and the ILS identifies magnetic media. Otherwise returns false.

Returns:
true if item is magnetic media and ILS identifies magnetic media, otherwise false

setMagneticMedia

public void setMagneticMedia(boolean magneticMedia)
Sets the value that tells if the item is magnetic media and the ILS identifies magnetic media.

Parameters:
magneticMedia - new value


Copyright © 2012-2014. All Rights Reserved.