Class Address

java.lang.Object
de.calamanari.pk.mapper.firstsys.Address

public class Address
extends java.lang.Object
Address - entity in the first subsystem
Author:
Karl Eilebrecht
  • Constructor Summary

    Constructors
    Constructor Description
    Address​(java.lang.String personId, java.lang.String street, java.lang.String zipCode, java.lang.String city)
    Creates address for a person
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getCity()
    Returns the city of the customer
    java.lang.String getPersonId()
    Returns id of person, this address belongs to
    java.lang.String getStreet()
    Returns the street address of customer
    java.lang.String getZipCode()
    Returns the zip-code of the customer
    void setCity​(java.lang.String city)
    Sets the city of the customer
    void setStreet​(java.lang.String street)
    Sets the street of the customer
    void setZipCode​(java.lang.String zipCode)
    Sets the zip-code of the customer
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

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

    • Address

      public Address​(java.lang.String personId, java.lang.String street, java.lang.String zipCode, java.lang.String city)
      Creates address for a person
      Parameters:
      personId - identifier
      street - address field
      zipCode - address field
      city - address field
  • Method Details

    • getPersonId

      public java.lang.String getPersonId()
      Returns id of person, this address belongs to
      Returns:
      personId
    • getStreet

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

      public void setStreet​(java.lang.String street)
      Sets the street of the customer
      Parameters:
      street - address field
    • getZipCode

      public java.lang.String getZipCode()
      Returns the zip-code of the customer
      Returns:
      zipCode
    • setZipCode

      public void setZipCode​(java.lang.String zipCode)
      Sets the zip-code of the customer
      Parameters:
      zipCode - address field
    • getCity

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

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

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