2 // System.Web.Services.Description.MimeTextMatch.cs
\r
5 // Tim Coleman (tim@timcoleman.com)
\r
7 // Copyright (C) Tim Coleman, 2002
\r
10 namespace System.Web.Services.Description {
\r
11 public sealed class MimeTextMatch : ServiceDescriptionFormatExtension {
\r
18 MimeTextMatchCollection matches;
\r
24 #endregion // Fields
\r
26 #region Constructors
\r
28 public MimeTextMatch ()
\r
34 name = String.Empty;
\r
35 pattern = String.Empty;
\r
37 type = String.Empty;
\r
40 #endregion // Constructors
\r
44 public int Capture {
\r
45 get { return capture; }
\r
48 throw new ArgumentException ();
\r
54 get { return group; }
\r
57 throw new ArgumentException ();
\r
62 public bool IgnoreCase {
\r
63 get { return ignoreCase; }
\r
64 set { ignoreCase = value; }
\r
67 public MimeTextMatchCollection Matches {
\r
68 get { return matches; }
\r
71 public string Name {
\r
72 get { return name; }
\r
73 set { name = value; }
\r
76 public string Pattern {
\r
77 get { return pattern; }
\r
78 set { pattern = value; }
\r
81 public int Repeats {
\r
82 get { return repeats; }
\r
85 throw new ArgumentException ();
\r
90 public string RepeatsString {
\r
91 get { return Repeats.ToString (); }
\r
92 set { Repeats = Int32.Parse (value); }
\r
95 public string Type {
\r
96 get { return type; }
\r
97 set { type = value; }
\r
100 #endregion // Properties
\r
104 internal void SetParent (MimeTextMatchCollection matches)
\r
106 this.matches = matches;
\r
109 #endregion // Methods
\r