join.cs

来自「xpdl的c#解析器 完全依照xpdl标准」· CS 代码 · 共 39 行

CS
39
字号
using System;
using System.Collections;
using Nucleus.Common.Util;

namespace com.use.wfp.xpdl.elements
{
	/// <summary>
	/// Join 的摘要说明。
	/// </summary>
	public class Join:BaseElement
	{
		private String gc;
		private static Hashtable modes;
		public JoinType GetJoinType()
		{
			if(IsTypeSpecified())
			{
				return (JoinType)modes[gc];
			}
			throw new ObjectNotFound("JoinType is not specified");
		}

		public Join()
		{
			if(modes == null)
			{
				modes = new Hashtable();
				modes.Add("AND", JoinType.AND);
				modes.Add("XOR", JoinType.XOR);
			}			
		}

		public bool IsTypeSpecified()
		{
			return GetAttribute(gc, out gc, "Type") != "";
		}
	}
}

⌨️ 快捷键说明

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