2 * Copyright (c) 2015 Cisco Systems, Inc. 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.yangtools.yang.parser.spi.source;
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;
18 * Map of fully qualified statement name to statement definition.
20 public interface QNameToStatementDefinition extends IdentifierNamespace<QName, StatementDefinition> {
22 * Returns StatementDefinition with specified QName.
25 * QName of requested statement
26 * @return StatementDefinition
29 StatementDefinition get(@Nonnull QName identifier);
32 * Returns StatementDefinition with specified namespace and localName.
35 * namespace of requested statement
37 * localName of requested statement
38 * @return StatementDefinition
41 StatementDefinition getByNamespaceAndLocalName(@Nonnull URI namespace, @Nonnull String localName);