Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support extensible AttributeCollection objects #101

Open
GladeDiviney opened this issue Aug 27, 2020 · 3 comments
Open

Support extensible AttributeCollection objects #101

GladeDiviney opened this issue Aug 27, 2020 · 3 comments
Labels
feature New feature or request

Comments

@GladeDiviney
Copy link
Collaborator

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 GladeDiviney added the feature New feature or request label Aug 27, 2020
@phipla
Copy link

phipla commented Sep 21, 2021

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)

@gmuth
Copy link

gmuth commented May 13, 2022

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

@akrieg
Copy link

akrieg commented May 24, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants