コード例 #1
0
 private void GetAllTypes(TypeCollection <NodeType> types)
 {
     types.Add(this);
     foreach (NodeType subType in this.GetChildren())
     {
         subType.GetAllTypes(types);
     }
 }
コード例 #2
0
        public TypeCollection <NodeType> GetChildren()
        {
            TypeCollection <NodeType> children = new TypeCollection <NodeType>(this.SchemaRoot);

            foreach (NodeType nt in _children)
            {
                children.Add(nt);
            }
            return(children);
        }
コード例 #3
0
 internal override void AddPropertyType(PropertyType propertyType)
 {
     if (propertyType.IsContentListProperty)
     {
         throw new SchemaEditorCommandException(String.Concat("ContentListProperty cannot be assegned to a NodeType. NodeType=", this.Name, ", PropertyType=", propertyType.Name));
     }
     if (!this.PropertyTypes.Contains(propertyType))
     {
         this.PropertyTypes.Add(propertyType);
     }
     if (!_declaredPropertyTypes.Contains(propertyType))
     {
         _declaredPropertyTypes.Add(propertyType);
     }
     InheritPropertyType(propertyType);
 }