Enforce sealed DataTreeModification
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / schema / tree / ChildTrackingPolicy.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.data.impl.schema.tree;
9
10 /**
11  * Child ordering policy. It defines how a {@link ModifiedNode} tracks its children.
12  */
13 enum ChildTrackingPolicy {
14     /**
15      * No child nodes are possible, ever.
16      */
17     NONE,
18     /**
19      * Child nodes are possible and we need to make sure that their iteration order
20      * matches the order in which they are introduced.
21      */
22     ORDERED,
23     /**
24      * Child nodes are possible, but their iteration order can be undefined.
25      */
26     UNORDERED,
27 }