Validator Class
Validates the semantics of the Oxbind annotations.
public sealed class Validator : AbstractValidator
- Inheritance
Constructors
Validator(Type) |
Initializes a new instance of the Validator class. |
Properties
Schema |
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 Abstract |
Methods
Get |
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 Abstract |
Warn(string, object[]) |
Logs a warning message. (Inherited from Abstract |
Error(string, object[]) |
Logs an error message and marks this validator to indicate that it has detected errors. (Inherited from Abstract |
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.
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.
public IEnumerable<Type> SchemaClasses { get; }
Property Value
Methods Detail
GetDependencies(Type)
Returns the new set of types that the specified class depends on.
public static ISet<Type> GetDependencies(Type clazz)
Parameters
- clazz
- Type
The type of the class.