Class XyPerson


  • public class XyPerson
    extends java.lang.Object
    XyPerson - an object in this scenario (supplementary).
    Author:
    Karl Eilebrecht
    • Constructor Summary

      Constructors 
      Constructor Description
      XyPerson​(java.lang.String id)
      Creates new person with the given id
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAddressId()
      Returns the person's address id
      java.lang.String getCity()
      Returns the city name
      java.lang.String getFirstName()
      Returns the first name of the person
      java.lang.String getId()
      Returns person id
      java.lang.String getLastName()
      Returns the person's last name
      java.lang.String getRole()
      Returns the person's role
      java.lang.String getStreet()
      Returns the street
      java.lang.String getZipCode()
      Returns the zipcode
      void setAddressId​(java.lang.String addressId)
      Set's the person's address id
      void setCity​(java.lang.String city)
      Sets the city
      void setFirstName​(java.lang.String firstName)
      Sets the person's first name
      void setId​(java.lang.String id)
      Sets the id of this person
      void setLastName​(java.lang.String lastName)
      Sets the person's last name
      void setRole​(java.lang.String role)
      Set's the person's role
      void setStreet​(java.lang.String street)
      Set's street info
      void setZipCode​(java.lang.String zipCode)
      Sets the zipcode
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • XyPerson

        public XyPerson​(java.lang.String id)
        Creates new person with the given id
        Parameters:
        id - person id
    • Method Detail

      • setId

        public void setId​(java.lang.String id)
        Sets the id of this person
        Parameters:
        id - identifier
      • getId

        public java.lang.String getId()
        Returns person id
        Returns:
        id of person
      • getFirstName

        public java.lang.String getFirstName()
        Returns the first name of the person
        Returns:
        first name
      • setFirstName

        public void setFirstName​(java.lang.String firstName)
        Sets the person's first name
        Parameters:
        firstName - person's first name
      • getLastName

        public java.lang.String getLastName()
        Returns the person's last name
        Returns:
        last name
      • setLastName

        public void setLastName​(java.lang.String lastName)
        Sets the person's last name
        Parameters:
        lastName - person's last name
      • getRole

        public java.lang.String getRole()
        Returns the person's role
        Returns:
        person's role
      • setRole

        public void setRole​(java.lang.String role)
        Set's the person's role
        Parameters:
        role - company role
      • getAddressId

        public java.lang.String getAddressId()
        Returns the person's address id
        Returns:
        id of address
      • setAddressId

        public void setAddressId​(java.lang.String addressId)
        Set's the person's address id
        Parameters:
        addressId - identifier
      • getStreet

        public java.lang.String getStreet()
        Returns the street
        Returns:
        street
      • setStreet

        public void setStreet​(java.lang.String street)
        Set's street info
        Parameters:
        street - address field
      • getCity

        public java.lang.String getCity()
        Returns the city name
        Returns:
        city name
      • setCity

        public void setCity​(java.lang.String city)
        Sets the city
        Parameters:
        city - address field
      • getZipCode

        public java.lang.String getZipCode()
        Returns the zipcode
        Returns:
        zipcode
      • setZipCode

        public void setZipCode​(java.lang.String zipCode)
        Sets the zipcode
        Parameters:
        zipCode - address field
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object