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

com.hp.jipp.encoding.EmptyAttribute.kt Maven / Gradle / Ivy

// Copyright 2017 HP Development Company, L.P.
// SPDX-License-Identifier: MIT

package com.hp.jipp.encoding

/** An attribute consisting only of an out-of-band tag and no values. */
class EmptyAttribute(name: String, tag: Tag) : BaseAttribute(name, emptyType, tag) {
    companion object {
        val emptyType: AttributeType = object : AttributeType {
            override fun coerce(value: Any): Nothing? = null
            override val name: String
                get() = "empty"
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy