|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectloanfund.Register
public class Register
The Register class is used to access the services which are stored in an XML file. It only has one method which finds the service values for the current user.
Field Summary | |
---|---|
private java.lang.String |
dbFile
|
private java.lang.String |
id
|
private java.lang.String[] |
values
|
Constructor Summary | |
---|---|
Register(java.lang.String idnr)
The constructor stores the username which should be used when looking for services. |
Method Summary | |
---|---|
private java.lang.String |
getApplicationReceivedDate(org.w3c.dom.NodeList application)
Finds the application date value from the NodeList |
private java.lang.String |
getApplicationStatus(org.w3c.dom.NodeList application)
Finds the application status value from the NodeList |
private java.lang.String |
getApplicationSumGrant(org.w3c.dom.NodeList sum)
Finds the application grant sum value from the NodeList |
private java.lang.String |
getApplicationSumLoan(org.w3c.dom.NodeList sum)
Finds the application loan sum value from the NodeList |
private java.lang.String |
getDebt(org.w3c.dom.Element currentprofile)
Finds the debt value from the NodeList |
private java.lang.String |
getInstalmentDate(org.w3c.dom.NodeList instalment)
Finds the instalment date value from the NodeList |
private java.lang.String |
getInstalmentSum(org.w3c.dom.NodeList instalment)
Finds the instalment sum value from the NodeList |
private boolean |
hasApplicationSumTag(org.w3c.dom.NodeList application)
Used to check if the sum tag inside the application Node exists. |
private boolean |
hasApplicationTag(org.w3c.dom.Element currentprofile)
Used to check if this user profile has an application tag |
private boolean |
hasLastInstalmentTag(org.w3c.dom.Element currentprofile)
Used to check id this user profile has a lastinstalment tag |
private boolean |
hasNextInstalmentTag(org.w3c.dom.Element currentprofile)
Used to check id this user profile has a nextinstalment tag |
java.lang.String[] |
readValues()
This method reads the services from the XML file and returns the values for the user identified in the id variable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.lang.String dbFile
private java.lang.String[] values
private java.lang.String id
Constructor Detail |
---|
public Register(java.lang.String idnr)
idnr
- String The username/id for the user identified in the service requestMethod Detail |
---|
public java.lang.String[] readValues()
private boolean hasApplicationSumTag(org.w3c.dom.NodeList application)
private boolean hasApplicationTag(org.w3c.dom.Element currentprofile)
private boolean hasNextInstalmentTag(org.w3c.dom.Element currentprofile)
private boolean hasLastInstalmentTag(org.w3c.dom.Element currentprofile)
private java.lang.String getApplicationReceivedDate(org.w3c.dom.NodeList application)
private java.lang.String getApplicationStatus(org.w3c.dom.NodeList application)
private java.lang.String getApplicationSumGrant(org.w3c.dom.NodeList sum)
private java.lang.String getApplicationSumLoan(org.w3c.dom.NodeList sum)
private java.lang.String getInstalmentSum(org.w3c.dom.NodeList instalment)
private java.lang.String getInstalmentDate(org.w3c.dom.NodeList instalment)
private java.lang.String getDebt(org.w3c.dom.Element currentprofile)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |