You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2008/04/08 15:47:21 UTC

DO NOT REPLY [Bug 44619] Generic validation for positive integers

https://issues.apache.org/bugzilla/show_bug.cgi?id=44619





--- Comment #2 from Simon Pepping <sp...@apache.org>  2008-04-08 06:47:20 PST ---
Created an attachment (id=21794)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=21794)
A patch for the problem

This patch does as suggested: It introduces a
NumberProperty.PositiveIntegerMaker, which inherits from NumberProperty.Maker.
Its make method checks whether a numeric value can be extracted, and if so,
rounds it to an integer, and replaces values <= 0 with 1. I made this the maker
of number-columns-repeated, and made ColumnNumberPropertyMaker inherit from it.
It should become the maker of more properties, to be done later.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.