Remove support for inputs older than Magnesium
[yangtools.git] / codec / yang-data-codec-binfmt / src / main / java / org / opendaylight / yangtools / yang / data / codec / binfmt / TokenTypes.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.codec.binfmt;
9
10 final class TokenTypes {
11     static final byte SIGNATURE_MARKER = (byte) 0xab;
12
13     // Original stream version. Uses a per-stream dictionary for strings. QNames are serialized as three strings.
14     // LITHIUM_VERSION = 1;
15     //
16     // Revised stream version. Unlike {@link #LITHIUM_VERSION}, QNames and QNameModules are using a per-stream
17     // dictionary, too.
18     // NEON_SR2_VERSION = 2;
19     //
20     // From-scratch designed version shipping in Sodium SR1.
21     // SODIUM_SR1_VERSION = 3;
22
23     /**
24      * Magnesium version. Structurally matches {@link #SODIUM_SR1_VERSION}, but does not allow BigIntegers to be
25      * present.
26      */
27     static final short MAGNESIUM_VERSION = 4;
28     /**
29      * Potassium version. Breaks compatibility from Magnesium in terms of NormalizedNode structure, as AugmentationNodes
30      * and AugmentationIdentifiers are not preserved.
31      */
32     static final short POTASSIUM_VERSION = 5;
33
34     private TokenTypes() {
35         // Utility class
36     }
37 }