private void GetAllTypes(TypeCollection <NodeType> types) { types.Add(this); foreach (NodeType subType in this.GetChildren()) { subType.GetAllTypes(types); } }
public TypeCollection <NodeType> GetChildren() { TypeCollection <NodeType> children = new TypeCollection <NodeType>(this.SchemaRoot); foreach (NodeType nt in _children) { children.Add(nt); } return(children); }
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); }