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.
// 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 "media-col" collection as defined in:
* [IPPLABEL](https://ftp.pwg.org/pub/pwg/ipp/registrations/reg-ipplabel10-20200213.pdf),
* [PWG5100.7](https://ftp.pwg.org/pub/pwg/candidates/cs-ippjobext21-20230210-5100.7.pdf).
*/
@Suppress("RedundantCompanionReference", "unused")
data class MediaCol
constructor(
/** May contain any keyword from [MediaBackCoating] or a name. */
var mediaBackCoating: KeywordOrName? = null,
var mediaBottomMargin: Int? = null,
/** May contain any keyword from [MediaColor] or a name. */
var mediaColor: KeywordOrName? = null,
/** May contain any keyword from [MediaBackCoating] or a name. */
var mediaFrontCoating: KeywordOrName? = null,
/** May contain any keyword from [MediaGrain] or a name. */
var mediaGrain: KeywordOrName? = null,
var mediaHoleCount: Int? = null,
var mediaInfo: String? = null,
/** May contain any keyword from [Media] or a name. */
var mediaKey: KeywordOrName? = null,
var mediaLeftMargin: Int? = null,
var mediaOrderCount: Int? = null,
/** May contain any keyword from [MediaPrePrinted] or a name. */
var mediaPrePrinted: KeywordOrName? = null,
/** May contain any keyword from [MediaRecycled] or a name. */
var mediaRecycled: KeywordOrName? = null,
var mediaRightMargin: Int? = null,
var mediaSize: MediaSize? = null,
/** May contain any keyword from [Media] or a name. */
var mediaSizeName: KeywordOrName? = null,
/** May contain any keyword from [MediaSource] or a name. */
var mediaSource: KeywordOrName? = null,
var mediaThickness: Int? = null,
/** May contain any keyword from [MediaTooth] or a name. */
var mediaTooth: KeywordOrName? = null,
var mediaTopMargin: Int? = null,
var mediaTopOffset: Int? = null,
/** May contain any keyword from [MediaTracking]. */
var mediaTracking: String? = null,
/** May contain any keyword from [MediaType] or a name. */
var mediaType: KeywordOrName? = null,
var mediaWeightMetric: Int? = null,
) : AttributeCollection {
/** Construct an empty [MediaCol]. */
constructor() : this(null)
/** Produce an attribute list from members. */
override val attributes: List>
get() = listOfNotNull(
mediaBackCoating?.let { MediaCol.mediaBackCoating.of(it) },
mediaBottomMargin?.let { MediaCol.mediaBottomMargin.of(it) },
mediaColor?.let { MediaCol.mediaColor.of(it) },
mediaFrontCoating?.let { MediaCol.mediaFrontCoating.of(it) },
mediaGrain?.let { MediaCol.mediaGrain.of(it) },
mediaHoleCount?.let { MediaCol.mediaHoleCount.of(it) },
mediaInfo?.let { MediaCol.mediaInfo.of(it) },
mediaKey?.let { MediaCol.mediaKey.of(it) },
mediaLeftMargin?.let { MediaCol.mediaLeftMargin.of(it) },
mediaOrderCount?.let { MediaCol.mediaOrderCount.of(it) },
mediaPrePrinted?.let { MediaCol.mediaPrePrinted.of(it) },
mediaRecycled?.let { MediaCol.mediaRecycled.of(it) },
mediaRightMargin?.let { MediaCol.mediaRightMargin.of(it) },
mediaSize?.let { MediaCol.mediaSize.of(it) },
mediaSizeName?.let { MediaCol.mediaSizeName.of(it) },
mediaSource?.let { MediaCol.mediaSource.of(it) },
mediaThickness?.let { MediaCol.mediaThickness.of(it) },
mediaTooth?.let { MediaCol.mediaTooth.of(it) },
mediaTopMargin?.let { MediaCol.mediaTopMargin.of(it) },
mediaTopOffset?.let { MediaCol.mediaTopOffset.of(it) },
mediaTracking?.let { MediaCol.mediaTracking.of(it) },
mediaType?.let { MediaCol.mediaType.of(it) },
mediaWeightMetric?.let { MediaCol.mediaWeightMetric.of(it) },
)
/** Defines types for each member of [MediaCol]. */
companion object : AttributeCollection.Converter {
override fun convert(attributes: List>): MediaCol =
MediaCol(
extractOne(attributes, mediaBackCoating),
extractOne(attributes, mediaBottomMargin),
extractOne(attributes, mediaColor),
extractOne(attributes, mediaFrontCoating),
extractOne(attributes, mediaGrain),
extractOne(attributes, mediaHoleCount),
extractOne(attributes, mediaInfo)?.value,
extractOne(attributes, mediaKey),
extractOne(attributes, mediaLeftMargin),
extractOne(attributes, mediaOrderCount),
extractOne(attributes, mediaPrePrinted),
extractOne(attributes, mediaRecycled),
extractOne(attributes, mediaRightMargin),
extractOne(attributes, mediaSize),
extractOne(attributes, mediaSizeName),
extractOne(attributes, mediaSource),
extractOne(attributes, mediaThickness),
extractOne(attributes, mediaTooth),
extractOne(attributes, mediaTopMargin),
extractOne(attributes, mediaTopOffset),
extractOne(attributes, mediaTracking),
extractOne(attributes, mediaType),
extractOne(attributes, mediaWeightMetric),
)
override val cls = MediaCol::class.java
@Deprecated("Remove this symbol")
@JvmField val Types = this
@JvmField val mediaBackCoating = KeywordOrNameType("media-back-coating")
@JvmField val mediaBottomMargin = IntType("media-bottom-margin")
@JvmField val mediaColor = KeywordOrNameType("media-color")
@JvmField val mediaFrontCoating = KeywordOrNameType("media-front-coating")
@JvmField val mediaGrain = KeywordOrNameType("media-grain")
@JvmField val mediaHoleCount = IntType("media-hole-count")
@JvmField val mediaInfo = TextType("media-info")
@JvmField val mediaKey = KeywordOrNameType("media-key")
@JvmField val mediaLeftMargin = IntType("media-left-margin")
@JvmField val mediaOrderCount = IntType("media-order-count")
@JvmField val mediaPrePrinted = KeywordOrNameType("media-pre-printed")
@JvmField val mediaRecycled = KeywordOrNameType("media-recycled")
@JvmField val mediaRightMargin = IntType("media-right-margin")
@JvmField val mediaSize = AttributeCollection.Type("media-size", MediaSize)
@JvmField val mediaSizeName = KeywordOrNameType("media-size-name")
@JvmField val mediaSource = KeywordOrNameType("media-source")
@JvmField val mediaThickness = IntType("media-thickness")
@JvmField val mediaTooth = KeywordOrNameType("media-tooth")
@JvmField val mediaTopMargin = IntType("media-top-margin")
@JvmField val mediaTopOffset = IntType("media-top-offset")
@JvmField val mediaTracking = KeywordType("media-tracking")
@JvmField val mediaType = KeywordOrNameType("media-type")
@JvmField val mediaWeightMetric = IntType("media-weight-metric")
}
/**
* Data object corresponding to a "media-size" collection.
*/
@Suppress("RedundantCompanionReference", "unused")
data class MediaSize
constructor(
var xDimension: Int? = null,
var yDimension: Int? = null,
) : AttributeCollection {
/** Construct an empty [MediaSize]. */
constructor() : this(null)
/** Produce an attribute list from members. */
override val attributes: List>
get() = listOfNotNull(
xDimension?.let { MediaSize.xDimension.of(it) },
yDimension?.let { MediaSize.yDimension.of(it) },
)
/** Defines types for each member of [MediaSize]. */
companion object : AttributeCollection.Converter {
override fun convert(attributes: List>): MediaSize =
MediaSize(
extractOne(attributes, xDimension),
extractOne(attributes, yDimension),
)
override val cls = MediaSize::class.java
@Deprecated("Remove this symbol")
@JvmField val Types = this
@JvmField val xDimension = IntType("x-dimension")
@JvmField val yDimension = IntType("y-dimension")
}
override fun toString() = "MediaSize(${attributes.joinToString()})"
}
override fun toString() = "MediaCol(${attributes.joinToString()})"
}