Package net.sourceforge.processdash.data

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


        return getValue(path, PSP_TAG) != null;
    }

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

    private SimpleData getValue(String prefix, String name) {
        return data.getSimpleValue(DataRepository.createDataName(prefix, name));
    }
View Full Code Here


        return (sd != null && sd.test());
    }

    private String getString(DataContext data, String dataName) {
        SimpleData sd = data.getSimpleValue(dataName);
        return (sd == null ? null : sd.format());
    }

    private double getNumber(DataContext data, String dataName) {
        SimpleData sd = data.getSimpleValue(dataName);
        if (sd instanceof NumberData)
View Full Code Here

            prefix, "Project_ID");
        if (projectIDVal == null)
            return null;

        SimpleData sd = projectIDVal.getSimpleValue();
        return (sd == null ? null : sd.format());
    }

    protected void writeFilterDiv(WorkflowHistDataHelper hist) {
        out.print("<div id='filter' class='doNotPrint collapsed'>\n");
        String filterLabel = resources.getHTML("Workflow.To_Date.Filter.Label");
View Full Code Here

        String dataName = DataRepository.createDataName(prefix, name);
        SimpleData val = getDataRepository().getSimpleValue(dataName);
        if (val == null)
            return NA;
        else
            return val.format();
    }


    protected void printResPhaseOrTotal(String resKey, String arg) {
        if (arg == TOTAL_CATEGORY_KEY) {
View Full Code Here

    public static String getDefaultNoteFormatID(DataContext data,
            String path) {
        SimpleData val = InheritedValue.get(data, path,
            TEAM_NOTE_FORMAT_DATA_NAME).getSimpleValue();
        if (val != null && val.test())
            return val.format();
        else
            return PlainTextNoteFormat.FORMAT_ID;
    }
   
    public static HierarchyNoteFormat getDefaultNoteFormat(DataContext data,
View Full Code Here

        String getPassword() {
            String dataName = passwordRecallName();
            SimpleData val = data.getSimpleValue(dataName);
            if (val == null) return null;
            String str = val.format();
            if (NO_PASSWORD.equals(str)) return NO_PASSWORD;
            return new String(Base64.decode(str));
        }

        void setPassword(String password) {
View Full Code Here

    public String getStr(String name) {
        String defaultVal = Settings.getVal("ev."+name);
        if (!usingCustomizationSettings)
            return defaultVal;
        SimpleData val = getValue("settings//" + name);
        return (val != null ? val.format() : defaultVal);
    }
   

    /** Save the value of a setting to the data repository.
     *
 
View Full Code Here

        String labelFilter = null;
        if (parameters.containsKey(LABEL_FILTER_PARAM))
            labelFilter = getParameter(LABEL_FILTER_PARAM);
        else if (usingCustomizationSettings) {
            SimpleData val = getValue("settings//" + LABEL_FILTER_PARAM);
            labelFilter = (val == null ? null : val.format());
        }

        // if we found a label filter, apply it.
        if (StringUtils.hasValue(labelFilter)) {
            try {
View Full Code Here

        String pathFilter = null;
        if (parameters.containsKey(PATH_FILTER_PARAM))
            pathFilter = getParameter(PATH_FILTER_PARAM);
        else if (usingCustomizationSettings) {
            SimpleData val = getValue("settings//" + PATH_FILTER_PARAM);
            pathFilter = (val == null ? null : val.format());
        }

        // if we found a path filter, apply it
        if (StringUtils.hasValue(pathFilter)) {
            EVHierarchicalFilter hf = EVHierarchicalFilter.getFilter(evModel,
View Full Code Here

            String mergedPathFilter = null;
            if (parameters.containsKey(MERGED_PATH_FILTER_PARAM))
                mergedPathFilter = getParameter(MERGED_PATH_FILTER_PARAM);
            else if (usingCustomizationSettings) {
                SimpleData val = getValue("settings//" + MERGED_PATH_FILTER_PARAM);
                mergedPathFilter = (val == null ? null : val.format());
            }
   
            // if we found a merged path filter, apply it
            if (StringUtils.hasValue(mergedPathFilter)) {
                EVHierarchicalFilter hf = EVHierarchicalFilter
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.