cz.vity.freerapid.plugins.webclient.hoster
Class PremiumAccount

java.lang.Object
  extended by org.jdesktop.application.AbstractBean
      extended by cz.vity.freerapid.plugins.webclient.hoster.PremiumAccount
All Implemented Interfaces:
Serializable

public class PremiumAccount
extends org.jdesktop.application.AbstractBean
implements Serializable

Simple bean to represent user name and password

Author:
Ladislav Vitasek
See Also:
Serialized Form

Constructor Summary
PremiumAccount()
           
 
Method Summary
static PremiumAccount create(String username, String password)
          Factory method to create new premium account instance
 String getPassword()
          Getter for property 'password'.
 String getUsername()
          Getter for property 'username'.
 boolean isPasswordSet()
          Checks whether password is not empty on this object
 boolean isSet()
          Checks whether user name and password is set
 boolean isUserNameSet()
          Checks whether user name is not empty on this object
 void setPassword(String password)
          Setter for property 'password'.
 void setUsername(String username)
          Setter for property 'username'.
 
Methods inherited from class org.jdesktop.application.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PremiumAccount

public PremiumAccount()
Method Detail

getUsername

public String getUsername()
Getter for property 'username'.

Returns:
Value for property 'username'.

setUsername

public void setUsername(String username)
Setter for property 'username'.

Parameters:
username - Value to set for property 'username'.

isSet

public boolean isSet()
Checks whether user name and password is set

Returns:
true if username and password has been set

isPasswordSet

public boolean isPasswordSet()
Checks whether password is not empty on this object

Returns:
true, if password has been set

isUserNameSet

public boolean isUserNameSet()
Checks whether user name is not empty on this object

Returns:
true, if user name has been set

getPassword

public String getPassword()
Getter for property 'password'.

Returns:
Value for property 'password'.

setPassword

public void setPassword(String password)
Setter for property 'password'.

Parameters:
password - Value to set for property 'password'.

create

public static PremiumAccount create(String username,
                                    String password)
Factory method to create new premium account instance

Parameters:
username - user name
password - password
Returns:
new instance of PremiumAccount class