亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? stepdescriptor.java

?? 一個(gè)很好實(shí)用的工作流OSWORKFLOW開發(fā)例子.有著非常優(yōu)秀的靈活性.
?? JAVA
字號(hào):
/* * Copyright (c) 2002-2003 by OpenSymphony * All rights reserved. */package com.opensymphony.workflow.loader;import com.opensymphony.workflow.InvalidWorkflowDescriptorException;import com.opensymphony.workflow.util.Validatable;import org.w3c.dom.Element;import org.w3c.dom.Node;import org.w3c.dom.NodeList;import java.io.PrintWriter;import java.util.*;/** * @author <a href="mailto:plightbo@hotmail.com">Pat Lightbody</a> */public class StepDescriptor extends AbstractDescriptor implements Validatable {    //~ Instance fields ////////////////////////////////////////////////////////    protected List actions = new ArrayList();    /**     * this list maintained internally to allow for proper xml serialization.     * All common-action elements in the XML file are expanded into ActionDescriptors     * and are available via getActions()     */    protected List commonActions = new ArrayList();    protected List permissions = new ArrayList();    protected List postFunctions = new ArrayList();    protected List preFunctions = new ArrayList();    protected Map metaAttributes = new HashMap();    protected String name;    protected boolean hasActions = false;    //~ Constructors ///////////////////////////////////////////////////////////    /**     * @deprecated use {@link DescriptorFactory} instead     */    StepDescriptor() {    }    /**     * @deprecated use {@link DescriptorFactory} instead     */    StepDescriptor(Element step) {        init(step);    }    /** sets parent */    StepDescriptor(Element step, AbstractDescriptor parent) {        setParent(parent);        init(step);    }    //~ Methods ////////////////////////////////////////////////////////////////    public ActionDescriptor getAction(int id) {        for (Iterator iterator = actions.iterator(); iterator.hasNext();) {            ActionDescriptor action = (ActionDescriptor) iterator.next();            if (action.getId() == id) {                return action;            }        }        return null;    }    /**     * Get a List of {@link ActionDescriptor}s for this step     */    public List getActions() {        return actions;    }    /**     * Get a list of common actions.     * @return a List of Integer action id's.     */    public List getCommonActions() {        return commonActions;    }    public void setMetaAttributes(Map metaAttributes) {        this.metaAttributes = metaAttributes;    }    public Map getMetaAttributes() {        return metaAttributes;    }    public void setName(String name) {        this.name = name;    }    public String getName() {        return name;    }    /**     * Get a List of {@link PermissionDescriptor}s for this step     */    public List getPermissions() {        return permissions;    }    public void setPostFunctions(List postFunctions) {        this.postFunctions = postFunctions;    }    public List getPostFunctions() {        return postFunctions;    }    public void setPreFunctions(List preFunctions) {        this.preFunctions = preFunctions;    }    public List getPreFunctions() {        return preFunctions;    }    /**     * Remove all common and regular actions for this step.     */    public void removeActions() {        commonActions.clear();        actions.clear();        hasActions = false;    }    public boolean resultsInJoin(int join) {        for (Iterator iterator = actions.iterator(); iterator.hasNext();) {            ActionDescriptor actionDescriptor = (ActionDescriptor) iterator.next();            if (actionDescriptor.getUnconditionalResult().getJoin() == join) {                return true;            }            List results = actionDescriptor.getConditionalResults();            for (Iterator iterator2 = results.iterator(); iterator2.hasNext();) {                ConditionalResultDescriptor resultDescriptor = (ConditionalResultDescriptor) iterator2.next();                if (resultDescriptor.getJoin() == join) {                    return true;                }            }        }        return false;    }    public void validate() throws InvalidWorkflowDescriptorException {        if ((commonActions.size() == 0) && (actions.size() == 0) && hasActions) {            throw new InvalidWorkflowDescriptorException("Step '" + name + "' actions element must contain at least one action or common-action");        }        if (getId() == -1) {            throw new InvalidWorkflowDescriptorException("Cannot use a step ID of -1 as it is a reserved value");        }        ValidationHelper.validate(actions);        ValidationHelper.validate(permissions);        ValidationHelper.validate(preFunctions);        ValidationHelper.validate(postFunctions);        Iterator iter = commonActions.iterator();        while (iter.hasNext()) {            Object o = iter.next();            try {                Integer actionId = new Integer(o.toString());                ActionDescriptor commonActionReference = (ActionDescriptor) ((WorkflowDescriptor) getParent()).getCommonActions().get(actionId);                if (commonActionReference == null) {                    throw new InvalidWorkflowDescriptorException("Common action " + actionId + " specified in step " + getName() + " does not exist");                }            } catch (NumberFormatException ex) {                throw new InvalidWorkflowDescriptorException("Common action " + o + " is not a valid action ID");            }        }    }    public void writeXML(PrintWriter out, int indent) {        XMLUtil.printIndent(out, indent++);        out.print("<step id=\"" + getId() + "\"");        if ((name != null) && (name.length() > 0)) {            out.print(" name=\"" + XMLUtil.encode(name) + "\"");        }        out.println(">");        Iterator iter = metaAttributes.entrySet().iterator();        while (iter.hasNext()) {            Map.Entry entry = (Map.Entry) iter.next();            XMLUtil.printIndent(out, indent);            out.print("<meta name=\"");            out.print(entry.getKey());            out.print("\">");            out.print(entry.getValue());            out.println("</meta>");        }        if (preFunctions.size() > 0) {            XMLUtil.printIndent(out, indent++);            out.println("<pre-functions>");            for (int i = 0; i < preFunctions.size(); i++) {                FunctionDescriptor function = (FunctionDescriptor) preFunctions.get(i);                function.writeXML(out, indent);            }            XMLUtil.printIndent(out, --indent);            out.println("</pre-functions>");        }        if (permissions.size() > 0) {            XMLUtil.printIndent(out, indent++);            out.println("<external-permissions>");            for (int i = 0; i < permissions.size(); i++) {                PermissionDescriptor permission = (PermissionDescriptor) permissions.get(i);                permission.writeXML(out, indent);            }            XMLUtil.printIndent(out, --indent);            out.println("</external-permissions>");        }        if ((actions.size() > 0) || (commonActions.size() > 0)) {            XMLUtil.printIndent(out, indent++);            out.println("<actions>");            // special serialization common-action elements            for (int i = 0; i < commonActions.size(); i++) {                out.println("<common-action id=\"" + commonActions.get(i) + "\" />");            }            for (int i = 0; i < actions.size(); i++) {                ActionDescriptor action = (ActionDescriptor) actions.get(i);                if (!action.isCommon()) {                    action.writeXML(out, indent);                }            }            XMLUtil.printIndent(out, --indent);            out.println("</actions>");        }        if (postFunctions.size() > 0) {            XMLUtil.printIndent(out, indent++);            out.println("<post-functions>");            for (int i = 0; i < postFunctions.size(); i++) {                FunctionDescriptor function = (FunctionDescriptor) postFunctions.get(i);                function.writeXML(out, indent);            }            XMLUtil.printIndent(out, --indent);            out.println("</post-functions>");        }        XMLUtil.printIndent(out, --indent);        out.println("</step>");    }    protected void init(Element step) {        try {            setId(Integer.parseInt(step.getAttribute("id")));        } catch (Exception ex) {            throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id"));        }        name = step.getAttribute("name");        NodeList children = step.getChildNodes();        for (int i = 0; i < children.getLength(); i++) {            Node child = children.item(i);            if (child.getNodeName().equals("meta")) {                Element meta = (Element) child;                String value = XMLUtil.getText(meta);                this.metaAttributes.put(meta.getAttribute("name"), value);            }        }        // set up pre-functions - OPTIONAL        Element pre = XMLUtil.getChildElement(step, "pre-functions");        if (pre != null) {            List preFunctions = XMLUtil.getChildElements(pre, "function");            for (int k = 0; k < preFunctions.size(); k++) {                Element preFunction = (Element) preFunctions.get(k);                FunctionDescriptor functionDescriptor = DescriptorFactory.getFactory().createFunctionDescriptor(preFunction);                functionDescriptor.setParent(this);                this.preFunctions.add(functionDescriptor);            }        }        // set up permissions - OPTIONAL        Element p = XMLUtil.getChildElement(step, "external-permissions");        if (p != null) {            List permissions = XMLUtil.getChildElements(p, "permission");            for (int i = 0; i < permissions.size(); i++) {                Element permission = (Element) permissions.get(i);                PermissionDescriptor permissionDescriptor = DescriptorFactory.getFactory().createPermissionDescriptor(permission);                permissionDescriptor.setParent(this);                this.permissions.add(permissionDescriptor);            }        }        // set up actions - OPTIONAL        Element a = XMLUtil.getChildElement(step, "actions");        if (a != null) {            hasActions = true;            List actions = XMLUtil.getChildElements(a, "action");            for (int i = 0; i < actions.size(); i++) {                Element action = (Element) actions.get(i);                ActionDescriptor actionDescriptor = DescriptorFactory.getFactory().createActionDescriptor(action);                actionDescriptor.setParent(this);                this.actions.add(actionDescriptor);            }            // look for common-action elements            List commonActions = XMLUtil.getChildElements(a, "common-action");            for (int i = 0; i < commonActions.size(); i++) {                Element commonAction = (Element) commonActions.get(i);                WorkflowDescriptor workflowDescriptor = (WorkflowDescriptor) getParent();                try {                    Integer actionId = new Integer(commonAction.getAttribute("id"));                    ActionDescriptor commonActionReference = (ActionDescriptor) workflowDescriptor.getCommonActions().get(actionId);                    if (commonActionReference != null) {                        this.actions.add(commonActionReference);                    }                    this.commonActions.add(actionId);                } catch (Exception ex) {                    //log.warn("Invalid common actionId:" + ex);                }            }        }        // set up post-functions - OPTIONAL        Element post = XMLUtil.getChildElement(step, "post-functions");        if (post != null) {            List postFunctions = XMLUtil.getChildElements(post, "function");            for (int k = 0; k < postFunctions.size(); k++) {                Element postFunction = (Element) postFunctions.get(k);                FunctionDescriptor functionDescriptor = DescriptorFactory.getFactory().createFunctionDescriptor(postFunction);                functionDescriptor.setParent(this);                this.postFunctions.add(functionDescriptor);            }        }    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲私人影院在线观看| www.欧美日韩| 麻豆传媒一区二区三区| 性欧美大战久久久久久久久| 亚洲国产成人av好男人在线观看| 亚洲一区在线看| 亚洲成va人在线观看| 婷婷六月综合亚洲| 日本成人中文字幕在线视频| 捆绑变态av一区二区三区 | 国产成人午夜精品5599| 国产精品456露脸| 成人高清伦理免费影院在线观看| 北岛玲一区二区三区四区| 99精品久久久久久| 日本高清不卡在线观看| 欧美日韩国产一级片| 欧美日本在线观看| 精品免费99久久| 国产精品毛片久久久久久久| 亚洲天堂久久久久久久| 亚洲福利视频一区二区| 日本午夜一区二区| 国产成人综合亚洲网站| 99久久er热在这里只有精品15 | 678五月天丁香亚洲综合网| 日韩欧美123| 国产精品免费人成网站| 亚洲主播在线观看| 久久99久久99精品免视看婷婷| 国产精品一区二区x88av| 一本久道中文字幕精品亚洲嫩| 欧美日韩中文字幕一区二区| 日韩一区二区视频在线观看| 国产片一区二区三区| 一区二区三区四区五区视频在线观看| 日韩一区精品字幕| 成人在线一区二区三区| 欧美日韩午夜影院| 久久伊99综合婷婷久久伊| 亚洲天堂a在线| 久久成人18免费观看| av在线不卡电影| 欧美一区二区三区在线看 | 国产一区二区在线电影| 94-欧美-setu| 精品成人私密视频| 亚洲一区二区三区影院| 国产黄人亚洲片| 欧美性大战xxxxx久久久| 欧美v亚洲v综合ⅴ国产v| 亚洲免费av在线| 韩国av一区二区三区四区| 91福利精品视频| 欧美极品美女视频| 午夜av电影一区| 91性感美女视频| 久久伊99综合婷婷久久伊| 亚洲国产成人porn| 成人福利视频在线看| 欧美成人在线直播| 亚洲国产另类av| 成人免费视频网站在线观看| 欧美一区二区视频在线观看2020 | 亚洲精品ww久久久久久p站| 国内一区二区在线| 欧美肥妇bbw| 亚洲人精品午夜| 国产麻豆日韩欧美久久| 欧美男同性恋视频网站| 日韩毛片精品高清免费| 国产精品99久久久久久久vr| 91精品国产入口| 一二三区精品福利视频| 不卡视频一二三| 国产日韩欧美不卡在线| 久久99精品一区二区三区三区| 欧美日韩三级一区二区| 亚洲摸摸操操av| 成人激情小说网站| 国产女人18毛片水真多成人如厕 | 亚洲国产一区二区a毛片| av亚洲精华国产精华精| 久久精品亚洲麻豆av一区二区| 久久精品国产99久久6| 7777精品伊人久久久大香线蕉超级流畅| 亚洲人成7777| 91原创在线视频| 国产精品久久久久久久久久免费看 | 欧美乱妇一区二区三区不卡视频| 亚洲精品综合在线| 99视频有精品| 国产精品三级在线观看| 国产精品一二二区| 国产欧美综合在线| 粉嫩绯色av一区二区在线观看| 久久久久久久久一| 国产麻豆精品久久一二三| 精品福利一二区| 国产一区二区剧情av在线| 26uuu精品一区二区在线观看| 国内精品写真在线观看| 久久亚区不卡日本| 国产激情视频一区二区在线观看| 久久精品人人做人人综合| 国产精品一区二区x88av| 国产日韩欧美精品一区| 成人国产一区二区三区精品| 国产精品福利一区| 在线视频国内一区二区| 亚洲一区二区三区精品在线| 欧美久久久久中文字幕| 日本中文在线一区| 欧美精品一区二| 国产成人精品免费| 亚洲同性gay激情无套| 欧美系列亚洲系列| 日韩激情av在线| 日韩一级大片在线观看| 韩国三级中文字幕hd久久精品| 国产欧美日韩三级| 色综合久久99| 日韩电影在线观看电影| 精品美女一区二区| 成人久久18免费网站麻豆| 亚洲视频一二三区| 欧美久久久影院| 精品亚洲porn| 亚洲图片欧美激情| 欧美巨大另类极品videosbest | 色狠狠综合天天综合综合| 午夜精品久久久久久久99水蜜桃| 日韩欧美国产一区二区三区| 国产精品白丝jk白祙喷水网站 | 色噜噜狠狠成人网p站| 亚洲成人一区二区| 久久久久青草大香线综合精品| 91在线免费播放| 裸体在线国模精品偷拍| 欧美国产综合色视频| 欧美性色综合网| 激情欧美日韩一区二区| 亚洲毛片av在线| 精品乱人伦小说| 91免费看视频| 美国一区二区三区在线播放| 国产欧美日产一区| 在线成人av影院| 成人做爰69片免费看网站| 亚洲高清免费一级二级三级| 国产午夜精品在线观看| 欧美精品在线一区二区| 国产成人免费视频网站| 视频一区二区三区在线| 国产精品免费网站在线观看| 91精品在线麻豆| 99久久精品久久久久久清纯| 美女精品一区二区| 亚洲黄色尤物视频| 久久久夜色精品亚洲| 欧美精品色综合| gogogo免费视频观看亚洲一| 欧美aaaaa成人免费观看视频| 亚洲色欲色欲www| www激情久久| 欧美绝品在线观看成人午夜影视| 99久久久无码国产精品| 精品一区二区三区免费| 亚洲国产精品一区二区尤物区| 国产欧美日韩在线观看| 欧美zozo另类异族| 欧美日韩成人在线一区| 色综合久久综合中文综合网| 国产精品 日产精品 欧美精品| 日韩高清在线观看| 亚洲免费在线播放| 国产精品乱码一区二区三区软件 | 中文字幕电影一区| 精品久久久久久无| 欧美色精品在线视频| 99久久国产免费看| 国产福利电影一区二区三区| 麻豆久久久久久| 午夜精品国产更新| 亚洲a一区二区| 亚洲午夜精品网| 一区二区三区在线视频观看58| 国产精品拍天天在线| 久久久亚洲综合| 久久久综合视频| 精品嫩草影院久久| 欧美成人性战久久| 91精品久久久久久久99蜜桃| 欧美日韩dvd在线观看| 欧美日韩一区二区在线观看视频| 91麻豆精品秘密| 色欧美88888久久久久久影院| av在线不卡电影| 91在线视频观看| 91国产丝袜在线播放|