Files
mono/mcs/class/System.XML/System.Xml.Schema/XmlSchemaObjectTable.cs
T
Duncan Mak e3d5655992 2002-04-26 Duncan Mak <[email protected]>
* ValidationHandler.cs: New file.

	* XmlSchemaInfo.cs: New file.

	* *.cs: More updates from Ajay.

svn path=/trunk/mcs/; revision=4075
2002-04-26 21:39:13 +00:00

52 lines
1001 B
C#
Executable File

// Author: Dwivedi, Ajay kumar
// [email protected]
using System;
using System.Collections;
using System.Xml;
namespace System.Xml.Schema
{
/// <summary>
/// Summary description for XmlSchemaObjectTable.
/// </summary>
public class XmlSchemaObjectTable
{
private Hashtable table;
internal XmlSchemaObjectTable()
{
table = new Hashtable();
}
public int Count
{
get{ return table.Count; }
}
public XmlSchemaObject this[XmlQualifiedName name]
{
get{ return (XmlSchemaObject) table[name]; }
}
public ICollection Names
{
get{ return table.Keys; }
}
public ICollection Values
{
get{ return table.Values;}
}
public bool Contains(XmlQualifiedName name)
{
return table.Contains(name);
}
public IDictionaryEnumerator GetEnumerator()
{
return table.GetEnumerator();
}
internal void Add(XmlQualifiedName name, XmlSchemaObject value)
{
table.Add(name,value);
}
}
}