Property Validation Framework
AssigneeMicrosoft Corporation
InventorsTaleb Tewfik Zeghmi, Ronald R. Martinsen
Life of this patent
Estimating the term…
Abstract
Aspects of the subject matter described herein relate to validating properties. In aspects, a property is associated with one or more validators. Each validator includes actions to take to determine whether a feature of the property is valid. Multiple validators may be executed for a single property. A group of validators may be identified by an identifier. In addition, properties may be grouped into collections which may be grouped into other collections and so on. Each collection may also be associated with one or more validators to validate properties within the collections.
Claims20
A computer-readable medium having computer-executable instructions, which when executed perform actions, comprising:
- creating a property object that includes or is associated with memory for storing a property value and that also includes or is associated with a method for validating the property value;
- associating the property object with a validator that operates to validate a feature of the property value, the validator being identified to the property object by an identifier, the validator including actions to take to determine whether the feature of the property value is valid, the method for validating the property value calling the validator at least when the method for validating the property value is passed the identifier;
- and
- validating the feature of the property value via the validator.
A method implemented at least in part by a computer, the method comprising:
- creating an association between a property and a validator, the validator being associated with an identifier;
- storing the association in memory;
- receiving a request to validate the property;
- and
- accessing the validator in response to the request.
In a computing environment, an apparatus, comprising:
- a validator adder operable to associate a validator with a property or collection of properties or collections;
- a validator storage/retrieval operable to store and retrieve validators from a memory;
- a validation engine operable to receive a request to validate a property or collection and to execute one or more validators in response thereto;
- and
- an errors reporter operable to indicate errors associated with validating a property or collection and further operable to provide the errors in response to a request therefor;
Dependencies are inferred from the claim text.