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





--- Comment #1 from Andreas L. Delmelle <[EMAIL PROTECTED]>  2008-03-23 
02:13:29 PST ---
(In reply to comment #0)
> Many properties like column-count and number-columns-repeated are defined as
> positive integers and: "If a non-positive or non-integer value is provided, 
> the
> value will be rounded to the nearest integer value greater than or equal to 
> 1."
> 
> It would be good to have a possibility to declare that in FOPropertyMapping
> instead of having to write validation code for each such property. ATM,
> floating point values are often not rounded and not normalized following the
> above rule.

FWIW: I've been thinking about this too at some point.

My proposal would lie in the creation of a PropertyMaker subtype:
PositiveIntegerMaker (?)

The related properties can then be tied to this Maker in FOPropertyMapping. 
The make(PropertyList, String, FObj) implementation, which parses the specified
attribute value, can be made to force this rounding (see also
TableFObj.ColumnNumberPropertyMaker for a prototype).


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

Reply via email to