Fix checkstyle in yang-parser-spi
[yangtools.git] / yang / yang-parser-spi / src / main / java / org / opendaylight / yangtools / yang / parser / spi / source / QNameToStatementDefinition.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. 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.source;
9
10 import java.net.URI;
11 import javax.annotation.Nonnull;
12 import javax.annotation.Nullable;
13 import org.opendaylight.yangtools.yang.common.QName;
14 import org.opendaylight.yangtools.yang.model.api.meta.IdentifierNamespace;
15 import org.opendaylight.yangtools.yang.model.api.meta.StatementDefinition;
16
17 /**
18  * Map of fully qualified statement name to statement definition.
19  */
20 public interface QNameToStatementDefinition extends IdentifierNamespace<QName, StatementDefinition> {
21     /**
22      * Returns StatementDefinition with specified QName.
23      *
24      * @param identifier
25      *            QName of requested statement
26      * @return StatementDefinition
27      */
28     @Nullable
29     StatementDefinition get(@Nonnull QName identifier);
30
31     /**
32      * Returns StatementDefinition with specified namespace and localName.
33      *
34      * @param namespace
35      *            namespace of requested statement
36      * @param localName
37      *            localName of requested statement
38      * @return StatementDefinition
39      */
40     @Nullable
41     StatementDefinition getByNamespaceAndLocalName(@Nonnull URI namespace, @Nonnull String localName);
42 }