com.ora.jsp.beans.poll
Class AnswerBean

java.lang.Object
  |
  +--com.ora.jsp.beans.poll.AnswerBean

public class AnswerBean
extends java.lang.Object

This class represents an answer in an online poll application. It's only intended as an example.

Version:
1.0
Author:
Hans Bergsten, Gefion software

Field Summary
private  java.lang.String answerId
           
private static java.lang.String VALID_IDS
           
 
Constructor Summary
AnswerBean()
           
 
Method Summary
 java.lang.String getAnswerId()
          Returns the answerId property value.
 boolean isValid()
          Returns true if the answerId matches one of the allowed alternatives.
 void setAnswerId(java.lang.String answerId)
          Sets the answerId property value.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

VALID_IDS

private static java.lang.String VALID_IDS

answerId

private java.lang.String answerId
Constructor Detail

AnswerBean

public AnswerBean()
Method Detail

getAnswerId

public java.lang.String getAnswerId()
Returns the answerId property value.

setAnswerId

public void setAnswerId(java.lang.String answerId)
Sets the answerId property value.

isValid

public boolean isValid()
Returns true if the answerId matches one of the allowed alternatives.