@Entity(name="Headquarter") public class Headquarter extends Object implements Serializable
| Constructor and Description |
|---|
Headquarter() |
Headquarter(String name,
String description,
String address,
String locality,
String province,
User admin)
Creates a new instance of
Headquarter. |
| Modifier and Type | Method and Description |
|---|---|
String |
getAddress()
Returns the address of the headquarter.
|
User |
getAdmin()
Returns the administrator of the headquarter.
|
String |
getDescription()
Returns the description of the headquarter.
|
String |
getLocality()
Returns the locality of the headquarter.
|
String |
getName()
Returns the name of the headquarter.
|
String |
getProvince()
Returns the province of the headquarter.
|
void |
setAddress(String address)
Sets the address of this headquarter.
|
void |
setAdmin(User admin)
Sets the administrator of this headquarter.
|
void |
setDescription(String description)
Sets the description of this headquarter.
|
void |
setLocality(String locality)
Sets the locality of this headquarter.
|
void |
setName(String name)
Sets the name of this headquarter.
|
void |
setProvince(String province)
Sets the province of this headquarter.
|
public Headquarter()
public Headquarter(String name, String description, String address, String locality, String province, User admin)
Headquarter.name - the name of the headquarter. This parameter must be a non empty
and non null string with a maximum length of 100 chars.description - the description of the headquarter. This parameter can not be
null. String with a maximum length of 250 chars.address - the address of this headquarter. This parameter can not be
null. String with a maximum length of 100 chars.locality - the locality of this headquarter. This parameter can not be
null. String with a maximum length of 100 chars.province - the province of this headquarter. This parameter can not be
null. String with a maximum length of 100 chars.admin - the administrator of this headquarter. A user class.NullPointerException - if a null value is passed as the value for any parameter.IllegalArgumentException - if value provided for any parameter is not valid according to its
description.public String getName()
public void setName(String name)
name - the new name of this headquarter. This parameter can not be
null and can not be longer than 100 chars.NullPointerException - if a null value is passed.IllegalArgumentException - if the value provided is longer than 100 chars.public String getDescription()
public void setDescription(String description)
description - is the new description for this headquarter. This parameter can
not be null and can not be longer than 250 chars.NullPointerException - if a null value is passed.IllegalArgumentException - if the value provided is longer than 250 chars.public String getAddress()
public void setAddress(String address)
address - is the new address for this headquarter. This parameter can not be
null and can not be longer than 100 chars.NullPointerException - if a null value is passed.IllegalArgumentException - if the value provided is longer than 100 chars.public String getLocality()
public void setLocality(String locality)
locality - is the new locality for this headquarter. This parameter can not
be null and can not be longer than 100 chars.NullPointerException - if a null value is passed.IllegalArgumentException - if the value provided is longer than 100 chars.public String getProvince()
public void setProvince(String province)
province - is the new province for this headquarter. This parameter can not
be null and can not be longer than 100 chars.NullPointerException - if a null value is passed.IllegalArgumentException - if the value provided is longer than 100 chars.public User getAdmin()
public void setAdmin(User admin)
admin - is the new administrator for this headquarter. This parameter can
not be null.NullPointerException - if a null value is passed.IllegalArgumentException - if the value provided is not a User.Copyright © 2017. All rights reserved.