Cleanup yang.model.api.meta
[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 public enum StatementSource {
17
18     /**
19      * Statement was explicitly declared by author
20      * of the supplied model.
21      */
22     DECLARATION,
23
24     /**
25      * Statement was derived from context of YANG model / statement
26      * and represents effective model.
27      *
28      * Effective context nodes are derived from applicable {@link #DECLARATION}
29      * statements by interpreting their semantic meaning in context
30      * of current statement.
31      */
32     CONTEXT
33 }