⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 deadline.cs

📁 xpdl的c#解析器 完全依照xpdl标准
💻 CS
字号:
using System;
using System.Collections;
using Nucleus.Common.Util;

namespace com.use.wfp.xpdl.elements
{
	/// <summary>
	/// Deadline 的摘要说明。
	/// </summary>
	public class Deadline:BaseElement
	{
		/// <remarks/>
		private Node DeadlineCondition = NodeFactory.CreateNode();
		public Node GetDeadlineCondition()
		{
			if(DeadlineCondition.IsEmpty()){
				Init();
			}
			return DeadlineCondition;
		}
        
		/// <remarks/>
		private Node ExceptionName = NodeFactory.CreateNode();
		public Node GetExceptionName()
		{
			if(ExceptionName.IsEmpty()){
				Init();
			}
			return ExceptionName;
		}
        
		private String gc;
		private static Hashtable modes;
		public DeadlineExecution GetDeadlineExecution()
		{
			if(IsExecutionSpecified())
			{
				return (DeadlineExecution)modes[gc];
			}
			throw new ObjectNotFound("DeadlineExecution is not specified");
		}

		public Deadline()
		{
			if(modes == null)
			{
				modes = new Hashtable();
				modes.Add("ASYNCHR", DeadlineExecution.ASYNCHR);
				modes.Add("SYNCHR", DeadlineExecution.SYNCHR);
			}
		}

		private void Init()
		{
			IList nodes = null;
			GetChildren(nodes, out nodes);
			foreach(Node node in nodes)
			{
				if(node.GetName().Equals("DeadlineCondition"))
				{
					DeadlineCondition = node;
				}
				else if(node.GetName().Equals("ExceptionName"))
				{
					ExceptionName = node;
				}
			}
		}
        
		public bool IsExecutionSpecified()
		{
			return GetAttribute(gc, out gc, "Execution") != "";
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -