com.hp.jipp.model.PdlInitFile.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 "pdl-init-file" collection as defined in:
* [PWG5100.11](https://ftp.pwg.org/pub/pwg/candidates/cs-ippjobprinterext10-20101030-5100.11.pdf).
*/
@Suppress("RedundantCompanionReference", "unused")
data class PdlInitFile
constructor(
var pdlInitFileEntry: String? = null,
var pdlInitFileLocation: java.net.URI? = null,
var pdlInitFileName: String? = null,
) : AttributeCollection {
/** Construct an empty [PdlInitFile]. */
constructor() : this(null)
/** Produce an attribute list from members. */
override val attributes: List>
get() = listOfNotNull(
pdlInitFileEntry?.let { PdlInitFile.pdlInitFileEntry.of(it) },
pdlInitFileLocation?.let { PdlInitFile.pdlInitFileLocation.of(it) },
pdlInitFileName?.let { PdlInitFile.pdlInitFileName.of(it) },
)
/** Defines types for each member of [PdlInitFile]. */
companion object : AttributeCollection.Converter {
override fun convert(attributes: List>): PdlInitFile =
PdlInitFile(
extractOne(attributes, pdlInitFileEntry)?.value,
extractOne(attributes, pdlInitFileLocation),
extractOne(attributes, pdlInitFileName)?.value,
)
override val cls = PdlInitFile::class.java
@Deprecated("Remove this symbol")
@JvmField val Types = this
@JvmField val pdlInitFileEntry = NameType("pdl-init-file-entry")
@JvmField val pdlInitFileLocation = UriType("pdl-init-file-location")
@JvmField val pdlInitFileName = NameType("pdl-init-file-name")
}
override fun toString() = "PdlInitFile(${attributes.joinToString()})"
}