Message de Rony G. Flatscher date 2007-12-29 22:50 :
Jim White wrote:
Rony G. Flatscher wrote:
just curious: ran over the definition of
<com.sun.star.packages.zip.ZipConstants>, which lists constant values of
*different/varying* (!) types!
Is that an error or to be expected?
...
And if you look at the definition of the API, you'll see that your
reflection is exactly the types specified (after UNO->Java mapping):
http://api.openoffice.org/docs/common/ref/com/sun/star/packages/zip/ZipConstants.html
Being a bit unsure, the question still would be, whether it is really
intended that a constant group's values can be of different types
(because then the constant group may not consist of type compatible
values such that the programmer needs to know what constant values from
a constant group s/he is drawing and assigning to attributes/properties).
In other constant groups of the API, all the constants of a group are
used for the same purpose, setting a value in a particular property or
in a method argument.
Here we have constants of different purposes : compression level, header
signature, header size, header field offset. For each purpose you can
see that there is only one type.
The constants are grouped here only for one reason : "constants used by
the ZIP interfaces". It's a quick-and-dirty API description. They should
have been documented in separate groups.
Note also that the "Use" link of the IDL page has nothing to say: this
constants group is nowhere referenced.
At least in packages/zip/ZipEntry.html the element nMethod should refer
to packages.zip.ZipConstants group, but only for compression constants.
If the IDL description was correct there should be a reference to a
constants group dedicated to Zip compression level.
______
Bernard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]