Files
mono/mcs/class/System.XML/System.Xml.Schema/XmlSchemaObject.cs
T
Ajay kumar Dwivedi ed0070bf88 2002-06-18 Dwivedi, Ajay kumar <[email protected]>
* XmlSchema: Started work on Validate methods

svn path=/trunk/mcs/; revision=5587
2002-07-04 17:40:38 +00:00

75 lines
1.9 KiB
C#
Executable File

// Author: Dwivedi, Ajay kumar
// [email protected]
using System;
using System.Collections;
using System.Xml.Serialization;
using System.Xml;
namespace System.Xml.Schema
{
/// <summary>
/// Summary description for XmlSchemaObject.
/// </summary>
public abstract class XmlSchemaObject
{
private int lineNumber;
private int linePosition;
private string sourceUri;
private XmlSerializerNamespaces namespaces;
internal ArrayList unhandledAttributeList ;
internal bool isCompiled = false;
internal int errorCount = 0;
protected XmlSchemaObject()
{
namespaces = new XmlSerializerNamespaces();
unhandledAttributeList = null;
}
[XmlIgnore]
public int LineNumber
{
get{ return lineNumber; }
set{ lineNumber = value; }
}
[XmlIgnore]
public int LinePosition
{
get{ return linePosition; }
set{ linePosition = value; }
}
[XmlIgnore]
public string SourceUri
{
get{ return sourceUri; }
set{ sourceUri = value; }
}
// Undocumented Property
[XmlNamespaceDeclarations]
public XmlSerializerNamespaces Namespaces
{
get{ return namespaces; }
set{ namespaces = value; }
}
internal void error(ValidationEventHandler handle,string message)
{
errorCount++;
ValidationHandler.RaiseValidationError(handle,this,message);
}
internal void warn(ValidationEventHandler handle,string message)
{
errorCount++;
ValidationHandler.RaiseValidationWarning(handle,this,message);
}
internal static void error(ValidationEventHandler handle, string message, Exception innerException)
{
ValidationHandler.RaiseValidationError(handle,message, innerException);
}
internal static void warn(ValidationEventHandler handle, string message, Exception innerException)
{
ValidationHandler.RaiseValidationWarning(handle,message, innerException);
}
}
}