Package net.sourceforge.processdash.hier

Examples of net.sourceforge.processdash.hier.PropertyKey


                final DashHierarchy hier) {
            Iterator iter = PropertyKeyIterator.getForPrefixes(hier, prefixes);
            Iterator result = new IteratorFilter(iter) { 
                { init(); }
                protected boolean includeInResults(Object o) {
                    PropertyKey key = (PropertyKey) o;
                    return StringUtils.hasValue(hier.pget(key).getDataFile());
                }};
            return result;
        }
View Full Code Here


                        + TAG_SEP_CHAR + pattern.substring(bracePos + 1);
        }

        private void getNextPrefix() {
            while (prefixKeys.hasNext()) {
                PropertyKey nextKey = (PropertyKey) prefixKeys.next();
                workingPrefix = nextKey.path();
                if (!workingPrefix.endsWith("/"))
                    workingPrefix = workingPrefix + "/";
                workingNames = getNamesForPrefix(workingPrefix);
                if (workingNames.hasNext())
                    return;
View Full Code Here

        } else {
            DashHierarchy hier = ctx.getHierarchy();
            int i = hier.getNumChildren(key);
            while (i-- > 0) {
                PropertyKey childKey = hier.getChildKey(key, i);
                checkAlreadyJoined(ctx, childKey, projectID);
            }
        }
    }
View Full Code Here

            DataRepository data) {
        if (Settings.getBool(SET_FLAG_SETTING, false))
            return;

        for (Iterator i = hierarchy.keySet().iterator(); i.hasNext();) {
            PropertyKey key = (PropertyKey) i.next();
            String path = key.path();
            maybeMigrateLegacyData(data, path);
        }
        InternalSettings.set(SET_FLAG_SETTING, "true");
    }
View Full Code Here

                result.put(path, null);
        }
    }

    private void initMapFromHierarchy(String path, Map result) {
        PropertyKey startingKey = null;
        if (path == null)
            startingKey = PropertyKey.ROOT;
        else
            startingKey = hierarchy.findExistingKey(path);
        if (startingKey != null)
View Full Code Here

            }
        }

        int numChildren = ctx.getHierarchy().getNumChildren(node);
        for (int i = numChildren; i-- > 0;) {
            PropertyKey child = ctx.getHierarchy().getChildKey(node, i);
            scanHierarchy(dataNamesToWatch, child, pathHasActiveExport);
        }
    }
View Full Code Here

            stopwatch.start();
        }
    }

    protected void setCurrentPhase(PropertyKey newCurrentPhase) {
        PropertyKey oldPhase = currentPhase;
        if (newCurrentPhase != null && newCurrentPhase.equals(oldPhase))
            return;
       
      logger.log(Level.FINE, "setting current phase to {0}",
          (newCurrentPhase == null ? "null" : newCurrentPhase.path()));
View Full Code Here

    static TimeLogEntryVO parseOldStyleEntry(long entryID, String s) {
        int startPosition = 0;
        int endPosition = s.indexOf(TAB, startPosition);
        String path = null;
        if (startPosition < endPosition) {
            PropertyKey key = PropertyKey.valueOf(s.substring(startPosition,
                    endPosition));
            if (key == null)
                key = PropertyKey.fromKey(s.substring(startPosition,
                        endPosition));
            if (key != null)
                path = key.path();
        }
        if (path == null)
            throw new IllegalArgumentException("Invalid Key");

        startPosition = s.indexOf(START, endPosition) + START.length();
View Full Code Here

            else
                break;
        }

        // retrieve the current list of script menu items from the dashboard
        PropertyKey currentPhase = activeTaskModel.getNode();
        currentPath = (currentPhase == null ? null : currentPhase.path());
        List<ScriptID> scriptItems = ScriptEnumerator.getScripts(ctx,
            currentPhase);

        if (scriptItems != null && scriptItems.size() > 1) {
            ScriptMenuBuilder b = new ScriptMenuBuilder(scriptItems);
View Full Code Here

        } else if (nodeIsPSP) {
            if (nodeID != null) {
                nodeTypes.put(nodePath, TaskNodeType.PSP);
                for (int i = 0; i < numChildren; i++) {
                    PropertyKey phase = hier.getChildKey(node, i);
                    String phasePath = phase.path();
                    nodeTypes.put(phasePath, TaskNodeType.PspPhase);

                    String phaseID;
                    if (nodeID.equals(inheritedID))
                        phaseID = nodeID;
                    else
                        phaseID = nodeID + "/" + phase.name();
                    enactmentTasks.put(phasePath, phaseID);
                }
            }

        } else {
            nodeTypes.put(nodePath, TaskNodeType.Parent);
            for (int i = 0; i < numChildren; i++) {
                PropertyKey child = hier.getChildKey(node, i);
                if (enumerateTasks(child, nodeID))
                    isWorkflowPart = true;
            }
        }
       
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.hier.PropertyKey

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.