Package org.resmedicinae.resmedlib.term

Examples of org.resmedicinae.resmedlib.term.String


     * @return the helpers
     * @exception NullPointerException if the helpers is null
     */
    public String createHelpers() throws Exception, NullPointerException {

        String h = new String();
       
        if (h != null) {
           
            h.initialize();

        } else {

            throw new NullPointerException("Could not create helpers. The helpers is null.");
        }
View Full Code Here


     * @return the inspirations
     * @exception NullPointerException if the inspirations is null
     */
    public String createInspirations() throws Exception, NullPointerException {

        String i = new String();
       
        if (i != null) {

            i.initialize();

        } else {

            throw new NullPointerException("Could not create inspirations. The inspirations is null.");
        }
View Full Code Here

     * @return the license
     * @exception NullPointerException if the license is null
     */
    public String createLicense() throws Exception, NullPointerException {

        String l = new String();
       
        if (l != null) {
           
            l.initialize();
            l.setJavaObject("This software is published under the GPL GNU General Public License.\n"
                + "This program is free software; you can redistribute it and/or\n"
                + "modify it under the terms of the GNU General Public License\n"
                + "as published by the Free Software Foundation; either version 2\n"
                + "of the License, or (at your option) any later version.\n\n"
                + "This program is distributed in the hope that it will be useful,\n"
View Full Code Here

            set(System.NAME, createName());
            set(System.VERSION, createVersion());
            set(System.DATE, createDate());

            String slogan = c.get(System.SLOGAN, createSlogan());

            if ((slogan != null) && !slogan.equals("null")) {

                set(System.SLOGAN, slogan);
            }

            set(System.LOGO, createLogo());
            set(System.COPYRIGHT, createCopyright());
            set(System.CONTACT, createContact());

            String description = c.get(System.DESCRIPTION, createDescription());

            if ((description != null) && !description.equals("null")) {

                set(System.DESCRIPTION, description);
            }

            set(System.AUTHORS, createAuthors());
View Full Code Here

    public void actionPerformed(java.awt.event.ActionEvent evt) {

        try {

            java.lang.System.out.println("test evt: " + evt);
            ask(new String(evt.getActionCommand()), (GraphicalView) ((Controller) get(System.CONTROLLER)).get(System.GRAPHICAL_VIEW));
            java.lang.System.out.println("test cmd: " + evt.getActionCommand());

        } catch (Exception e) {

            java.lang.System.out.println("ERROR: Could not catch action event. The action event is null.");
View Full Code Here

     * @return the label
     * @exception NullPointerException if the label is null
     */
    public String createLabel() throws Exception, NullPointerException {

        return new String("Menu Item");

/**?? Introduce new Type for each String --> Terms --> Terminology!
        String l = new String();

        if (l != null) {
View Full Code Here

        }
    }

    /** removes a HealthRecord from all objects and also the appropriate file from the disk */
    public void removeHealthRecord(org.resmedicinae.resmedlib.term.String healthRecordId) {
        String fileName = getGlobalPath() + healthRecordId.getValue() + ".xml";
        try {
            File f = new File(fileName);
            if (f.exists())
                f.delete();
            else
View Full Code Here

        filterXml.addExtension("xml");
        filterXml.setDescription("XML");
        chooser.setFileFilter(filterXml);
        int returnVal = chooser.showDialog(new JFrame(), "Import HealthRecord");
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            String curFile = chooser.getSelectedFile().getAbsolutePath();
            curFile = curFile.replace('\\', '/');
            HealthRecord importedHealthRecord = getHealthRecordDataFromDocument(parseXMLFile(curFile));
            importedHealthRecord.setIdentifier(ObjectID.getNewOId());
            Hashtable healthRecordData = new Hashtable();
            healthRecordData.put(HealthRecordIndex.ID, importedHealthRecord.getIdentifier());
            healthRecordData.put(HealthRecordIndex.NAME, importedHealthRecord.getName());
View Full Code Here

        filterXml.setDescription("XML");
        chooser.setFileFilter(filterXml);
        chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
        int returnVal = chooser.showDialog(new JFrame(), "Import Directory");
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            String curDirectory = chooser.getSelectedFile().getAbsolutePath();
            curDirectory = curDirectory.replace('\\', '/');
            System.out.println("You chose to import this directory: " + curDirectory);
            HealthRecord importedHealthRecord;
            String curFile;
            File[] fileList = chooser.getSelectedFile().listFiles();
            for (int i = 0; i < fileList.length; i++) {
                curFile = fileList[i].getAbsolutePath();
                if (curFile.toUpperCase().endsWith(".XML")) {
                    importedHealthRecord = getHealthRecordDataFromDocument(parseXMLFile(curFile));
                    try {
                        importedHealthRecord.setIdentifier(ObjectID.getNewOId());
                    } catch (Exception e) {
                        throw new Exception(e);
View Full Code Here

            filterXml.addExtension("xml");
            filterXml.setDescription("XML");
            chooser.setFileFilter(filterXml);
            int returnVal = chooser.showOpenDialog(new JFrame());
            if (returnVal == JFileChooser.APPROVE_OPTION) {
                String curFile = chooser.getSelectedFile().getAbsolutePath();
                System.out.println("B: curfile: " + curFile);
                curFile = curFile.replace('\\', '/');
                setIndexFile(curFile);
                setGlobalPath(curFile.substring(0, curFile.lastIndexOf("/") + 1));
                // setUpdateAfterChangingHealthRecordData();
                System.out.println("You choose to open this file: " + curFile);
            } else
                System.out.println("returnVal: " + returnVal);
        } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.resmedicinae.resmedlib.term.String

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.