예제 #1
0
        protected BaseHdumNode(IHdumNode parent, IHdumType type, String name)
        {
            _Members = new OrderedDictionary<String, IHdumNode>();
            _Children = new List<IHdumNode>();

            _SelfReference = this;
            _Parent = parent;
            _Root = parent != null ? parent.Root : this;
            _NodeType = type;
            _Namespace = type.Namespace;

            var names = _Namespace.MemberNames;
            var prefix = _Namespace.NamesPrefix;

            this[prefix + names.NameofThis] = _SelfReference;
            this[prefix + names.NameofParent] = _Parent;
            this[prefix + names.NameofRoot] = _Root;
            this[prefix + names.NameofType] = _NodeType;
            
            _NameNode = name != null ? _Namespace.TypeofName.CreateNode(this, name).As<IHdumName>() : null;
            this[prefix + names.NameofName] = _NameNode;
        }
예제 #2
0
 public HdumNamespaceException(IHdumNamespace nspace, String message)
     : base(message) { Namespace = nspace; }
예제 #3
0
 public HdumNamespaceException(IHdumNamespace nspace, String message, Exception inner)
     : base(message, inner) { Namespace = nspace; }
예제 #4
0
 public HdumNamespaceException(IHdumNamespace nspace)
     : base("A problem within a given HDUM namespace has occurred.") { Namespace = nspace; }