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;
10 import org.eclipse.jdt.annotation.NonNull;
11 import org.eclipse.jdt.annotation.Nullable;
12 import org.opendaylight.yangtools.yang.common.QName;
13 import org.opendaylight.yangtools.yang.common.XMLNamespace;
14 import org.opendaylight.yangtools.yang.model.api.meta.StatementDefinition;
17 * Map of fully qualified statement name to statement definition.
19 public interface QNameToStatementDefinition {
21 * Returns StatementDefinition with specified QName.
23 * @param identifier QName of requested statement
24 * @return StatementDefinition
26 StatementDefinition get(QName identifier);
29 * Returns StatementDefinition with specified namespace and localName.
31 * @param namespace namespace of requested statement
32 * @param localName localName of requested statement
33 * @return StatementDefinition
35 @Nullable StatementDefinition getByNamespaceAndLocalName(@NonNull XMLNamespace namespace,
36 @NonNull String localName);