extendedattribute.cs

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

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

namespace com.use.wfp.xpdl.elements
{
	/// <summary>
	/// ExtendedAttribute 的摘要说明。
	/// </summary>
	public class ExtendedAttribute:BaseElement
	{
		private IList nodes;
		public IList GetNodes()
		{
			return GetChildren(nodes, out nodes);
		}

		public Node GetNodeByName(String name)
		{
			if(nodes == null){
				GetNodes();
			}
			foreach(Node node in nodes){
				if(node.GetName().Equals(name)){
					return node;
				}
			}
			throw new ObjectNotFound("Node Not Found! Name = " + name);
		}
        
		new public string GetText()
		{
			return base.GetText();
		}
        
		/// <remarks/>
		private string Name;
		public String GetName()
		{
			return GetAttribute(Name, out Name, "Name");
		}

		/// <remarks/>
		private string Value;
		public String GetValue()
		{
			return GetAttribute(Value, out Value, "Value");
		}
	}
}

⌨️ 快捷键说明

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