/// <summary> /// A group can accept almost everything (including other groups) /// It cannot contains forms or multipart forms, however /// </summary> internal override bool CanAccept(NodeSchema node) { return base.CanAccept(node) && (node.Type == NodeType.Field || node.Type == NodeType.List || node.Type == NodeType.File || node.Type == NodeType.Table || node.Type == NodeType.Group); }
/// <summary> /// A multipart form can accept /// </summary> internal override bool CanAccept(NodeSchema node) { return base.CanAccept(node) && node.Type == NodeType.Form; }
/// <summary> /// A form schema cannot contains other form or a multipart one /// </summary> internal override bool CanAccept(NodeSchema node) { return base.CanAccept(node) && !(node.Type == NodeType.Form || node.Type == NodeType.MultipartForm); }