Validator Class
Validates the semantics of Oxbind attributes on classes and constructor parameters.
public sealed class Validator
- Inheritance
-
Validator
Constructors
Validator(Type, Journal, QName |
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
|
Element |
Gets the XML element name from the ForElementAttribute annotation on the class. |
Is |
Gets a value indicating whether this validator has detected errors. |
Attribute |
Gets the collection of the constructor parameters attributed with ForAttributeAttribute. |
Child |
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.
public Validator(Type clazz, Journal journal, QNameBank nameBank)
Parameters
- clazz
- Type
The type of the class attributed with ForElementAttribute.
Properties Detail
Logger
Gets the Journal instance.
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.
public ConstructorInfo Constructor { get; }
Property Value
ElementName
Gets the XML element name from the ForElementAttribute annotation on the class.
public XmlQualifiedName ElementName { get; }
Property Value
IsValid
Gets a value indicating whether this validator has detected errors.
public bool IsValid { get; }
Property Value
AttributeParameters
Gets the collection of the constructor parameters attributed with ForAttributeAttribute.
public IEnumerable<AttributeParameter> AttributeParameters { get; }
Property Value
ChildDependency
Gets the Dependency object representing the child element dependencies of the validated class.
public Dependency ChildDependency { get; }