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