FileDocCategorySizeDatePackage
AnswerBean.javaAPI DocExample946Tue Feb 28 11:34:06 GMT 2006com.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;