|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.etill.framework.payapi.ReturnCodeStructure
This class is a structure to use when returning information to a caller in the form of a primary return code and a secondary return code.
Field Summary | |
---|---|
byte[] |
message
The caller may want to include a message with the return code in the form of a byte array. |
Constructor Summary | |
---|---|
ReturnCodeStructure()
Default Constructor. |
|
ReturnCodeStructure(RCItem pRC,
RCItem sRC)
This constructor initializes the ReturnCodeStructure with a primary and secondary return code. |
|
ReturnCodeStructure(short pRC,
short sRC)
This constructor initializes the ReturnCodeStructure with a primary and secondary return code. |
Method Summary | |
---|---|
String |
getCassetteName()
Returns the cassette name |
RCItem |
getPrimaryRC()
Returns the Primary return code |
RCItem |
getSecondaryRC()
Returns the Secondary return code |
void |
setCassetteName(String name)
Sets the cassette name |
void |
setPrimaryRC(RCItem pRC)
Sets the primary return code |
void |
setPrimaryRC(short pRC)
Sets the primary return code |
void |
setSecondaryRC(RCItem sRC)
Sets the secondary return code |
void |
setSecondaryRC(short sRC)
Sets the secondary return code |
void |
write(DataOutputStream dos)
Writes the ReturnCodeStructure to a DataOutputStream object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public byte[] message
Constructor Detail |
public ReturnCodeStructure()
public ReturnCodeStructure(short pRC, short sRC)
pRC
- short representing the primary return codesRC
- short representing the seconday return codepublic ReturnCodeStructure(RCItem pRC, RCItem sRC)
pRC
- RCItem representing the primary return codesRC
- RCItem representing the seconday return codeMethod Detail |
public RCItem getPrimaryRC()
public final void setPrimaryRC(short pRC)
pRC
- primary return codepublic final void setPrimaryRC(RCItem pRC)
pRC
- primary return codepublic RCItem getSecondaryRC()
public String getCassetteName()
public final void setSecondaryRC(short sRC)
sRC
- secondary return codepublic final void setSecondaryRC(RCItem sRC)
sRC
- secondary return codepublic final void setCassetteName(String name)
name
- the payment typepublic void write(DataOutputStream dos) throws IOException
IOException
- Thrown if an error occurs with access to the DataOutputStream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |