Class Address
java.lang.Object
com.mirna.hospitalmanagementapi.domain.entities.Address
- Version:
- 1.0
- Author:
- Mirna Gama
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the additional detailsgetCity()Returns the cityReturns the house numberReturns the neighborhoodgetState()Returns the stateReturns the streetReturns the zip codevoidsetAdditionalDetails(String additionalDetails) Sets the additional detailsvoidSets the cityvoidsetHouseNumber(String houseNumber) Sets the house numbervoidsetNeighborhood(String neighborhood) Sets the neighborhoodvoidSets the statevoidSets the streetvoidsetZipCode(String zipCode) Sets the zip code
-
Constructor Details
-
Address
public Address() -
Address
Constructor for class Address- Parameters:
addressDTO- Data transfer object containing Address information- See Also:
-
-
Method Details
-
getStreet
Returns the street- Returns:
- A string representing the street.
-
setStreet
Sets the street- Parameters:
street- Must not be blank.
-
getNeighborhood
Returns the neighborhood- Returns:
- A string representing the neighborhood.
-
setNeighborhood
Sets the neighborhood- Parameters:
neighborhood- Must not be blank.
-
getZipCode
Returns the zip code- Returns:
- A string representing the zip code.
-
setZipCode
Sets the zip code- Parameters:
zipCode- Must not be blank.
-
getCity
Returns the city- Returns:
- A string representing the city.
-
setCity
Sets the city- Parameters:
city- Must not be blank.
-
getState
Returns the state- Returns:
- A string representing the state.
-
setState
Sets the state- Parameters:
state- Must not be blank.
-
getAdditionalDetails
Returns the additional details- Returns:
- A string representing the additional details.
-
setAdditionalDetails
Sets the additional details- Parameters:
additionalDetails- Not required
-
getHouseNumber
Returns the house number- Returns:
- A string representing the house number.
-
setHouseNumber
Sets the house number- Parameters:
houseNumber- Not required
-