Validator Class

Validates the semantics of the Oxbind annotations.

C#
public sealed class Validator : AbstractValidator
Inheritance

Constructors

Validator(Type)

Initializes a new instance of the Validator class.

Properties

SchemaClasses

Gets the collection of the class that the Schema object of the validated class contains.

IsValid

Gets a value indicating whether this validator has detected errors.

(Inherited from AbstractValidator)

Methods

GetDependencies(Type)

Returns the new set of types that the specified class depends on.

GetMessages()

Get a new log messages representing the warnings/errors that this validator has detected.

(Inherited from AbstractValidator)
Warn(string, object[])

Logs a warning message.

(Inherited from AbstractValidator)
Error(string, object[])

Logs an error message and marks this validator to indicate that it has detected errors.

(Inherited from AbstractValidator)
Equals(object) (Inherited from object)
GetHashCode() (Inherited from object)
GetType() (Inherited from object)
MemberwiseClone() (Inherited from object)
ToString() (Inherited from object)

Constructors Detail

Validator(Type)

Initializes a new instance of the Validator class.

C#
public Validator(Type clazz)

Parameters

clazz
Type

The class annotated with ForElementAttribute.

Properties Detail

SchemaClasses

Gets the collection of the class that the Schema object of the validated class contains.

C#
public IEnumerable<Type> SchemaClasses { get; }

Property Value

Methods Detail

GetDependencies(Type)

Returns the new set of types that the specified class depends on.

C#
public static ISet<Type> GetDependencies(Type clazz)

Parameters

clazz
Type

The type of the class.

Returns

The new set of types that clazz depends on.