Un-deprecate CopyableNode, AddedByUsesAware
[yangtools.git] / yang / yang-parser-spi / src / main / java / org / opendaylight / yangtools / yang / parser / spi / meta / ParserNamespace.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.yang.parser.spi.meta;
9
10 import com.google.common.annotations.Beta;
11
12 /**
13  * {@link ParserNamespace} serves as common superclass for namespaces used during parser operation. Each such namespace,
14  * is a type-captured subclass. This type capture of namespace allows for handy type-safe reading methods such as
15  * {@link NamespaceStmtCtx#getFromNamespace(Class, Object)} and still allows introduction of new namespaces without need
16  * to change APIs.
17  *
18  * @param <K> Identifier type
19  * @param <V> Value type
20  */
21 @Beta
22 public interface ParserNamespace<K, V> {
23
24 }