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

com.hp.jipp.model.ImpressionsCol.kt Maven / Gradle / Ivy

// Copyright 2018 - 2024 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 2024-06-13
@file:Suppress("MaxLineLength", "WildcardImport")

package com.hp.jipp.model

import com.hp.jipp.encoding.* // ktlint-disable no-wildcard-imports

/**
 * Data object corresponding to a "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 ImpressionsCol
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 [ImpressionsCol]. */
    constructor() : this(null)

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy