Class Address

  • All Implemented Interfaces:
    Serializable

    public class Address
    extends Object
    implements Serializable
    This entity is stored on User and is used to store postal address information in LDAP.

    Contains data retrieved from the following LDAP attributes:

    • ------------------------------------------
    • postalAddress
    • st
    • postalCode
    • postOfficeBox
    • c
    • ------------------------------------------
    Author:
    Apache Directory Project
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Address()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object o)
      Override the standard equals on object to use the attributes of this class.
      List<String> getAddresses()
      Return an ArrayList of type String that contains zero or more values retrieved from postalAddress attribute from organizationalPerson object class.
      String getBuilding()
      Return a String that contains a value retrieved from building attribute from organizationalPerson object class.
      String getCity()
      Return a String that contains a value retrieved from l (location) attribute from organizationalPerson object class.
      String getCountry()
      TODO: Add support for this attribute: Return a String that contains a value retrieved from c (country) attribute from c object class.
      String getDepartmentNumber()
      Return a String that contains a value retrieved from departmentNumber attribute from organizationalPerson object class.
      String getPostalCode()
      Return a String that contains a value retrieved from postalCode attribute from organizationalPerson object class.
      String getPostOfficeBox()
      Return a String that contains a value retrieved from postOfficeBox attribute from organizationalPerson object class.
      String getRoomNumber()
      Return a String that contains a value retrieved from roomNumber attribute from organizationalPerson object class.
      String getState()
      Return a String that contains a value retrieved from st (state) attribute from organizationalPerson object class.
      int hashCode()
      Override the standard hashCode on object to use attributes of class.
      void setAddress​(String address)
      This attribute is bound for postalAddress attribute on organizationalPerson object class.
      void setAddresses​(List<String> addresses)
      Set an ArrayList of type String that contains one or more values bound for postalAddress attribute on organizationalPerson object class.
      void setBuilding​(String building)
      Accept a String that contains a value building bound for organizationalPerson object class.
      void setCity​(String city)
      Accept a String that contains a value l (location) bound for organizationalPerson object class.
      void setCountry​(String country)
      TODO: Add support for this attribute: Accept a String that contains a value c (country) bound for c object class.
      void setDepartmentNumber​(String departmentNumber)
      Accept a String that contains a value departmentNumber bound for inetOrgperson object class.
      void setPostalCode​(String postalCode)
      Accept a String that contains a value postalCode bound for organizationalPerson object class.
      void setPostOfficeBox​(String postOfficeBox)
      Accept a String that contains a value postOfficeBox bound for organizationalPerson object class.
      void setRoomNumber​(String roomNumber)
      Accept a String that contains a value roomNumber bound for inetOrgperson object class.
      void setState​(String state)
      Accept a String that contains a value st (state) bound for organizationalPerson object class.
      String toString()  
    • Constructor Detail

      • Address

        public Address()
    • Method Detail

      • setAddress

        public void setAddress​(String address)
        This attribute is bound for postalAddress attribute on organizationalPerson object class.
        Parameters:
        address - contains a String value containing address line that is bound for multi-occurring postalAddress attribute.
      • getAddresses

        public List<String> getAddresses()
        Return an ArrayList of type String that contains zero or more values retrieved from postalAddress attribute from organizationalPerson object class.
        Returns:
        a non-null ArrayList of type String that contains zero or more address lines associated with the user.
      • setAddresses

        public void setAddresses​(List<String> addresses)
        Set an ArrayList of type String that contains one or more values bound for postalAddress attribute on organizationalPerson object class.
        Parameters:
        addresses - contains ArrayList of type String with one or more address lines associated with the user.
      • getCity

        public String getCity()
        Return a String that contains a value retrieved from l (location) attribute from organizationalPerson object class.
        Returns:
        a String that contains city associated with the user.
      • setCity

        public void setCity​(String city)
        Accept a String that contains a value l (location) bound for organizationalPerson object class.
        Parameters:
        city - associated with the user.
      • getState

        public String getState()
        Return a String that contains a value retrieved from st (state) attribute from organizationalPerson object class.
        Returns:
        a String that contains state associated with the user.
      • setState

        public void setState​(String state)
        Accept a String that contains a value st (state) bound for organizationalPerson object class.
        Parameters:
        state - associated with the user.
      • getCountry

        public String getCountry()
        TODO: Add support for this attribute: Return a String that contains a value retrieved from c (country) attribute from c object class.
        Returns:
        a String that contains country associated with the user.
      • setCountry

        public void setCountry​(String country)
        TODO: Add support for this attribute: Accept a String that contains a value c (country) bound for c object class.
        Parameters:
        country - associated with the user.
      • getPostalCode

        public String getPostalCode()
        Return a String that contains a value retrieved from postalCode attribute from organizationalPerson object class.
        Returns:
        a String that contains postalCode associated with the user.
      • setPostalCode

        public void setPostalCode​(String postalCode)
        Accept a String that contains a value postalCode bound for organizationalPerson object class.
        Parameters:
        postalCode - associated with the user.
      • getPostOfficeBox

        public String getPostOfficeBox()
        Return a String that contains a value retrieved from postOfficeBox attribute from organizationalPerson object class.
        Returns:
        a String that contains postOfficeBox associated with the user.
      • setPostOfficeBox

        public void setPostOfficeBox​(String postOfficeBox)
        Accept a String that contains a value postOfficeBox bound for organizationalPerson object class.
        Parameters:
        postOfficeBox - associated with the user.
      • getBuilding

        public String getBuilding()
        Return a String that contains a value retrieved from building attribute from organizationalPerson object class.
        Returns:
        a String that contains building associated with the user.
      • setBuilding

        public void setBuilding​(String building)
        Accept a String that contains a value building bound for organizationalPerson object class.
        Parameters:
        building - associated with the user.
      • getDepartmentNumber

        public String getDepartmentNumber()
        Return a String that contains a value retrieved from departmentNumber attribute from organizationalPerson object class.
        Returns:
        a String that contains departmentNumber associated with the user.
      • setDepartmentNumber

        public void setDepartmentNumber​(String departmentNumber)
        Accept a String that contains a value departmentNumber bound for inetOrgperson object class.
        Parameters:
        departmentNumber - associated with the user.
      • getRoomNumber

        public String getRoomNumber()
        Return a String that contains a value retrieved from roomNumber attribute from organizationalPerson object class.
        Returns:
        a String that contains roomNumber associated with the user.
      • setRoomNumber

        public void setRoomNumber​(String roomNumber)
        Accept a String that contains a value roomNumber bound for inetOrgperson object class.
        Parameters:
        roomNumber - associated with the user.
      • equals

        public boolean equals​(Object o)
        Override the standard equals on object to use the attributes of this class.
        Overrides:
        equals in class Object
        Parameters:
        o -
        Returns:
        boolean value
      • hashCode

        public int hashCode()
        Override the standard hashCode on object to use attributes of class.
        Overrides:
        hashCode in class Object
        Returns:
        int