|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.samples.technologysamples.ejb.stateless.basiccalculatorwar.BasicCalculatorJspBean
public class BasicCalculatorJspBean
Contains getter and setter methods that are used to get information back and forth between the servlet and JSP.
Field Summary | |
---|---|
java.lang.String |
message
The message informing users of the error condition encountered |
java.lang.String |
operand1
A number to perform this mathematical operation on |
java.lang.String |
operand2
Another number to perform this mathematical operation on |
java.lang.String |
operation
The mathematical operation to be performed |
java.lang.String |
result
The value of the mathematical operation performed |
Constructor Summary | |
---|---|
BasicCalculatorJspBean()
|
Method Summary | |
---|---|
java.lang.String |
getMessage()
Returns the value of message |
java.lang.String |
getOperand1()
Returns the value of the first operand |
java.lang.String |
getOperand2()
Returns the value of the second operand |
java.lang.String |
getOperation()
Returns the value of the operation as a symbol +, -, *, / |
java.lang.String |
getResult()
Returns the value of result (from the mathematical operation performed) |
void |
setMessage(java.lang.String s)
Sets the value of message. |
void |
setOperand1(java.lang.String op1)
Sets the value of operand1. |
void |
setOperand2(java.lang.String op2)
Sets the value of operand2. |
void |
setOperation(java.lang.String s)
Sets the value of operation by converting the name of the operation to its mathematical symbol. |
void |
setResult(java.lang.String s)
Sets the value of result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String result
public java.lang.String operation
public java.lang.String operand1
public java.lang.String operand2
public java.lang.String message
Constructor Detail |
---|
public BasicCalculatorJspBean()
Method Detail |
---|
public void setResult(java.lang.String s)
s
- the value of result in Stringpublic java.lang.String getResult()
public void setOperation(java.lang.String s)
s
- the name of the operationpublic java.lang.String getOperation()
public void setOperand1(java.lang.String op1)
op1
- the value of operand1 in Stringpublic java.lang.String getOperand1()
public void setOperand2(java.lang.String op2)
op2
- the value of operand2 in Stringpublic java.lang.String getOperand2()
public void setMessage(java.lang.String s)
s
- the message for the error condition encounteredpublic java.lang.String getMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |