private string GetUserDefinedType(WhereRule rule) { return(new Regex("EXISTS\\s*\\([^\\)]+?\\.(?<type>.+?)\\)").Match(rule.Definition).Groups["type"].Value); }
private bool GetPredefinedType(WhereRule rule, out string type) { type = new Regex("(?<type>Ifc\\w+)\\.USERDEFINED").Match(rule.Definition).Groups["type"].Value; return(!string.IsNullOrWhiteSpace(type)); }
private string GetErr(WhereRule rule) { return(string.Format("{0}Errors.{1}.{2}", Schema, Rules.Type, rule.Name)); }
private bool GetElementType(WhereRule rule, out string type) { type = new Regex("Ifc\\w+Type").Match(rule.Description).Value; return(!string.IsNullOrWhiteSpace(type)); }
private string GetDescription(WhereRule rule) { return(new Regex("^", RegexOptions.Multiline).Replace(rule.Description, " /// ")); }