/// <summary> /// Alternate constructor allowing you to specify the id/name of the different save button /// ids that could exist in the request, at least one must match and they are matched using the FieldMatchType specified /// </summary> /// <param name="saveButtons"></param> /// <param name="matchType"></param> public SaveAttribute(FieldMatchType matchType, params string[] saveButtons) : base(FieldMatchCount.MatchAtLeastOne, matchType, saveButtons) { }
public FieldMatch(Field field, FieldMatchType matchType, bool isBibliography) { this.field = field; this.matchType = matchType; this.isBibliography = isBibliography; }
/// <summary> /// Contructor /// </summary> /// <param name="fieldNames"></param> /// <param name="matchCount"></param> /// <param name="matchType"></param> public RequiredFieldAttribute(FieldMatchCount matchCount, FieldMatchType matchType, params string[] fieldNames) { _fieldNames = fieldNames; _matchCount = matchCount; _matchType = matchType; }