17 using System.Text.RegularExpressions;
20 namespace erminas.SmartAPI.CMS.Project.ContentClasses.Elements
24 Regex RegularExpression {
get;
set; }
27 internal class StandardFieldUserDefined : StandardFieldNonDate, IStandardFieldUserDefined
29 internal StandardFieldUserDefined(
IContentClass contentClass, XmlElement xmlElement)
30 : base(contentClass, xmlElement)
34 public Regex RegularExpression
36 get {
return new Regex(RegexAttribute ??
""); }
39 string str = value.ToString();
40 if (
string.IsNullOrEmpty(str))
42 throw new ArgumentException(
"Empty pattern not allowed for user defined standard fields.");
48 [RedDot(
"eltverifytermregexp")]
49 private string RegexAttribute
51 get {
return GetAttributeValue<string>(); }
52 set { SetAttributeValue(value); }