Initial commit
[mono.git] / mcs / class / referencesource / System.Xml / System / Xml / XmlNameTable.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="XmlNameTable.cs" company="Microsoft">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 // <owner current="true" primary="true">[....]</owner>
6 //------------------------------------------------------------------------------
7
8 namespace System.Xml {
9
10     /// <include file='doc\XmlNameTable.uex' path='docs/doc[@for="XmlNameTable"]/*' />
11     /// <devdoc>
12     ///    <para> Table of atomized string objects. This provides an
13     ///       efficient means for the XML parser to use the same string object for all
14     ///       repeated element and attribute names in an XML document. This class is
15     ///    <see langword='abstract'/>
16     ///    .</para>
17     /// </devdoc>
18     public abstract class XmlNameTable {
19         /// <include file='doc\XmlNameTable.uex' path='docs/doc[@for="XmlNameTable.Get"]/*' />
20         /// <devdoc>
21         ///    <para>Gets the atomized String object containing the same
22         ///       chars as the specified range of chars in the given char array.</para>
23         /// </devdoc>
24         public abstract String Get(char[] array, int offset, int length);
25
26         /// <include file='doc\XmlNameTable.uex' path='docs/doc[@for="XmlNameTable.Get1"]/*' />
27         /// <devdoc>
28         ///    <para>
29         ///       Gets the atomized String object containing the same
30         ///       value as the specified string.
31         ///    </para>
32         /// </devdoc>
33         public abstract String Get(String array);
34
35         /// <include file='doc\XmlNameTable.uex' path='docs/doc[@for="XmlNameTable.Add"]/*' />
36         /// <devdoc>
37         ///    <para>Creates a new atom for the characters at the specified range
38         ///       of chararacters in the specified string.</para>
39         /// </devdoc>
40         public abstract String Add(char[] array, int offset, int length);
41
42         /// <include file='doc\XmlNameTable.uex' path='docs/doc[@for="XmlNameTable.Add1"]/*' />
43         /// <devdoc>
44         ///    <para>
45         ///       Creates a new atom for the specified string.
46         ///    </para>
47         /// </devdoc>
48         public abstract String Add(String array);
49     }
50 }