|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pkrete.jsip2.messages.SIP2Message
public abstract class SIP2Message
This abstract class is a base class for all the SIP2 request and response messages.
| Field Summary | |
|---|---|
protected String |
bibId
Bibliographic id of the record. |
protected String |
checkSum
Checksum is four ASCII charater digits representing the binary sum of the characters included the message |
protected String |
code
Command identifier |
protected CurrencyType |
currencyType
The currency in which the fee amount is given. |
protected String |
currentLocation
The current location of the item. |
protected String |
expirationDate
The expiration date of the hold. |
protected String |
feeAmount
The amount of fees. |
protected FeeType |
feeType
The type of the fee. |
protected String |
institutionId
Library's institution id. |
protected String |
itemIdentifier
Identifying value for the item. |
protected String |
itemProperties
Specific item information that can be used for identifying an item, such as item weight, size, security marker, etc. |
protected String |
patronIdentifier
An identifying value for the patron, library card's barcode number for example. |
protected String |
pickupLocation
The pickup location of the hold. |
protected int |
sequence
Sequence number of the message (0-9) |
protected String |
titleIdentifier
Identifying value for the title. |
protected String |
transactionDate
Date and time of the request. 18-char, fixed-length field: YYYYMMDDZZZZHHMMSS. |
protected String |
transactionId
A transaction id that is assigned by the ILS or by a payment device, for auditing purposes to track cash flow. |
| Constructor Summary | |
|---|---|
protected |
SIP2Message(String code)
Constructs and initializes a new SIP2Message object. |
| Method Summary | |
|---|---|
String |
getBibId()
Returns the bibliographic id of a record. |
String |
getCheckSum()
Returns the checksum representing the binary sum of the characters included the message. |
String |
getCode()
Returns the command identifier of this message. |
CurrencyType |
getCurrencyType()
Returns the currency type of fees. |
String |
getCurrentLocation()
Returns the current location of the item. |
abstract String |
getData()
Returns a string presentation of the message. |
String |
getExpirationDate()
Returns the expiration date of the hold. 18-char, fixed-length field: YYYYMMDDZZZZHHMMSS. |
String |
getFeeAmount()
Returns the amount of fees. |
FeeType |
getFeeType()
Returns the fee type. |
String |
getInstitutionId()
Returns the library's id. |
String |
getItemIdentifier()
Returns the item identifier. |
String |
getItemProperties()
Returns a specific item information that can be used for identifying an item, such as item weight, size, security marker, etc. |
String |
getPatronIdentifier()
Returns the patron identifier, library card's barcode number for example. |
String |
getPickupLocation()
Returns the pickup location of the hold. |
int |
getSequence()
Returns the sequence nnumber of the message that is between 0 and 9. |
String |
getTitleIdentifier()
Returns an identifying value for the title. |
String |
getTransactionDate()
Return the transaction date in the SIP2 format: 18-char, fixed-length field: YYYYMMDDZZZZHHMMSS. |
String |
getTransactionId()
Returns the transaction id that is assigned by the ILS or by a payment device, for auditing purposes to track cash flow. |
boolean |
isChecksum()
Returns true, if and only if, the checksum variable is present in the message. |
boolean |
isSequence()
Returns true, if and only if, the sequence variable is present in the message. |
void |
setBibId(String bibId)
Sets the bibliographic id of a record. |
void |
setCheckSum(String checkSum)
Changes the checksum representing the binary sum of the characters included the message. |
void |
setCode(String code)
Changes the command identifier of this message |
void |
setCurrencyType(CurrencyType currencyType)
Sets the currency type of fees. |
void |
setCurrentLocation(String currentLocation)
Sets the current location of the item. |
void |
setExpirationDate(String expirationDate)
Sets the expiration date of the hold. 18-char, fixed-length field: YYYYMMDDZZZZHHMMSS. |
void |
setFeeAmount(String feeAmount)
Sets the amount of fees. |
void |
setFeeType(FeeType feeType)
Sets the fee type. |
void |
setInstitutionId(String institutionId)
Sets the library's id. |
void |
setItemIdentifier(String itemIdentifier)
Sets the item idetifier. |
void |
setItemProperties(String itemProperties)
Changes the specific item information that can be used for identifying an item, such as item weight, size, security marker, etc. |
void |
setPatronIdentifier(String patronIdentifier)
Sets the patron idetifier. |
void |
setPickupLocation(String pickupLocation)
Sets the pickup location of the hold. |
void |
setSequence(int sequence)
Changes the sequence number of the message. |
void |
setTitleIdentifier(String titleIdentifier)
Sets the identifying value for the title. |
void |
setTransactionDate(String transactionDate)
Sets the transaction date and time. |
void |
setTransactionId(String transactionId)
Sets the transaction id that is assigned by the ILS or by a payment device, for auditing purposes to track cash flow. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int sequence
protected String checkSum
protected String code
protected String institutionId
protected String transactionDate
protected String patronIdentifier
protected String itemIdentifier
protected String itemProperties
protected String titleIdentifier
protected String transactionId
protected CurrencyType currencyType
protected String feeAmount
protected FeeType feeType
protected String currentLocation
protected String expirationDate
protected String pickupLocation
protected String bibId
| Constructor Detail |
|---|
protected SIP2Message(String code)
code - command identifier| Method Detail |
|---|
public abstract String getData()
public String getCode()
public void setCode(String code)
code - new command identifierpublic int getSequence()
public void setSequence(int sequence)
sequence - new valuepublic boolean isSequence()
public boolean isChecksum()
public String getCheckSum()
public void setCheckSum(String checkSum)
checkSum - new valuepublic String getInstitutionId()
public void setInstitutionId(String institutionId)
institutionId - new valuepublic String getTransactionDate()
public void setTransactionDate(String transactionDate)
transactionDate - new value: 18-char,
fixed-length: YYYYMMDDZZZZHHMMSSpublic String getPatronIdentifier()
public void setPatronIdentifier(String patronIdentifier)
patronIdentifier - new valuepublic String getItemIdentifier()
public void setItemIdentifier(String itemIdentifier)
itemIdentifier - new valuepublic String getItemProperties()
public void setItemProperties(String itemProperties)
itemProperties - new valuepublic String getTitleIdentifier()
public void setTitleIdentifier(String titleIdentifier)
titleIdentifier - new identifying value for the titlepublic String getTransactionId()
public void setTransactionId(String transactionId)
transactionId - new valuepublic CurrencyType getCurrencyType()
public void setCurrencyType(CurrencyType currencyType)
currencyType - currency typepublic String getFeeAmount()
public void setFeeAmount(String feeAmount)
feeAmount - new valuepublic FeeType getFeeType()
public void setFeeType(FeeType feeType)
feeType - new fee typepublic String getCurrentLocation()
public void setCurrentLocation(String currentLocation)
currentLocation - new valuepublic String getExpirationDate()
public void setExpirationDate(String expirationDate)
expirationDate - new expiration datepublic String getPickupLocation()
public void setPickupLocation(String pickupLocation)
pickupLocation - new pickup locationpublic String getBibId()
public void setBibId(String bibId)
bibId - bib id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||