68f242edd03d2758ccb73b8dbdb7bfe4709f1878
[yangtools.git] / yang / rfc8040-parser-support / src / main / java / org / opendaylight / yangtools / rfc8040 / parser / YangDataArgumentNamespace.java
1 /*
2  * Copyright (c) 2020 PANTHEON.tech, s.r.o. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.yangtools.rfc8040.parser;
9
10 import com.google.common.annotations.Beta;
11 import org.eclipse.jdt.annotation.NonNull;
12 import org.opendaylight.yangtools.yang.common.Empty;
13 import org.opendaylight.yangtools.yang.common.QName;
14 import org.opendaylight.yangtools.yang.parser.spi.meta.NamespaceBehaviour;
15 import org.opendaylight.yangtools.yang.parser.spi.meta.ParserNamespace;
16
17 /**
18  * Namespace for remembering the {@code yang-data} argument's QName. This namespace is necessary because we are forced
19  * to have a String argument due to us being an extension.
20  */
21 @Beta
22 // FIXME: YANGTOOLS-1196: remove this namespace once we can bind freely
23 public interface YangDataArgumentNamespace extends ParserNamespace<Empty, QName> {
24     NamespaceBehaviour<Empty, QName, @NonNull YangDataArgumentNamespace> BEHAVIOUR =
25         NamespaceBehaviour.statementLocal(YangDataArgumentNamespace.class);
26
27 }