blob: c112ce000ab46a539bd6cd0a960d88c8339a708f [file] [log] [blame]
Bharat saraswal870c56f2016-02-20 21:57:16 +05301/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2016-present Open Networking Laboratory
Bharat saraswal870c56f2016-02-20 21:57:16 +05303 *
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/**
Bharat saraswald9822e92016-04-05 15:13:44 +053020 * Represents type of java files generated.
Vinod Kumar S67e7be62016-02-11 20:13:28 +053021 */
Vinod Kumar S38046502016-03-23 15:30:27 +053022public final class GeneratedJavaFileType {
Vinod Kumar Sc4216002016-03-03 19:55:30 +053023
24 /**
Bharat saraswal870c56f2016-02-20 21:57:16 +053025 * Interface file.
Vinod Kumar S67e7be62016-02-11 20:13:28 +053026 */
Vinod Kumar Sc4216002016-03-03 19:55:30 +053027 public static final int INTERFACE_MASK = 1;
Vinod Kumar S67e7be62016-02-11 20:13:28 +053028
29 /**
Bharat saraswal870c56f2016-02-20 21:57:16 +053030 * Builder interface file.
31 */
Vinod Kumar Sc4216002016-03-03 19:55:30 +053032 public static final int BUILDER_INTERFACE_MASK = 2;
33
34 /**
35 * Builder class file.
36 */
37 public static final int BUILDER_CLASS_MASK = 4;
Bharat saraswal870c56f2016-02-20 21:57:16 +053038
39 /**
40 * Impl class file.
41 */
Vinod Kumar Sc4216002016-03-03 19:55:30 +053042 public static final int IMPL_CLASS_MASK = 8;
Bharat saraswal870c56f2016-02-20 21:57:16 +053043
44 /**
Vinod Kumar Sc4216002016-03-03 19:55:30 +053045 * Interface and class file.
Vinod Kumar S67e7be62016-02-11 20:13:28 +053046 */
Vinod Kumar Sc4216002016-03-03 19:55:30 +053047 public static final int GENERATE_INTERFACE_WITH_BUILDER = 15;
48
49 /**
Gaurav Agrawal56527662016-04-20 15:49:17 +053050 * Java interface corresponding to rpc.
Vinod Kumar Sc4216002016-03-03 19:55:30 +053051 */
Gaurav Agrawal56527662016-04-20 15:49:17 +053052 public static final int GENERATE_RPC_INTERFACE = 16;
Gaurav Agrawal338735b2016-04-18 18:53:11 +053053
54 /**
Gaurav Agrawal56527662016-04-20 15:49:17 +053055 * Interface, class file and rpc.
Gaurav Agrawal338735b2016-04-18 18:53:11 +053056 */
Gaurav Agrawal56527662016-04-20 15:49:17 +053057 public static final int GENERATE_MANAGER_WITH_RPC = 31;
58
59 // TODO RPC implementation to be integrated with notification.
Gaurav Agrawal338735b2016-04-18 18:53:11 +053060
61 /**
Bharat saraswald72411a2016-04-19 01:00:16 +053062 * Java class corresponding to YANG enumeration.
63 */
64 public static final int GENERATE_ENUM_CLASS = 64;
65
66 /**
Gaurav Agrawal56527662016-04-20 15:49:17 +053067 * Java class corresponding to typedef.
68 */
69 public static final int GENERATE_TYPEDEF_CLASS = 1024;
70
71 /**
72 * Java class corresponding to union.
73 */
74 public static final int GENERATE_UNION_CLASS = 2048;
75
76 /**
Gaurav Agrawal338735b2016-04-18 18:53:11 +053077 * Creates an instance of generate java file type.
78 */
79 private GeneratedJavaFileType() {
80 }
Vinod Kumar S67e7be62016-02-11 20:13:28 +053081}