All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hp.jipp.model.JobImpressionsCol.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-impressions-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 JobImpressionsCol
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 [JobImpressionsCol]. */
    constructor() : this(null)

    /** Produce an attribute list from members. */
    override val attributes: List>
        get() = listOfNotNull(
            blank?.let { JobImpressionsCol.blank.of(it) },
            blankTwoSided?.let { JobImpressionsCol.blankTwoSided.of(it) },
            fullColor?.let { JobImpressionsCol.fullColor.of(it) },
            fullColorTwoSided?.let { JobImpressionsCol.fullColorTwoSided.of(it) },
            highlightColor?.let { JobImpressionsCol.highlightColor.of(it) },
            highlightColorTwoSided?.let { JobImpressionsCol.highlightColorTwoSided.of(it) },
            monochrome?.let { JobImpressionsCol.monochrome.of(it) },
            monochromeTwoSided?.let { JobImpressionsCol.monochromeTwoSided.of(it) },
        )

    /** Defines types for each member of [JobImpressionsCol]. */
    companion object : AttributeCollection.Converter {
        override fun convert(attributes: List>): JobImpressionsCol =
            JobImpressionsCol(
                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 = JobImpressionsCol::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() = "JobImpressionsCol(${attributes.joinToString()})"
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy