jipp
jipp copied to clipboard
Support extensible AttributeCollection objects
At present certain collection objects may contain any number of other attributes.
For example, PWG5100.13 defines job-resolvers-supported
and job-constraints-supported
whose values are collections having a single defined resolver-name
but may contain any number of other attributes. (Are there other collections like this?)
JIPP tries to type everything, and so doesn't by default support the inclusion of unknown attributes in a collection. So there's no way in JIPP to properly construct or access this kind of collection.
Are there other collections like this?
The overrides collection (PWG5100.6) can contain:
- pages (1setOf rangeOfInteger(1:MAX))
- document-numbers (1setOf rangeOfInteger (1:MAX))
- document-copies (1setOf rangeOfInteger (1:MAX))
- any job-template attribute of scope Pages, Cell, Impression, or Sheet (PWG5100.6 §4.1.4)
Hint: IppCollection implemented in ipp-client-kotlin does not have this limitation and can take/read/write any attribute type as member (also collections).
Are there other collections like this?
The overrides collection (PWG5100.6) can contain:
- pages (1setOf rangeOfInteger(1:MAX))
- document-numbers (1setOf rangeOfInteger (1:MAX))
- document-copies (1setOf rangeOfInteger (1:MAX))
- any job-template attribute of scope Pages, Cell, Impression, or Sheet (PWG5100.6 §4.1.4)
How to add the 'any' job-template attributes to the overrides collection? I can set only pages, document-numbers and document-copies with jipp? Could you please provide a sample?