FileDocCategorySizeDatePackage
MailingBean.javaAPI DocExample578Sat Nov 22 12:30:40 GMT 2003mvcexample.model

MailingBean.java

package mvcexample.model;

/**
 * The interface to our model object, which stores information about
 * a single mailing list subscription
 */
public interface MailingBean {
    // first name
    public String getFirst();
    public void setFirst(String first);
    
    // last name
    public String getLast();
    public void setLast(String last);
   
    // email address
    public String getEmail();
    public void setEmail(String email);

    // business method
    public boolean doSubscribe();
    
    // subscription result
    public String getErrorString();
    
}