예제 #1
0
파일: GroupSchema.cs 프로젝트: wpq0/FormNG
 /// <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);
 }
예제 #2
0
 /// <summary>
 /// A multipart form can accept 
 /// </summary>
 internal override bool CanAccept(NodeSchema node)
 {
     return base.CanAccept(node) && node.Type == NodeType.Form;
 }
예제 #3
0
파일: FormSchema.cs 프로젝트: wpq0/FormNG
 /// <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);
 }