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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? stepdescriptor.java

?? Java編譯osworkflow工作流系統的安裝和源代碼
?? JAVA
字號:
/* * 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);            }        }    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区电影在线播| 国产欧美精品一区| 成人久久18免费网站麻豆| 日韩中文字幕不卡| 中文字幕免费不卡在线| 日韩精品专区在线影院观看| 色天天综合久久久久综合片| 丁香五精品蜜臀久久久久99网站| 日韩av中文字幕一区二区| 亚洲精品五月天| 亚洲欧洲成人精品av97| 国产婷婷一区二区| 亚洲精品一区二区三区99| 欧美日产国产精品| 色视频一区二区| www.成人网.com| 丁香婷婷综合激情五月色| 狠狠色丁香婷综合久久| 轻轻草成人在线| 婷婷国产v国产偷v亚洲高清| 亚洲一区中文日韩| 亚洲黄色免费网站| 国产一区在线精品| 视频一区中文字幕国产| 亚洲h动漫在线| 亚洲成av人片在线观看| 亚洲综合男人的天堂| 亚洲美女屁股眼交3| 亚洲人精品午夜| 亚洲男同1069视频| 亚洲免费av高清| 亚洲精品国产精华液| 一区二区三区欧美日韩| 亚洲视频一区在线观看| 国产精品国产三级国产有无不卡| 国产人伦精品一区二区| 欧美国产欧美综合| 亚洲同性同志一二三专区| 中文字幕一区二区不卡| 欧美国产乱子伦| 亚洲色图另类专区| 亚洲激情在线播放| 亚洲不卡在线观看| 麻豆一区二区三区| 国产综合色在线| 成人综合激情网| 99久久精品费精品国产一区二区| 99精品视频在线观看免费| 91猫先生在线| 欧美三区在线观看| 欧美一区二区久久| 国产亚洲美州欧州综合国| 国产精品久久久久久亚洲毛片| 中文字幕一区免费在线观看| 亚洲精品国产一区二区精华液 | 日韩写真欧美这视频| 日韩三级视频在线看| 26uuu色噜噜精品一区二区| 国产女人aaa级久久久级| 亚洲伦理在线精品| 日韩不卡一二三区| 成人在线综合网| 在线免费视频一区二区| 91麻豆精品国产综合久久久久久| 精品欧美乱码久久久久久1区2区| 欧美经典三级视频一区二区三区| 亚洲美女免费视频| 蜜桃视频在线一区| 高潮精品一区videoshd| 一本在线高清不卡dvd| 欧美一级黄色录像| 亚洲欧美影音先锋| 图片区小说区国产精品视频| 国产一区二三区| 色婷婷av一区二区| 久久亚洲一区二区三区明星换脸 | 欧美精品乱人伦久久久久久| 精品久久国产97色综合| 中文字幕中文字幕在线一区 | 五月婷婷久久综合| 国产v日产∨综合v精品视频| 精品视频一区二区不卡| 久久精品水蜜桃av综合天堂| 亚洲综合色网站| 懂色av一区二区在线播放| 欧美高清dvd| 亚洲欧美自拍偷拍色图| 久久国产综合精品| 91激情在线视频| 久久久久久久电影| 日韩国产欧美三级| 91色九色蝌蚪| 久久久久国产精品免费免费搜索| 亚洲小少妇裸体bbw| 成人黄动漫网站免费app| 欧美一区二区三区免费观看视频| 综合色天天鬼久久鬼色| 国产麻豆一精品一av一免费| 欧美精选在线播放| 亚洲欧美日韩国产成人精品影院 | 国产亚洲婷婷免费| 亚洲成人高清在线| 99久久伊人久久99| 欧美精品一区二区三| 日韩精品亚洲专区| 91免费看片在线观看| 久久久久国产精品人| 麻豆成人久久精品二区三区小说| 欧美性大战xxxxx久久久| 国产精品欧美久久久久一区二区| 麻豆免费看一区二区三区| 欧美色网一区二区| 亚洲精品乱码久久久久久久久| 成人激情校园春色| 国产情人综合久久777777| 久久er99热精品一区二区| 欧美一区二区三区四区五区 | 色综合视频在线观看| 亚洲欧洲国产日韩| 成人app在线| 国产精品不卡一区| heyzo一本久久综合| 国产精品网站导航| 成人免费观看av| 中文av字幕一区| 不卡欧美aaaaa| 亚洲天天做日日做天天谢日日欢| 成a人片亚洲日本久久| 国产精品国产三级国产aⅴ中文| 国产成人av影院| 日本一区二区动态图| 国产**成人网毛片九色| 国产精品久久久久影院色老大| 成人激情图片网| 国产精品久久久久永久免费观看| 成人高清免费观看| ...av二区三区久久精品| 一本色道亚洲精品aⅴ| 亚洲欧美色综合| 欧美在线视频你懂得| 亚洲成人免费观看| 日韩欧美视频在线| 国内精品自线一区二区三区视频| 久久久久久久综合日本| 粉嫩绯色av一区二区在线观看| 国产精品美女一区二区在线观看| 成人理论电影网| 一区二区三区精品久久久| 欧美做爰猛烈大尺度电影无法无天| 亚洲一区二区免费视频| 91精品国产综合久久小美女| 久久精品国产在热久久| 国产欧美日韩中文久久| 91丨porny丨国产入口| 亚洲成人免费在线| 精品国产乱码久久久久久1区2区 | 6080午夜不卡| 国模套图日韩精品一区二区| 国产女人18水真多18精品一级做| 9人人澡人人爽人人精品| 性欧美大战久久久久久久久| 欧美v日韩v国产v| caoporn国产一区二区| 亚洲成av人片一区二区| 欧美mv和日韩mv的网站| 99热在这里有精品免费| 丝袜亚洲另类欧美综合| 久久久久9999亚洲精品| 日本精品裸体写真集在线观看| 婷婷开心久久网| 国产精品视频九色porn| 在线视频一区二区三| 久久国产尿小便嘘嘘尿| 亚洲欧美日韩久久精品| 日韩欧美激情在线| 色噜噜狠狠色综合欧洲selulu| 日产精品久久久久久久性色| 亚洲国产精品传媒在线观看| 欧美日本国产视频| 国产大陆精品国产| 日韩综合小视频| 欧美国产精品中文字幕| 在线不卡一区二区| 成人综合在线观看| 久久精品国产精品青草| 一区二区视频在线| 久久综合色天天久久综合图片| 在线欧美小视频| 粉嫩高潮美女一区二区三区 | 亚洲一区二区av在线| 国产婷婷色一区二区三区在线| 欧美日本国产视频| 91免费视频网址| 国产成人精品一区二区三区四区| 婷婷综合五月天| 亚洲视频综合在线| 国产亚洲一区二区三区| 日韩一区二区三区四区五区六区| 欧美性一二三区| 99精品视频一区|