示例#1
0
 protected Specification(Message parent)
 {
     if (parent == null)
         throw new ArgumentNullException();
     this.Message = parent;
     this.Protocols = new List<string>();
 }
示例#2
0
        public Parameter(Message parent, XmlNode xml, XmlNamespaceManager nsm)
            : base(parent)
        {
            if (xml == null)
                throw new ArgumentNullException();
            if (nsm == null)
                throw new ArgumentNullException();

            XmlAttribute attr = xml.SelectSingleNode("@name", nsm) as XmlAttribute;
            if (attr != null)
                this.Name = attr.Value;
            attr = xml.SelectSingleNode("@aliasing", nsm) as XmlAttribute;
            if (attr != null)
                this.Aliasing = (AliasingEnum)Enum.Parse(typeof(AliasingEnum), attr.Value, true);

            foreach (XmlAttribute node in xml.SelectNodes("sd:Protocol/@name", nsm))
                this.Protocols.Add(node.Value);
        }
示例#3
0
        public ReturnValue(Message parent, XmlNode xml, XmlNamespaceManager nsm)
            : base(parent)
        {
            if (xml == null)
                throw new ArgumentNullException();
            if (nsm == null)
                throw new ArgumentNullException();

            XmlAttribute attr = xml.SelectSingleNode("@aliasing", nsm) as XmlAttribute;
            if (attr != null)
                this.Aliasing = (AliasingEnum)Enum.Parse(typeof(AliasingEnum), attr.Value, true);

            XmlElement elem = xml.SelectSingleNode("sd:Description", nsm) as XmlElement;
            if (elem != null)
                this.Description = new HtmlString(elem);

            foreach (XmlAttribute node in xml.SelectNodes("sd:Protocol/@name", nsm))
                this.Protocols.Add(node.Value);
        }
示例#4
0
 public Parameter(Message parent)
     : base(parent)
 {
 }
示例#5
0
 public ReturnValue(Message parent)
     : base(parent)
 {
 }