Blame | Last modification | View Log | RSS feed
/** Created on 24/03/2005*/package DMS;import java.util.HashMap;import org.w3c.dom.Node;/*** @author mtayler*/public class configXMLItem {private String FDBDriverName;private String FDBUrl;private String FDBName;private String FUserName;private String FPassword;private String FDSName;private HashMap map;public configXMLItem(Node dsRoot) {//load xml dataparseDS(dsRoot);}private void parseDS(Node root) {Node dsNode = root;//XMLParser.findNode(root,"datasource");if (dsNode!=null) {FDSName = XMLParser.findNodeValue(dsNode,"ds-name");FDBDriverName = XMLParser.findNodeValue(dsNode,"db-driver");FDBUrl = XMLParser.findNodeValue(dsNode,"db-url");FDBName = XMLParser.findNodeValue(dsNode,"db-name");FUserName = XMLParser.findNodeValue(dsNode,"user");FPassword = XMLParser.findNodeValue(dsNode,"pwd");}}/*** @return Returns the fDBDriverName.*/public String getDBDriverName() {return FDBDriverName;}/*** @return Returns the fDBUrl.*/public String getDBUrl() {return FDBUrl;}/*** @return Returns the fPassword.*/public String getPassword() {return FPassword;}/*** @return Returns the fUserName.*/public String getUserName() {return FUserName;}/*** @return Returns the fDBName.*/public String getDBName() {return FDBName;}/*** @return Returns the fDSName.*/public String getDSName() {return FDSName;}}