Merge branch 'master' of ../controller
[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  * Represents origin of statement - if it was explicitly present
13  * in model representation or if it was inferred from context.
14  */
15 public enum StatementSource {
16
17     /**
18      * Statement was explicitly declared by author of the supplied model.
19      */
20     DECLARATION,
21
22     /**
23      * Statement was derived from context of YANG model / statement
24      * and represents effective model.
25      *
26      * <p>
27      * Effective context nodes are derived from applicable {@link #DECLARATION}
28      * statements by interpreting their semantic meaning in context
29      * of current statement.
30      */
31     CONTEXT
32 }