2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.yangtools.yang.data.codec.binfmt;
10 final class LithiumValue {
11 // The String length threshold beyond which a String should be encoded as bytes
12 static final int STRING_BYTES_LENGTH_THRESHOLD = Short.MAX_VALUE / 4;
14 static final byte SHORT_TYPE = 1;
15 static final byte BYTE_TYPE = 2;
16 static final byte INT_TYPE = 3;
17 static final byte LONG_TYPE = 4;
18 static final byte BOOL_TYPE = 5;
19 static final byte QNAME_TYPE = 6;
20 static final byte BITS_TYPE = 7;
21 static final byte YANG_IDENTIFIER_TYPE = 8;
22 static final byte STRING_TYPE = 9;
23 static final byte BIG_INTEGER_TYPE = 10;
24 static final byte BIG_DECIMAL_TYPE = 11;
25 static final byte BINARY_TYPE = 12;
26 // Leaf nodes no longer allow null values. The "empty" type is now represented as
27 // org.opendaylight.yangtools.yang.common.Empty. This is kept for backwards compatibility.
29 static final byte NULL_TYPE = 13;
30 static final byte STRING_BYTES_TYPE = 14;
31 static final byte EMPTY_TYPE = 15;
33 private LithiumValue() {