2 * Copyright (c) 2021 PANTHEON.tech, s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.restconf.nb.rfc8040;
10 import static java.util.Objects.requireNonNull;
13 import org.eclipse.jdt.annotation.NonNullByDefault;
14 import org.opendaylight.yangtools.concepts.Immutable;
17 * This class represents a {@code filter} parameter as defined in
18 * <a href="https://datatracker.ietf.org/doc/html/rfc8040#section-4.8.4">RFC8040 section 4.8.4</a>.
21 public final class FilterParameter implements Immutable {
22 private static final URI CAPABILITY = URI.create("urn:ietf:params:restconf:capability:filter:1.0");
24 // FIXME: can we have a parsed, but not bound version of an XPath, please?
25 private final String value;
27 private FilterParameter(final String value) {
28 this.value = requireNonNull(value);
31 public static FilterParameter forUriValue(final String uriValue) {
32 return new FilterParameter(uriValue);
35 public static String uriName() {
39 public String uriValue() {
43 public static URI capabilityUri() {