Exemple #1
0
        private NvdlTrigger ReadTrigger()
        {
            NvdlTrigger el = new NvdlTrigger();

            FillLocation(el);
            el.NS       = reader.GetAttribute("ns");
            el.NameList = reader.GetAttribute("nameList");
            FillForeignAttribute(el);
            if (reader.IsEmptyElement)
            {
                reader.Skip();
                return(el);
            }
            reader.Read();
            do
            {
                reader.MoveToContent();
                if (reader.NodeType == XmlNodeType.EndElement)
                {
                    break;
                }
                if (reader.NamespaceURI != Nvdl.Namespace)
                {
                    el.Foreign.Add(XDocument.ReadFrom(reader));
                    continue;
                }
            } while (!reader.EOF);
            if (!reader.EOF)
            {
                reader.Read();
            }
            return(el);
        }
Exemple #2
0
        public SimpleTrigger(NvdlTrigger trigger)
        {
            FillLocation(trigger);

            var al = new List <XmlQualifiedName> ();

            foreach (string ss in trigger.NameList.Split(' '))
            {
                string s = ss.Trim();
                if (s.Length == 0)
                {
                    continue;
                }
                al.Add(new XmlQualifiedName(s, trigger.NS));
            }
            names = al.ToArray();
        }
Exemple #3
0
        public SimpleTrigger(NvdlTrigger trigger)
        {
            FillLocation(trigger);

            ArrayList al = new ArrayList();

            foreach (string ss in trigger.NameList.Split(' '))
            {
                string s = ss.Trim();
                if (s.Length == 0)
                {
                    continue;
                }
                al.Add(new XmlQualifiedName(s, trigger.NS));
            }
            names = (XmlQualifiedName [])al.ToArray(
                typeof(XmlQualifiedName));
        }
Exemple #4
0
 public void Remove(NvdlTrigger item)
 {
     List.Add(item);
 }
Exemple #5
0
 public void Add(NvdlTrigger item)
 {
     List.Add(item);
 }
Exemple #6
0
		public void Remove (NvdlTrigger item)
		{
			List.Add (item);
		}
Exemple #7
0
		public void Add (NvdlTrigger item)
		{
			List.Add (item);
		}
Exemple #8
0
		private NvdlTrigger ReadTrigger ()
		{
			NvdlTrigger el = new NvdlTrigger ();
			FillLocation (el);
			el.NS = reader.GetAttribute ("ns");
			el.NameList = reader.GetAttribute ("nameList");
			FillForeignAttribute (el);
			if (reader.IsEmptyElement) {
				reader.Skip ();
				return el;
			}
			reader.Read ();
			do {
				reader.MoveToContent ();
				if (reader.NodeType == XmlNodeType.EndElement)
					break;
				if (reader.NamespaceURI != Nvdl.Namespace) {
					el.Foreign.Add (doc.ReadNode (reader));
					continue;
				}
			} while (!reader.EOF);
			if (!reader.EOF)
				reader.Read ();
			return el;
		}
Exemple #9
0
		public SimpleTrigger (NvdlTrigger trigger)
		{
			FillLocation (trigger);

			ArrayList al = new ArrayList ();
			foreach (string ss in trigger.NameList.Split (' ')) {
				string s = ss.Trim ();
				if (s.Length == 0)
					continue;
				al.Add (new XmlQualifiedName (s, trigger.NS));
			}
			names = (XmlQualifiedName []) al.ToArray (
				typeof (XmlQualifiedName));
		}