Beispiel #1
0
        /// <summary>
        /// Adds the node to the address space <see cref="IAddressSpaceCreator" />.
        /// </summary>
        /// <param name="space">The address space as a tree of nodes.</param>
        protected override void AddNode2AddressSpace(IAddressSpaceCreator space)
        {
            int _addressSpaceIndex = space.AddNode2AddressSpace(this, SymbolicName.ToString());

            foreach (Reference item in this.References)
            {
                space.AddReference(_addressSpaceIndex, item.Wrapper.ReferenceType.XmlQualifiedName, item.Wrapper.IsInverse, item.Wrapper.TargetId.XmlQualifiedName);
            }
            IInstanceNodesCollection children = AddChildren(space, SymbolicName, _addressSpaceIndex, false);

            children.RegisterChildrenInAddressSpace();
            space.AddReference(_addressSpaceIndex, BuildInXmlQualifiedNames.HasSubtype, true, this.Wrapper.BaseType.ValueOrDefault);
        }
Beispiel #2
0
 /// <summary>
 /// Adds this instance to the address space.
 /// </summary>
 /// <param name="space">The space.</param>
 /// <returns></returns>
 protected override void AddNode2AddressSpace(IAddressSpaceCreator space)
 {
     space.AddNode2AddressSpace(this);
 }