Class Address
- java.lang.Object
-
- org.apache.directory.fortress.core.model.Address
-
- All Implemented Interfaces:
Serializable
public class Address extends Object implements Serializable
This entity is stored onUser
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 frompostalAddress
attribute fromorganizationalPerson
object class.String
getBuilding()
Return a String that contains a value retrieved frombuilding
attribute fromorganizationalPerson
object class.String
getCity()
Return a String that contains a value retrieved froml
(location) attribute fromorganizationalPerson
object class.String
getCountry()
TODO: Add support for this attribute: Return a String that contains a value retrieved fromc
(country) attribute fromc
object class.String
getDepartmentNumber()
Return a String that contains a value retrieved fromdepartmentNumber
attribute fromorganizationalPerson
object class.String
getPostalCode()
Return a String that contains a value retrieved frompostalCode
attribute fromorganizationalPerson
object class.String
getPostOfficeBox()
Return a String that contains a value retrieved frompostOfficeBox
attribute fromorganizationalPerson
object class.String
getRoomNumber()
Return a String that contains a value retrieved fromroomNumber
attribute fromorganizationalPerson
object class.String
getState()
Return a String that contains a value retrieved fromst
(state) attribute fromorganizationalPerson
object class.int
hashCode()
Override the standard hashCode on object to use attributes of class.void
setAddress(String address)
This attribute is bound forpostalAddress
attribute onorganizationalPerson
object class.void
setAddresses(List<String> addresses)
Set an ArrayList of type String that contains one or more values bound forpostalAddress
attribute onorganizationalPerson
object class.void
setBuilding(String building)
Accept a String that contains a valuebuilding
bound fororganizationalPerson
object class.void
setCity(String city)
Accept a String that contains a valuel
(location) bound fororganizationalPerson
object class.void
setCountry(String country)
TODO: Add support for this attribute: Accept a String that contains a valuec
(country) bound forc
object class.void
setDepartmentNumber(String departmentNumber)
Accept a String that contains a valuedepartmentNumber
bound forinetOrgperson
object class.void
setPostalCode(String postalCode)
Accept a String that contains a valuepostalCode
bound fororganizationalPerson
object class.void
setPostOfficeBox(String postOfficeBox)
Accept a String that contains a valuepostOfficeBox
bound fororganizationalPerson
object class.void
setRoomNumber(String roomNumber)
Accept a String that contains a valueroomNumber
bound forinetOrgperson
object class.void
setState(String state)
Accept a String that contains a valuest
(state) bound fororganizationalPerson
object class.String
toString()
-
-
-
Method Detail
-
setAddress
public void setAddress(String address)
This attribute is bound forpostalAddress
attribute onorganizationalPerson
object class.- Parameters:
address
- contains a String value containing address line that is bound for multi-occurringpostalAddress
attribute.
-
getAddresses
public List<String> getAddresses()
Return an ArrayList of type String that contains zero or more values retrieved frompostalAddress
attribute fromorganizationalPerson
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 forpostalAddress
attribute onorganizationalPerson
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 froml
(location) attribute fromorganizationalPerson
object class.- Returns:
- a String that contains city associated with the user.
-
setCity
public void setCity(String city)
Accept a String that contains a valuel
(location) bound fororganizationalPerson
object class.- Parameters:
city
- associated with the user.
-
getState
public String getState()
Return a String that contains a value retrieved fromst
(state) attribute fromorganizationalPerson
object class.- Returns:
- a String that contains state associated with the user.
-
setState
public void setState(String state)
Accept a String that contains a valuest
(state) bound fororganizationalPerson
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 fromc
(country) attribute fromc
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 valuec
(country) bound forc
object class.- Parameters:
country
- associated with the user.
-
getPostalCode
public String getPostalCode()
Return a String that contains a value retrieved frompostalCode
attribute fromorganizationalPerson
object class.- Returns:
- a String that contains postalCode associated with the user.
-
setPostalCode
public void setPostalCode(String postalCode)
Accept a String that contains a valuepostalCode
bound fororganizationalPerson
object class.- Parameters:
postalCode
- associated with the user.
-
getPostOfficeBox
public String getPostOfficeBox()
Return a String that contains a value retrieved frompostOfficeBox
attribute fromorganizationalPerson
object class.- Returns:
- a String that contains postOfficeBox associated with the user.
-
setPostOfficeBox
public void setPostOfficeBox(String postOfficeBox)
Accept a String that contains a valuepostOfficeBox
bound fororganizationalPerson
object class.- Parameters:
postOfficeBox
- associated with the user.
-
getBuilding
public String getBuilding()
Return a String that contains a value retrieved frombuilding
attribute fromorganizationalPerson
object class.- Returns:
- a String that contains building associated with the user.
-
setBuilding
public void setBuilding(String building)
Accept a String that contains a valuebuilding
bound fororganizationalPerson
object class.- Parameters:
building
- associated with the user.
-
getDepartmentNumber
public String getDepartmentNumber()
Return a String that contains a value retrieved fromdepartmentNumber
attribute fromorganizationalPerson
object class.- Returns:
- a String that contains departmentNumber associated with the user.
-
setDepartmentNumber
public void setDepartmentNumber(String departmentNumber)
Accept a String that contains a valuedepartmentNumber
bound forinetOrgperson
object class.- Parameters:
departmentNumber
- associated with the user.
-
getRoomNumber
public String getRoomNumber()
Return a String that contains a value retrieved fromroomNumber
attribute fromorganizationalPerson
object class.- Returns:
- a String that contains roomNumber associated with the user.
-
setRoomNumber
public void setRoomNumber(String roomNumber)
Accept a String that contains a valueroomNumber
bound forinetOrgperson
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.
-
hashCode
public int hashCode()
Override the standard hashCode on object to use attributes of class.
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-