2 * Copyright (c) 2015 Pantheon Technologies s.r.o. 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.parser.stmt.rfc6020.effective.type;
10 import javax.annotation.Nonnull;
11 import org.opendaylight.yangtools.yang.model.api.stmt.TypeEffectiveStatement;
12 import org.opendaylight.yangtools.yang.model.api.stmt.TypeStatement;
13 import org.opendaylight.yangtools.yang.model.api.type.BinaryTypeDefinition;
14 import org.opendaylight.yangtools.yang.model.api.type.BooleanTypeDefinition;
15 import org.opendaylight.yangtools.yang.model.api.type.EmptyTypeDefinition;
16 import org.opendaylight.yangtools.yang.model.api.type.InstanceIdentifierTypeDefinition;
17 import org.opendaylight.yangtools.yang.model.api.type.IntegerTypeDefinition;
18 import org.opendaylight.yangtools.yang.model.api.type.StringTypeDefinition;
19 import org.opendaylight.yangtools.yang.model.api.type.UnsignedIntegerTypeDefinition;
20 import org.opendaylight.yangtools.yang.model.util.type.BaseTypes;
22 public final class BuiltinEffectiveStatements {
23 private BuiltinEffectiveStatements() {
24 throw new UnsupportedOperationException();
27 public static final TypeEffectiveStatement<TypeStatement> BINARY = new AbstractBuiltinEffectiveStatement() {
30 public BinaryTypeDefinition getTypeDefinition() {
31 return BaseTypes.binaryType();
34 public static final TypeEffectiveStatement<TypeStatement> BOOLEAN = new AbstractBuiltinEffectiveStatement() {
37 public BooleanTypeDefinition getTypeDefinition() {
38 return BaseTypes.booleanType();
41 public static final TypeEffectiveStatement<TypeStatement> EMPTY = new AbstractBuiltinEffectiveStatement() {
44 public EmptyTypeDefinition getTypeDefinition() {
45 return BaseTypes.emptyType();
48 public static final TypeEffectiveStatement<TypeStatement> INSTANCE_IDENTIFIER = new AbstractBuiltinEffectiveStatement() {
51 public InstanceIdentifierTypeDefinition getTypeDefinition() {
52 return BaseTypes.instanceIdentifierType();
55 public static final TypeEffectiveStatement<TypeStatement> INT8 = new AbstractBuiltinEffectiveStatement() {
58 public IntegerTypeDefinition getTypeDefinition() {
59 return BaseTypes.int8Type();
62 public static final TypeEffectiveStatement<TypeStatement> INT16 = new AbstractBuiltinEffectiveStatement() {
65 public IntegerTypeDefinition getTypeDefinition() {
66 return BaseTypes.int16Type();
69 public static final TypeEffectiveStatement<TypeStatement> INT32 = new AbstractBuiltinEffectiveStatement() {
72 public IntegerTypeDefinition getTypeDefinition() {
73 return BaseTypes.int32Type();
76 public static final TypeEffectiveStatement<TypeStatement> INT64 = new AbstractBuiltinEffectiveStatement() {
79 public IntegerTypeDefinition getTypeDefinition() {
80 return BaseTypes.int64Type();
83 public static final TypeEffectiveStatement<TypeStatement> STRING = new AbstractBuiltinEffectiveStatement() {
86 public StringTypeDefinition getTypeDefinition() {
87 return BaseTypes.stringType();
90 public static final TypeEffectiveStatement<TypeStatement> UINT8 = new AbstractBuiltinEffectiveStatement() {
93 public UnsignedIntegerTypeDefinition getTypeDefinition() {
94 return BaseTypes.uint8Type();
97 public static final TypeEffectiveStatement<TypeStatement> UINT16 = new AbstractBuiltinEffectiveStatement() {
100 public UnsignedIntegerTypeDefinition getTypeDefinition() {
101 return BaseTypes.uint16Type();
104 public static final TypeEffectiveStatement<TypeStatement> UINT32 = new AbstractBuiltinEffectiveStatement() {
107 public UnsignedIntegerTypeDefinition getTypeDefinition() {
108 return BaseTypes.uint32Type();
111 public static final TypeEffectiveStatement<TypeStatement> UINT64 = new AbstractBuiltinEffectiveStatement() {
114 public UnsignedIntegerTypeDefinition getTypeDefinition() {
115 return BaseTypes.uint64Type();