|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdata.Data
public class Data
A data encapsulates the information of each line in the file
Constructor Summary | |
---|---|
Data()
Initialize the default properties of a data |
Method Summary | |
---|---|
void |
addInsuranceCoverType(String insuranceCoverType)
Add a new insurance cover type to the company |
double |
getBrokerPercentage()
Access to the broker percentage property |
String |
getCompanyName()
Access to the company name property |
String |
getGeneralDescription()
Access to the general description property |
int |
getID()
Access to the ID property of the data |
ArrayList<String> |
getInsuranceCoverTypes()
Access to the insurance cover types property |
String |
getTelephoneNumber()
Access to the telephone number property |
String |
getWebAddress()
Access to the web address property |
void |
setBrokerPercentage(double brokerPercentage)
Initialize the broker percentage |
void |
setCompanyName(String companyName)
Initialize the company name |
void |
setGeneralDescription(String generalDescription)
Initialize the general description |
void |
setTelephoneNumber(String telephoneNumber)
Initialize the company's telephone number |
void |
setWebAddress(String webAddress)
Initialize the web address |
String |
toString()
Return a string representation of the data ready for storing to the database |
String |
toStringWithoutID()
Return a string representation but without the ID included |
Methods inherited from class |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Data()
Method Detail |
---|
public void addInsuranceCoverType(String insuranceCoverType)
insuranceCoverType
- insurance cover typepublic double getBrokerPercentage()
public String getCompanyName()
public String getGeneralDescription()
public int getID()
public ArrayList<String> getInsuranceCoverTypes()
public String getTelephoneNumber()
public String getWebAddress()
public void setBrokerPercentage(double brokerPercentage)
brokerPercentage
- broker percentagepublic void setCompanyName(String companyName)
companyName
- company namepublic void setGeneralDescription(String generalDescription)
generalDescription
- general descriptionpublic void setTelephoneNumber(String telephoneNumber)
telephoneNumber
- public void setWebAddress(String webAddress)
webAddress
- company's web addresspublic String toString()
toString
in class Object
public String toStringWithoutID()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |