\r
public abstract RdpContentType ContentType { get; }\r
\r
- private Hashtable setupTable (RelaxngPatternType type, RdpPattern p)\r
+ private Hashtable setupTable (Type type, RdpPattern p)\r
{\r
// Why?\r
if (patternPool == null) {\r
\r
public RdpChoice MakeChoice (RdpPattern p1, RdpPattern p2)\r
{\r
- Hashtable p1Table = setupTable (RelaxngPatternType.Choice, p1);\r
+ Hashtable p1Table = setupTable (typeof (RdpChoice), p1);\r
if (p1Table [p2] == null) {\r
RdpChoice c = new RdpChoice (p1, p2);\r
c.setInternTable (this.patternPool);\r
\r
public RdpPattern MakeGroup (RdpPattern p1, RdpPattern p2)\r
{\r
- Hashtable p1Table = setupTable (RelaxngPatternType.Group, p1);\r
+ Hashtable p1Table = setupTable (typeof (RdpGroup), p1);\r
if (p1Table [p2] == null) {\r
RdpGroup g = new RdpGroup (p1, p2);\r
g.setInternTable (this.patternPool);\r
\r
public RdpInterleave MakeInterleave (RdpPattern p1, RdpPattern p2)\r
{\r
- Hashtable p1Table = setupTable (RelaxngPatternType.Interleave, p1);\r
+ Hashtable p1Table = setupTable (typeof (RdpInterleave), p1);\r
if (p1Table [p2] == null) {\r
RdpInterleave i = new RdpInterleave (p1, p2);\r
i.setInternTable (this.patternPool);\r
\r
public RdpAfter MakeAfter (RdpPattern p1, RdpPattern p2)\r
{\r
- Hashtable p1Table = setupTable (RelaxngPatternType.After, p1);\r
+ Hashtable p1Table = setupTable (typeof (RdpAfter), p1);\r
if (p1Table [p2] == null) {\r
RdpAfter a = new RdpAfter (p1, p2);\r
a.setInternTable (this.patternPool);\r
RdpAbstractBinary binary =\r
this as RdpAbstractBinary;\r
if (binary != null) {\r
- Hashtable lTable = setupTable (PatternType, binary.LValue);\r
+ Hashtable lTable = setupTable (GetType (), binary.LValue);\r
if (lTable [binary.RValue] == null) {\r
lTable [binary.RValue] = this;\r
binary.LValue.setInternTable (ht);\r