mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* XmlSchema: Started work on Validate methods svn path=/trunk/mcs/; revision=5587
75 lines
1.9 KiB
C#
Executable File
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);
|
|
}
|
|
}
|
|
} |