/// <summary> /// Constructor. /// </summary> /// <param name="parentNameRegex">Regex to match against the node's parent's 'name' attribute.</param> /// <param name="nameRegex">Regex to match against the node's 'name' attribute.</param> /// <param name="showRegex">Regex to match against the node's 'show' attribute.</param> /// <param name="shownameRegex">Regex to match against the node's 'showname' attribute.</param> /// <param name="valueRegex">Regex to match against the node's 'value' attribute.</param> /// <param name="nameFormat">Format string used to generate a new node 'name' attribute.</param> /// <param name="valueFormat">Format string used to generate new node 'value' attribute.</param> public TemplateFixup(string parentNameRegex, string nameRegex, string showRegex, string shownameRegex, string valueRegex, string nameFormat, string valueFormat) { this.ParentNameRegex = RegexSupport.GetRegex(parentNameRegex); this.NameRegex = RegexSupport.GetRegex(nameRegex); this.ShowRegex = RegexSupport.GetRegex(showRegex); this.ShownameRegex = RegexSupport.GetRegex(shownameRegex); this.ValueRegex = RegexSupport.GetRegex(valueRegex); this.NameFormat = nameFormat; this.ValueFormat = valueFormat; }
/// <summary> /// Constructor. /// </summary> /// <param name="type">Type of rule.</param> /// <param name="tableNameRegex">Regular expression to match against table names.</param> /// <param name="columnNameRegex">Regular expression to match against column names.</param> public ColumnFilterCommand(DataFilterType type, string tableNameRegex, string columnNameRegex) { this.Type = type; this.TableNameRegex = RegexSupport.GetRegex(tableNameRegex); this.ColumnNameRegex = RegexSupport.GetRegex(columnNameRegex); }
/// <summary> /// Constructor. /// </summary> /// <param name="type">Type of rule.</param> /// <param name="tableNameRegex">Regular expression to match against table names.</param> public TableFilterRule(DataFilterType type, string tableNameRegex) { this.Type = type; this.TableNameRegex = RegexSupport.GetRegex(tableNameRegex); }