Person
Keywords: com.gmscheduler.model.Person class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.gmscheduler.model
Class Person

    java.lang.Object
      com.gmscheduler.model.Person

    public class Person

extends java.lang.Object

A `Person` object represents the owner of schedule.

Version:
  1.3
Author:
  Peter Deschere, Rebecca Beale, Jason Fillo

Constructor Summary
`Person()`
`Person(Person u)`
`Person(java.lang.String name)`
`Person(java.lang.String name, java.lang.String pw)`

Method Summary
`java.lang.String` | `getEmail()` Returns the email.
`java.lang.Long` | `getId()` Returns the id.
`java.lang.String` | `getName()` Returns the name.
`java.lang.String` | `getPassword()` Returns the password.
`boolean` | `isEmpty()`
`boolean` | `isValidPassword(java.lang.String pw)` Returns true if the password is valid.
`void` | `setEmail(java.lang.String newemail)` Sets the email.
`void` | `setName(java.lang.String name)` Sets the name.
`void` | `setPassword(java.lang.String pw)` Sets the password.
`java.lang.String` | `toString()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### Person

    public Person(java.lang.String name)

### Person

    public Person(java.lang.String name,
                  java.lang.String pw)

### Person

    public Person(Person u)

### Person

    public Person()

Method Detail

### getId

    public java.lang.Long getId()

  Returns the id.

  Returns:
    the id of the `Person`

### getPassword

    public java.lang.String getPassword()

  Returns the password.

  Returns:
    the password of the `Person`

### setPassword

    public void setPassword(java.lang.String pw)

  Sets the password.

  Parameters:
    `pw` - the new pw

### getName

    public java.lang.String getName()

  Returns the name.

  Returns:
    the name of the `Person`

### setName

    public void setName(java.lang.String name)

  Sets the name.

  Parameters:
    `name` - the new name

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

### getEmail

    public java.lang.String getEmail()

  Returns the email.

  Returns:
    the email of the `Person`

### setEmail

    public void setEmail(java.lang.String newemail)

  Sets the email.

  Parameters:
    `newemail` - the new email address

### isValidPassword

    public boolean isValidPassword(java.lang.String pw)

  Returns true if the password is valid.

  Parameters:
    `pw` - the passwrod to compare to
  Returns:
    the validity of the password for the `Person`

### isEmpty

    public boolean isEmpty()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD