/* * Copyright (c) 2021 PANTHEON.tech, s.r.o. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.restconf.nb.rfc8040; import org.eclipse.jdt.annotation.NonNull; import org.opendaylight.yangtools.concepts.Immutable; /** * Interface implemented by all Java classes which represent a * RESTCONF query parameter. * *
* Implementations of this interface are required to expose a {@code public static @NonNull uriName} constant, which * holds the well-known URI Request Query Parameter name of the associated definition. * *
* This naming violates the usual Java coding style, we need it to keep API consistency as an enum can be used as an
* implementation, in which case users could be confused by upper-case constants which are not enum members.
*/
// FIXME: sealed when we have JDK17+?
public interface RestconfQueryParam