Package noNamespace

Examples of noNamespace.PropertiesDocument


    public static Property getProperties(){
        if(properties==null){
            File fHandle = new File(PROPERTIES_FILENAME);
            if(fHandle.exists()){
                try {
                    PropertiesDocument doc = PropertiesDocument.Factory.parse(fHandle);
                    properties = doc.getProperties().getProperty();
                } catch (Exception ex) {
                    ErrorFrame.getInstance().showException(ex);
                }
            }else{
                try {
View Full Code Here


    public static void saveProperties() throws IOException{
        for(OracleConnection con:properties.getOracleConnectionArray()){
            System.out.println(con.getHost());
        }
        PropertiesDocument doc = PropertiesDocument.Factory.newInstance();
        Properties props = doc.addNewProperties();
        props.addNewProperty();
        props.setProperty(properties);
        doc.save(new File(PROPERTIES_FILENAME));
    }
View Full Code Here

TOP

Related Classes of noNamespace.PropertiesDocument

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.