Validator Class

Validates the semantics of Oxbind attributes on classes and constructor parameters.

C#
public sealed class Validator
Inheritance
Validator

Constructors

Validator(Type, Journal, QNameBank)

Initializes a new instance of the Validator class.

Properties

Logger

Gets the Journal instance.

Constructor

Gets the ConstructorInfo for the constructor of the validated class that has been determined to be used for binding, or null if no suitable constructor is found.

ElementName

Gets the XML element name from the ForElementAttribute annotation on the class.

IsValid

Gets a value indicating whether this validator has detected errors.

AttributeParameters

Gets the collection of the constructor parameters attributed with ForAttributeAttribute.

ChildDependency

Gets the Dependency object representing the child element dependencies of the validated class.

Methods

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, Journal, QNameBank)

Initializes a new instance of the Validator class.

C#
public Validator(Type clazz, Journal journal, QNameBank nameBank)

Parameters

clazz
Type

The type of the class attributed with ForElementAttribute.

journal
Journal

The Journal instance.

nameBank
QNameBank

The QNameBank instance used to intern XML qualified names.

Properties Detail

Logger

Gets the Journal instance.

C#
public Journal Logger { get; }

Property Value

Constructor

Gets the ConstructorInfo for the constructor of the validated class that has been determined to be used for binding, or null if no suitable constructor is found.

C#
public ConstructorInfo Constructor { get; }

Property Value

ElementName

Gets the XML element name from the ForElementAttribute annotation on the class.

C#
public XmlQualifiedName ElementName { get; }

Property Value

IsValid

Gets a value indicating whether this validator has detected errors.

C#
public bool IsValid { get; }

Property Value

AttributeParameters

Gets the collection of the constructor parameters attributed with ForAttributeAttribute.

C#
public IEnumerable<AttributeParameter> AttributeParameters { get; }

Property Value

ChildDependency

Gets the Dependency object representing the child element dependencies of the validated class.

C#
public Dependency ChildDependency { get; }

Property Value