Claims
- 1. A method for constraint validation in a computer system, the method comprising:
receiving a request to update an option for a device from a first option to a second option, wherein the first option corresponds to a first control value stored in the computer system, and wherein the second option corresponds to a second control value stored in the computer system; accessing a constraint file, wherein the constraint file stores a list of permissible control values; and determining if the second control value is in the list of permissible control values.
- 2. The method of claim 1, further comprising:
determining that the second control value is in the list of permissible control values; and updating the option from the first option to the second option.
- 3. The method of claim 2, wherein a control value for the option is stored in a configuration file, and wherein updating the option from the first option to the second option comprises:
updating the control value in the configuration file from the first control value to the second control value.
- 4. The method of claim 1, further comprising:
determining that the second control value is not in the list of permissible control values; and returning an error message indicating that the option was not updated to the second option.
- 5. The method of claim 1, wherein the device is a printer.
- 6. The method of claim 5, wherein the option is a paper body size.
- 7. The method of claim 5, wherein the option is a printing mode.
- 8. The method of claim 1, wherein the device is a finishing device.
- 9. A method for a printer driver to validate printer option selections in a printing system, the method comprising:
receiving a request to change a control from a first control value to a second control value, wherein the first control value corresponds to a first option for a printer, and wherein the second control value corresponds to a second option for the printer; accessing at least one constraint file, wherein the at least one constraint file stores a list of allowable values for the second control value; and determining if the second control value is in the list of allowable values.
- 10. The method of claim 9, further comprising:
determining that the second control value is in the list of allowable values; accessing a configuration file, wherein the configuration file stores values for a plurality of controls for the printer, and wherein the control is one of the plurality of controls; and updating the control in the configuration file from the first control value to the second control value.
- 11. The method of claim 9, wherein the control includes at least one dependent control, the method further comprising:
validating the at least one dependent control against the second control value.
- 12. The method of claim 11, further comprising:
determining that the at least one dependent control is not valid with the second control value; and returning an error message indicating that the control was not changed.
- 13. The method of claim 11, wherein the control and the at least one dependent control are represented by a hierarchical control structure, and wherein validating the at least one dependent control further comprises:
using a validation algorithm to parse the hierarchical control structure.
- 14. The method of claim 11, wherein the at least one dependent control includes a plurality of dependent controls.
- 15. The method of claim 9, wherein receiving a request includes:
displaying a graphical user interface, wherein the graphical user interface includes at least one feature, and wherein the at least one features displays a plurality of printer option selections; and receiving an indication of one of the plurality of printer option selections displayed by the at least one feature.
- 16. The method of claim 9, wherein the feature is one of a check box, a pop-up menu item or a list item.
- 17. The method of claim 9, wherein the at least one constraint file is a plurality of constraint files.
- 18. The method of claim 9, wherein the option is a paper size.
- 19. The method of claim 9, wherein the option is a finishing device option.
RELATED APPLICATION
[0001] This application claims priority from U.S. Provisional Patent Application No. 60/324,714, titled “Data Driven Constraint Validation Model for a Printer Driver,” and filed Sep. 25, 2001.
Provisional Applications (1)
|
Number |
Date |
Country |
|
60324714 |
Sep 2001 |
US |