/* * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.yangtools.yang.model.api.meta; import java.util.Optional; import org.eclipse.jdt.annotation.NonNull; import org.opendaylight.yangtools.concepts.Immutable; import org.opendaylight.yangtools.yang.common.QName; /** * Definition / model of YANG {@link DeclaredStatement} and {@link EffectiveStatement}. * *
* Statement concept is defined in RFC6020 section 6.3:
A YANG * module contains a sequence of statements. Each statement starts with a * keyword, followed by zero or one argument* *
* Source:
*/
public interface StatementDefinition extends Immutable {
/**
* Returns name of the statement.
*
* @return Name of the statement
*/
@NonNull QName getStatementName();
/**
* Returns name of statement argument or null, if statement does not have argument.
*
* @return argument name or null, if statement does not take argument.
*/
@NonNull Optional