com.pkrete.jsip2.messages.requests
Class SIP2PatronRequest

java.lang.Object
  extended by com.pkrete.jsip2.messages.SIP2Message
      extended by com.pkrete.jsip2.messages.SIP2MessageRequest
          extended by com.pkrete.jsip2.messages.requests.SIP2PatronRequest
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SIP2PatronInformationRequest, SIP2PatronStatusRequest

public abstract class SIP2PatronRequest
extends SIP2MessageRequest

This abstract class is a base class of the SIP2PatronStatusRequest and the SIP2PatronInformationRequest classes.

Author:
Petteri Kivimäki
See Also:
Serialized Form

Field Summary
protected  Language language
          Language requested by the patron.
 
Fields inherited from class com.pkrete.jsip2.messages.SIP2MessageRequest
counter, errorDetectionEnabled, feeAcknowledged, patronPassword, terminalPassword, useFeeAcknowledged
 
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 SIP2PatronRequest(String code)
          Constructs and initializes a new SIP2PatronRequest with the given command code.
 
Method Summary
 Language getLanguage()
          Returns the language requested by the patron.
 void setLanguage(Language language)
          Sets the language.
 
Methods inherited from class com.pkrete.jsip2.messages.SIP2MessageRequest
getCheckSum, getPatronPassword, getTerminalPassword, isErrorDetectionEnabled, isFeeAcknowledged, isUseFeeAcknowledged, setErrorDetectionEnabled, setFeeAcknowledged, setPatronPassword, setTerminalPassword, setUseFeeAcknowledged
 
Methods inherited from class com.pkrete.jsip2.messages.SIP2Message
getBibId, getCode, getCurrencyType, getCurrentLocation, getData, 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

language

protected Language language
Language requested by the patron.

Constructor Detail

SIP2PatronRequest

protected SIP2PatronRequest(String code)
Constructs and initializes a new SIP2PatronRequest with the given command code.

Parameters:
code - command code
Method Detail

getLanguage

public Language getLanguage()
Returns the language requested by the patron.

Returns:
language language code of the selected language

setLanguage

public void setLanguage(Language language)
Sets the language.

Parameters:
language - new value


Copyright © 2012-2014. All Rights Reserved.