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

com.hp.jipp.model.PrinterVolumeSupported.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 "printer-volume-supported" collection as defined in:
 * [PWG5100.21](https://ftp.pwg.org/pub/pwg/candidates/cs-ipp3d11-20190329-5100.21.pdf).
 */
@Suppress("RedundantCompanionReference", "unused")
data class PrinterVolumeSupported
constructor(
    var xDimension: Int? = null,
    var yDimension: Int? = null,
    var zDimension: Int? = null,
) : AttributeCollection {

    /** Construct an empty [PrinterVolumeSupported]. */
    constructor() : this(null)

    /** Produce an attribute list from members. */
    override val attributes: List>
        get() = listOfNotNull(
            xDimension?.let { PrinterVolumeSupported.xDimension.of(it) },
            yDimension?.let { PrinterVolumeSupported.yDimension.of(it) },
            zDimension?.let { PrinterVolumeSupported.zDimension.of(it) },
        )

    /** Defines types for each member of [PrinterVolumeSupported]. */
    companion object : AttributeCollection.Converter {
        override fun convert(attributes: List>): PrinterVolumeSupported =
            PrinterVolumeSupported(
                extractOne(attributes, xDimension),
                extractOne(attributes, yDimension),
                extractOne(attributes, zDimension),
            )
        override val cls = PrinterVolumeSupported::class.java
        @Deprecated("Remove this symbol")
        @JvmField val Types = this
        @JvmField val xDimension = IntType("x-dimension")
        @JvmField val yDimension = IntType("y-dimension")
        @JvmField val zDimension = IntType("z-dimension")
    }
    override fun toString() = "PrinterVolumeSupported(${attributes.joinToString()})"
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy