ValidationKit Class
Validates the semantics of Oxbind attributes.
public sealed class ValidationKit
- Inheritance
-
Validation
Kit
Constructors
Validation |
Validates the semantics of Oxbind attributes. |
Methods
Check |
Checks the constructor parameters attributed with ForAttributeAttribute, ensuring there are no duplicate attribute names, that types are valid, and that ForAttributeAttribute is not combined with other mutually exclusive attributes. Logs errors for any violations found. |
Check |
Validates the constructor parameters that represent child elements. Performs several checks to ensure correct usage of Oxbind child-related attributes, such as [ForText], [Required], [Optional], and [Multiple]. Logs errors for invalid combinations or missing annotations. |
Equals(object) | (Inherited from object) |
GetHashCode() | (Inherited from object) |
GetType() | (Inherited from object) |
MemberwiseClone() | (Inherited from object) |
ToString() | (Inherited from object) |
Constructors Detail
ValidationKit(Journal, QNameBank)
Validates the semantics of Oxbind attributes.
public ValidationKit(Journal journal, QNameBank nameBank)
Parameters
Methods Detail
CheckAttributes(IReadOnlyList<AttributeParameter>)
Checks the constructor parameters attributed with ForAttributeAttribute, ensuring there are no duplicate attribute names, that types are valid, and that ForAttributeAttribute is not combined with other mutually exclusive attributes. Logs errors for any violations found.
public void CheckAttributes(IReadOnlyList<AttributeParameter> attributeParameterList)
Parameters
- attributeParameterList
-
IRead
Only <AttributeList Parameter >
The list of AttributeParameter objects representing constructor parameters attributed with ForAttributeAttribute.
CheckChildren(IReadOnlyList<ParameterInfo>)
Validates the constructor parameters that represent child elements. Performs several checks to ensure correct usage of Oxbind child-related attributes, such as [ForText], [Required], [Optional], and [Multiple]. Logs errors for invalid combinations or missing annotations.
public Dependency CheckChildren(IReadOnlyList<ParameterInfo> childParameterList)
Parameters
- childParameterList
-
IRead
Only <ParameterList Info >
The list of constructor parameters to validate as child elements.
Returns
The Dependency object representing the child element dependencies.