Populate data/ hierarchy
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / meta / StatementOrigin.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.model.api.meta;
9
10 /**
11  * Enumeration of possible origins of a statement.
12  */
13 public enum StatementOrigin {
14     /**
15      * Statement was explicitly declared by author of the supplied model, such as spelled out in the text of a YANG
16      * module.
17      */
18     DECLARATION,
19     /**
20      * Statement was inferred to exist based on effective semantics of some other statement. As an example, the
21      * {@code rpc} statement implies presence of both {@code input} and {@code output} statements, even when they are
22      * not explicitly declared.
23      */
24     CONTEXT
25 }