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

📄 attributeimpl.cs

📁 工作流的基本资料(文档资料
💻 CS
字号:
using System;
using NetBpm.Util.Xml;
using NetBpm.Workflow.Delegation;
using NetBpm.Workflow.Delegation.Impl;

namespace NetBpm.Workflow.Definition.Impl
{
	public class AttributeImpl : DefinitionObjectImpl, IAttribute
	{
		private IProcessBlock _scope = null;
		private String _initialValue = null;
		private DelegationImpl _serializerDelegation = null;

		public IProcessBlock Scope
		{
			set { _scope = value; }
			get { return _scope; }
		}

		public String InitialValue
		{
			set { _initialValue = value; }
			get { return _initialValue; }
		}

		public IDelegation SerializerDelegation
		{
			set { _serializerDelegation = (DelegationImpl) value; }
			get { return _serializerDelegation; }
		}

		public AttributeImpl()
		{
		}

		public AttributeImpl(IProcessDefinition processDefinition) : base(processDefinition)
		{
		}

		public DelegationImpl CreateSerializerDelegation()
		{
			_serializerDelegation = new DelegationImpl(_processDefinition);
			return _serializerDelegation;
		}

		public override void ReadProcessData(XmlElement xmlElement, CreationContext creationContext)
		{
			base.ReadProcessData(xmlElement, creationContext);
			this._scope = creationContext.ProcessBlock;
			this._initialValue = xmlElement.GetProperty("initial-value");

			creationContext.DelegatingObject = this;
			this._serializerDelegation = new DelegationImpl();
			this._serializerDelegation.ReadProcessData(xmlElement, creationContext);
			creationContext.DelegatingObject = null;
			creationContext.AddReferencableObject(_name, (ProcessBlockImpl) this._scope, typeof (IAttribute), this);
		}

		public override void Validate(ValidationContext validationContext)
		{
			base.Validate(validationContext);
		}
	}
}

⌨️ 快捷键说明

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