315202fc0599a34d03237f67731a6f6f9e6d07ee
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / meta / StatementSource.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  * Origin of statement
12  *
13  * Represents origin of statement - if it was explicitly present
14  * in model representation or if it was inferred from context.
15  *
16  */
17 public enum StatementSource {
18
19     /**
20      *
21      * Statement was explicitly declared by author
22      * of the supplied model.
23      *
24      */
25     DECLARATION,
26     /**
27      *
28      * Statement was derived from context of YANG model / statement
29      * and represents effective model.
30      *
31      * Effective context nodes are derived from applicable {@link #DECLARATION}
32      * statements by interpreting their semantic meaning in context
33      * of current statement.
34      *
35      */
36     CONTEXT
37
38 }