C# Class Opc.Ua.Schema.SchemaValidator

A base class for schema validators.
ファイルを表示 Open project: OPCFoundation/Misc-Tools

Public Methods

Method Description
GetSchema ( string typeName ) : string

Returns the schema for the specified type (returns the entire schema if null).

SchemaValidator ( ) : System

Intializes the object with default values.

SchemaValidator ( string>.Dictionary knownFiles ) : System

Intializes the object with a file table.

Protected Methods

Method Description
Exception ( string format ) : Exception

Formats a string and throws an exception.

Exception ( string format, object arg1 ) : Exception

Formats a string and throws an exception.

Exception ( string format, object arg1, object arg2 ) : Exception

Formats a string and throws an exception.

Exception ( string format, object arg1, object arg2, object arg3 ) : Exception

Formats a string and throws an exception.

IsNull ( XmlQualifiedName name ) : bool

Returns true if the QName is null,

Load ( System type, string namespaceUri, string path ) : object

Loads the dictionary from a file.

LoadFile ( System type, Stream stream ) : object

Loads a schema from a file.

LoadFile ( System type, string path ) : object

Loads a schema from a file.

LoadInput ( System type, Stream stream ) : object

Loads an input file for validation.

LoadInput ( System type, string path ) : object

Loads an input file for validation.

LoadResource ( System type, string path, Assembly assembly ) : object

Loads a schema from an embedded resource.

SetResourcePaths ( string resources ) : void

Adds the embedded resources to the file table.

Method Details

Exception() protected static method

Formats a string and throws an exception.
protected static Exception ( string format ) : Exception
format string
return System.Exception

Exception() protected static method

Formats a string and throws an exception.
protected static Exception ( string format, object arg1 ) : Exception
format string
arg1 object
return System.Exception

Exception() protected static method

Formats a string and throws an exception.
protected static Exception ( string format, object arg1, object arg2 ) : Exception
format string
arg1 object
arg2 object
return System.Exception

Exception() protected static method

Formats a string and throws an exception.
protected static Exception ( string format, object arg1, object arg2, object arg3 ) : Exception
format string
arg1 object
arg2 object
arg3 object
return System.Exception

GetSchema() public method

Returns the schema for the specified type (returns the entire schema if null).
public GetSchema ( string typeName ) : string
typeName string
return string

IsNull() protected static method

Returns true if the QName is null,
protected static IsNull ( XmlQualifiedName name ) : bool
name System.Xml.XmlQualifiedName
return bool

Load() protected method

Loads the dictionary from a file.
protected Load ( System type, string namespaceUri, string path ) : object
type System
namespaceUri string
path string
return object

LoadFile() protected static method

Loads a schema from a file.
protected static LoadFile ( System type, Stream stream ) : object
type System
stream Stream
return object

LoadFile() protected static method

Loads a schema from a file.
protected static LoadFile ( System type, string path ) : object
type System
path string
return object

LoadInput() protected method

Loads an input file for validation.
protected LoadInput ( System type, Stream stream ) : object
type System
stream Stream
return object

LoadInput() protected method

Loads an input file for validation.
protected LoadInput ( System type, string path ) : object
type System
path string
return object

LoadResource() protected static method

Loads a schema from an embedded resource.
protected static LoadResource ( System type, string path, Assembly assembly ) : object
type System
path string
assembly System.Reflection.Assembly
return object

SchemaValidator() public method

Intializes the object with default values.
public SchemaValidator ( ) : System
return System

SchemaValidator() public method

Intializes the object with a file table.
public SchemaValidator ( string>.Dictionary knownFiles ) : System
knownFiles string>.Dictionary
return System

SetResourcePaths() protected method

Adds the embedded resources to the file table.
protected SetResourcePaths ( string resources ) : void
resources string
return void