Example #1
0
        private void BuildOutputDictionary(IOSpecDefinition iOSpec)
        {
            Output.Clear();

            foreach (IOItemDefinition itemDefinition in iOSpec.Output.Values)
            {
                var item = new IOItem(itemDefinition, itemDefinition.Name);
                Output.Add(itemDefinition.Name, item);
            }
        }
Example #2
0
        /// <summary>
        /// Determines whether the specified <see cref="System.Object"/> is equal to this s_instance.
        /// </summary>
        /// <param name="obj">The <see cref="System.Object"/> to compare with this s_instance.</param>
        /// <returns>
        ///   <c>true</c> if the specified <see cref="System.Object"/> is equal to this s_instance; otherwise, <c>false</c>.
        /// </returns>
        public override bool Equals(object obj)
        {
            IOItem other = obj as IOItem;

            if (other == null)
            {
                return(false);
            }

            bool isEqual = true;

            isEqual &= object.Equals(IOItemDefinition, other.IOItemDefinition);
            isEqual &= object.Equals(MappedTo, other.MappedTo);

            return(isEqual);
        }
Example #3
0
        private void ReadOldIOSpec(XPathNavigator nav)
        {
            XPathNodeIterator inputItemsIterator = nav.Select("/IOSpec/Input//InputItem");

            while (inputItemsIterator.MoveNext())
            {
                IOItem item = new IOItem();
                item.ReadXml(inputItemsIterator.Current.ReadSubtree());
                Input.Add(item.IOItemDefinition.Name, item);
            }

            XPathNodeIterator outputItemsIterator = nav.Select("/IOSpec/Output//OutputItem");

            while (outputItemsIterator.MoveNext())
            {
                IOItem item = new IOItem();
                item.ReadXml(outputItemsIterator.Current.ReadSubtree());
                Output.Add(item.IOItemDefinition.Name, item);
            }
        }
Example #4
0
        private void ReadOldIOSpec(XPathNavigator nav)
        {
            XPathNodeIterator inputItemsIterator = nav.Select("/IOSpec/Input//InputItem");

            while (inputItemsIterator.MoveNext())
            {
                IOItem item = new IOItem();
                item.ReadXml(inputItemsIterator.Current.ReadSubtree());
                Input.Add(item.IOItemDefinition.Name, item);
            }

            XPathNodeIterator outputItemsIterator = nav.Select("/IOSpec/Output//OutputItem");

            while (outputItemsIterator.MoveNext())
            {
                IOItem item = new IOItem();
                item.ReadXml(outputItemsIterator.Current.ReadSubtree());
                Output.Add(item.IOItemDefinition.Name, item);
            }
        }
Example #5
0
        private void BuildOutputDictionary(IOSpecDefinition iOSpec)
        {
            Output.Clear();

            foreach (IOItemDefinition itemDefinition in iOSpec.Output.Values)
            {
                var item = new IOItem(itemDefinition, itemDefinition.Name);
                Output.Add(itemDefinition.Name, item);
            }
        }
 public IOItemNode(IOItem ioItem) 
 {
     m_ioItem = ioItem;
 }