// for now).
public abstract class RdpPattern
{
+ public static readonly RdpPattern Anything;
+
+ static RdpPattern ()
+ {
+ RdpPattern anyAtts = new RdpList (new RdpAttribute (RdpAnyName.Instance, RdpText.Instance));
+ RdpElement anyElement = new RdpElement (RdpAnyName.Instance, null);
+ Anything = new RdpChoice (RdpEmpty.Instance, new RdpChoice (anyAtts, new RdpChoice (RdpText.Instance, new RdpList (anyElement))));
+ anyElement.Children = Anything;
+ }
+
internal bool nullableComputed;
internal bool isNullable;
Hashtable patternPool;
constraintsChecked = true;
if (attribute || list || dataExcept)
throw new RelaxngException ("Not allowed element occurence was specified in the pattern.");
- this.Children.CheckConstraints (false, oneOrMore, oneOrMoreGroup, oneOrMoreInterleave, false, false);
+ this.Children.CheckConstraints (false, false, false, oneOrMoreInterleave, false, false);
}
internal override bool ContainsText()
{
- return children.ContainsText ();
+ return false;
}
}