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;
12 import com.google.common.annotations.Beta;
14 import org.eclipse.jdt.annotation.NonNullByDefault;
15 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.DateAndTime;
16 import org.opendaylight.yangtools.concepts.Immutable;
19 * Abstract base class for StartTimeParameter and StopTimeParameter.
23 public abstract class AbstractReplayParameter implements Immutable {
24 private static final URI CAPABILITY = URI.create("urn:ietf:params:restconf:capability:replay:1.0");
26 private final DateAndTime value;
28 AbstractReplayParameter(final DateAndTime value) {
29 this.value = requireNonNull(value);
32 public final DateAndTime value() {
36 public final String uriValue() {
37 return value.getValue();
40 public static final URI capabilityUri() {