/// <summary> /// Creates a group builder that builds a group as part of the current group element. /// </summary> /// <param name="groupType">Group type.</param> /// <returns>Group builder.</returns> public GroupBuilder Group(GroupType groupType) { var builder = new GroupBuilder(); builder.GroupType(groupType); _nestedBuilders.Add(builder); return(builder); }
/// <summary> /// Creates a group builder that builds a group as the source of the negative existential element. /// </summary> /// <param name="groupType">Group type.</param> /// <returns>Group builder.</returns> public GroupBuilder Group(GroupType groupType) { AssertSingleSource(); var sourceBuilder = new GroupBuilder(); sourceBuilder.GroupType(groupType); _sourceBuilder = sourceBuilder; return(sourceBuilder); }