jipp icon indicating copy to clipboard operation
jipp copied to clipboard

Support extensible AttributeCollection objects

Open GladeDiviney opened this issue 4 years ago • 3 comments

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.

GladeDiviney avatar Aug 27 '20 01:08 GladeDiviney

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)

phipla avatar Sep 21 '21 12:09 phipla

Hint: IppCollection implemented in ipp-client-kotlin does not have this limitation and can take/read/write any attribute type as member (also collections).

gmuth avatar May 13 '22 22:05 gmuth

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?

akrieg avatar May 24 '22 15:05 akrieg