FileDocCategorySizeDatePackage
AnswerBean.javaAPI DocExample944Thu Jun 28 16:14:16 BST 2001com.ora.jsp.beans.poll

AnswerBean

public class AnswerBean extends Object
This class represents an answer in an online poll application. It's only intended as an example.
author
Hans Bergsten, Gefion software
version
1.0

Fields Summary
private static String
VALID_IDS
private String
answerId
Constructors Summary
Methods Summary
public java.lang.StringgetAnswerId()
Returns the answerId property value.

 
              
       
        return answerId;
    
public booleanisValid()
Returns true if the answerId matches one of the allowed alternatives.

        boolean isValid = false;
        if (answerId != null) {
            isValid = VALID_IDS.indexOf(answerId) != -1;
        }
        return isValid;
    
public voidsetAnswerId(java.lang.String answerId)
Sets the answerId property value.

        this.answerId = answerId;