All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.hp.jipp.model.JobMediaSheetsCol.kt Maven / Gradle / Ivy
// Copyright 2018 HP Development Company, L.P.
// SPDX-License-Identifier: MIT
//
// DO NOT MODIFY. Code is auto-generated by genTypes.py. Content taken from registry at
// https://www.iana.org/assignments/ipp-registrations/ipp-registrations.xml, updated on 2023-03-07
@file:Suppress("MaxLineLength", "WildcardImport")
package com.hp.jipp.model
import com.hp.jipp.encoding.* // ktlint-disable no-wildcard-imports
/**
* Data object corresponding to a "job-media-sheets-col" collection as defined in:
* [PWG5100.7](https://ftp.pwg.org/pub/pwg/candidates/cs-ippjobext21-20230210-5100.7.pdf).
*/
@Suppress("RedundantCompanionReference", "unused")
data class JobMediaSheetsCol
constructor(
var blank: Int? = null,
var blankTwoSided: Int? = null,
var fullColor: Int? = null,
var fullColorTwoSided: Int? = null,
var highlightColor: Int? = null,
var highlightColorTwoSided: Int? = null,
var monochrome: Int? = null,
var monochromeTwoSided: Int? = null,
) : AttributeCollection {
/** Construct an empty [JobMediaSheetsCol]. */
constructor() : this(null)
/** Produce an attribute list from members. */
override val attributes: List>
get() = listOfNotNull(
blank?.let { JobMediaSheetsCol.blank.of(it) },
blankTwoSided?.let { JobMediaSheetsCol.blankTwoSided.of(it) },
fullColor?.let { JobMediaSheetsCol.fullColor.of(it) },
fullColorTwoSided?.let { JobMediaSheetsCol.fullColorTwoSided.of(it) },
highlightColor?.let { JobMediaSheetsCol.highlightColor.of(it) },
highlightColorTwoSided?.let { JobMediaSheetsCol.highlightColorTwoSided.of(it) },
monochrome?.let { JobMediaSheetsCol.monochrome.of(it) },
monochromeTwoSided?.let { JobMediaSheetsCol.monochromeTwoSided.of(it) },
)
/** Defines types for each member of [JobMediaSheetsCol]. */
companion object : AttributeCollection.Converter {
override fun convert(attributes: List>): JobMediaSheetsCol =
JobMediaSheetsCol(
extractOne(attributes, blank),
extractOne(attributes, blankTwoSided),
extractOne(attributes, fullColor),
extractOne(attributes, fullColorTwoSided),
extractOne(attributes, highlightColor),
extractOne(attributes, highlightColorTwoSided),
extractOne(attributes, monochrome),
extractOne(attributes, monochromeTwoSided),
)
override val cls = JobMediaSheetsCol::class.java
@Deprecated("Remove this symbol")
@JvmField val Types = this
@JvmField val blank = IntType("blank")
@JvmField val blankTwoSided = IntType("blank-two-sided")
@JvmField val fullColor = IntType("full-color")
@JvmField val fullColorTwoSided = IntType("full-color-two-sided")
@JvmField val highlightColor = IntType("highlight-color")
@JvmField val highlightColorTwoSided = IntType("highlight-color-two-sided")
@JvmField val monochrome = IntType("monochrome")
@JvmField val monochromeTwoSided = IntType("monochrome-two-sided")
}
override fun toString() = "JobMediaSheetsCol(${attributes.joinToString()})"
}