blob: 403ef5c57cf5a1ed853d5e3a131c42bf4cdc9562 [file] [log] [blame]
Bharat saraswal870c56f2016-02-20 21:57:16 +05301/*
2 * Copyright 2016 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Vinod Kumar S67e7be62016-02-11 20:13:28 +053016
Vinod Kumar S38046502016-03-23 15:30:27 +053017package org.onosproject.yangutils.translator.tojava;
Vinod Kumar S67e7be62016-02-11 20:13:28 +053018
19/**
20 * Type of files generated.
21 */
Vinod Kumar S38046502016-03-23 15:30:27 +053022public final class GeneratedJavaFileType {
Vinod Kumar Sc4216002016-03-03 19:55:30 +053023
24 /**
25 * prevent creating attributes.
26 */
Vinod Kumar S38046502016-03-23 15:30:27 +053027 private GeneratedJavaFileType() {
Vinod Kumar Sc4216002016-03-03 19:55:30 +053028 }
29
Vinod Kumar S67e7be62016-02-11 20:13:28 +053030 /**
Bharat saraswal870c56f2016-02-20 21:57:16 +053031 * Interface file.
Vinod Kumar S67e7be62016-02-11 20:13:28 +053032 */
Vinod Kumar Sc4216002016-03-03 19:55:30 +053033 public static final int INTERFACE_MASK = 1;
Vinod Kumar S67e7be62016-02-11 20:13:28 +053034
35 /**
Bharat saraswal870c56f2016-02-20 21:57:16 +053036 * Builder interface file.
37 */
Vinod Kumar Sc4216002016-03-03 19:55:30 +053038 public static final int BUILDER_INTERFACE_MASK = 2;
39
40 /**
41 * Builder class file.
42 */
43 public static final int BUILDER_CLASS_MASK = 4;
Bharat saraswal870c56f2016-02-20 21:57:16 +053044
45 /**
46 * Impl class file.
47 */
Vinod Kumar Sc4216002016-03-03 19:55:30 +053048 public static final int IMPL_CLASS_MASK = 8;
Bharat saraswal870c56f2016-02-20 21:57:16 +053049
50 /**
Vinod Kumar Sc4216002016-03-03 19:55:30 +053051 * Interface and class file.
Vinod Kumar S67e7be62016-02-11 20:13:28 +053052 */
Vinod Kumar Sc4216002016-03-03 19:55:30 +053053 public static final int GENERATE_INTERFACE_WITH_BUILDER = 15;
54
55 /**
56 * Java class corresponding to typedef.
57 */
58 public static final int GENERATE_TYPEDEF_CLASS = 16;
Vinod Kumar S67e7be62016-02-11 20:13:28 +053059}