Class Person

java.lang.Object
sonia.scm.repository.Person
All Implemented Interfaces:
Serializable, Validateable

public class Person extends Object implements Validateable, Serializable
The Person (author) of a changeset.
See Also:
  • Constructor Details

    • Person

      public Person()
    • Person

      public Person(String name)
    • Person

      public Person(String name, String mail)
  • Method Details

    • toPerson

      public static Person toPerson(String value)
      Parses the given string and returns a Person object. The string should be in the format "name >mail<". if the string contains no "><" the whole string is handled as the name of the Person.
      Parameters:
      value - string representation of a Person object
      Returns:
      Person object which is generated from the given string
    • toString

      public String toString()
      Returns a string representation of the Person object, in the format "name >mail<".
      Overrides:
      toString in class Object
    • getMail

      public String getMail()
      Returns the mail address of the changeset author.
    • getName

      public String getName()
      Returns the name of the changeset author.
    • isValid

      public boolean isValid()
      Returns true if the person is valid.
      Specified by:
      isValid in interface Validateable