test.implementation.modelmbean.support
Class User

java.lang.Object
  extended bytest.implementation.modelmbean.support.User

public class User
extends java.lang.Object


Constructor Summary
User()
          Creates a new User using constructor with no argument
User(long id)
          Creates a new User instance using constructor with one argument.
 
Method Summary
 void addPhoneNumber(java.lang.String number)
          Describe addPhoneNumber method here.
 java.lang.String getAddress()
          Describe getAddress method here.
 long getID()
          Describe getID method here.
 java.lang.String getName()
          Describe getName method here.
 java.lang.String[] getPhoneNumbers()
          Describe getPhoneNumbers method here.
 java.lang.String printInfo()
          Describe printInfo method here.
 void removePhoneNumber(int index)
          Describe removePhoneNumber method here.
 void setAddress(java.lang.String address)
          Describe setAddress method here.
 void setID(long id)
          Describe setID method here.
 void setName(java.lang.String name)
          Describe setName method here.
 void setPassword(java.lang.String passwd)
          Describe setPassword method here.
 void setPhoneNumbers(java.lang.String[] numbers)
          Describe setPhoneNumbers method here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

User

public User(long id)
Creates a new User instance using constructor with one argument.

Parameters:
id - a long value

User

public User()
Creates a new User using constructor with no argument

Method Detail

getID

public long getID()
Describe getID method here. read-only attribute

Returns:
a long value

setID

public void setID(long id)
Describe setID method here. application method, not exposed to management

Parameters:
id - a long value

getName

public java.lang.String getName()
Describe getName method here. read-write attribute

Returns:
a String value

setName

public void setName(java.lang.String name)
Describe setName method here.

Parameters:
name - a String value

getAddress

public java.lang.String getAddress()
Describe getAddress method here. read-write attribute

Returns:
a String value

setAddress

public void setAddress(java.lang.String address)
Describe setAddress method here.

Parameters:
address - a String value

getPhoneNumbers

public java.lang.String[] getPhoneNumbers()
Describe getPhoneNumbers method here. read-write attribute

Returns:
a String[] value

setPhoneNumbers

public void setPhoneNumbers(java.lang.String[] numbers)
Describe setPhoneNumbers method here.

Parameters:
numbers - a String[] value

setPassword

public void setPassword(java.lang.String passwd)
Describe setPassword method here. write only attribute

Parameters:
passwd - a String value

printInfo

public java.lang.String printInfo()
Describe printInfo method here. prints info

Returns:
a String value

addPhoneNumber

public void addPhoneNumber(java.lang.String number)
Describe addPhoneNumber method here.

Parameters:
number - a String value, the phone number to add

removePhoneNumber

public void removePhoneNumber(int index)
Describe removePhoneNumber method here.

Parameters:
index - an int value, the index of phone number to remove