📄 attributeimpl.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 + -