Package net.sourceforge.processdash.data

Examples of net.sourceforge.processdash.data.SimpleData.format()


        String dataName = DataRepository.createDataName(path, "Project_WBS_ID");
        SimpleData val = data.getSimpleValue(dataName);
        if (val == null)
            return null;
        else
            return val.format();
    }

    private static Map getWbsSubcomponentInfo(DataRepository data, String path,
            String wbsId) {
        String dataName = DataRepository.createDataName(path,
View Full Code Here


        if (val == null)
            return null;

        Element xml;
        try {
            xml = XMLUtils.parse(val.format()).getDocumentElement();
        } catch (Exception e) {
            return null;
        }

        Map result = new HashMap();
View Full Code Here

            return defectPath;
        SimpleData wbsIdSimpleValue = wbsIdValue.getSimpleValue();
        if (wbsIdSimpleValue == null)
            return defectPath;

        String wbsID = wbsIdSimpleValue.format();
        while (wbsID != null && wbsID.length() > 0) {
            String result = (String) wbsIdMap.get(wbsID);
            if (result != null)
                return result;
            wbsID = DataRepository.chopPath(wbsID);
View Full Code Here

    public static String getSelectedMethod(DataRepository data, String prefix,
                                           String targetDataElem) {
        String dataName = DataRepository.createDataName
            (prefix, targetDataElem + "/Probe Method");
        SimpleData val = data.getSimpleValue(dataName);
        return (val == null ? null : val.format());
    }



    public static void writeReportTableHeader(PrintWriter out,
View Full Code Here

                  "Defect_Data_Namespace");
          SimpleData sd = data.getSimpleValue(dataName);
          if (sd == null)
              dataNamespace = "";
          else
              dataNamespace = sd.format() + "/";
      }
      return dataNamespace;
  }

  /** Recalculate some defect data.  This action is appropriate when
View Full Code Here

        if (currentValue == null || !currentValue.test())
            return null;

        List<EVTaskDependency> result = new LinkedList<EVTaskDependency>();
        try {
            Element e = XMLUtils.parse(currentValue.format())
                    .getDocumentElement();
            NodeList nl = e.getElementsByTagName(DEPENDENCY_TAG);
            for (int i = 0; i < nl.getLength(); i++) {
                result.add(new EVTaskDependency((Element) nl.item(i)));
            }
View Full Code Here

        if (!name.endsWith("/"+EXPORT_DATANAME))
            return null;
        SimpleData dataVal = data.getSimpleValue(name);
        if (dataVal == null || !dataVal.test())
            return null;
        String filename = Settings.translateFile(dataVal.format());

        String path = name.substring(0,
                name.length() - EXPORT_DATANAME.length() - 1);
        Vector filter = new Vector();
        filter.add(path);
View Full Code Here

        instr.setAttribute(DATANAME_ATTR, name);
       
        String instrDataname = name + EXPORT_INSTRUCTIONS_SUFFIX;
        SimpleData instrVal = data.getSimpleValue(instrDataname);
        if (instrVal != null && instrVal.test())
            addXmlDataToInstruction(instr, instrVal.format());
       
        String disableDataname = name + EXPORT_DISABLED_SUFFIX;
        SimpleData disableVal = data.getSimpleValue(disableDataname);
        if (disableVal != null && disableVal.test())
            instr.setEnabled(false);
View Full Code Here

            instr.setEnabled(false);

        String urlDataname = name + EXPORT_URL_SUFFIX;
        SimpleData urlVal = data.getSimpleValue(urlDataname);
        if (urlVal != null && urlVal.test())
            instr.setServerUrl(urlVal.format());

        return instr;
    }

    private void addXmlDataToInstruction(AbstractInstruction instr,
View Full Code Here

        return getString(prefix, dataName, inherit);
    }

    private String getString(String prefix, String dataName, boolean inherit) {
        SimpleData sd = getValue(prefix, dataName, inherit);
        return (sd == null ? null : sd.format());
    }

    private SimpleData getValue(String prefix, String dataName, boolean inherit) {
        SaveableData d;
        if (inherit)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.