blob: be005e47a299251afb9acb0e2a0f982baf6f173f [file] [log] [blame]
Vinod Kumar Se4b9b0c2016-04-30 21:09:15 +05301/*
2 * Copyright 2016-present 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 */
16package org.onosproject.yangutils.translator.tojava.javamodel;
17
18import org.onosproject.yangutils.datamodel.YangType;
19import org.onosproject.yangutils.translator.tojava.JavaQualifiedTypeInfoContainer;
20import org.onosproject.yangutils.translator.tojava.utils.YangToJavaNamingConflictUtil;
21
22
23/**
24 * Represent java based identification of the YANG leaves.
25 */
26public interface JavaLeafInfoContainer
27 extends JavaQualifiedTypeInfoContainer {
28 /**
29 * Retreives the data type of the leaf.
30 *
31 * @return data type of the leaf
32 */
33 YangType<?> getDataType();
34
35 /**
36 * Retreives the name of the leaf.
37 *
38 * @return name of the leaf
39 */
40 String getName();
41
42 /**
43 * Retreives the java name of the leaf.
44 *
45 * @param conflictResolveConfig user config to resolve conflicts
46 * @return name of the leaf
47 */
48 String getJavaName(YangToJavaNamingConflictUtil conflictResolveConfig);
49
50
51 /**
52 * Identifies if object is a leaf-list.
53 *
54 * @return true if leaf-list false otherwise
55 */
56 boolean isLeafList();
57
58 /**
59 * updates the qualified info.
60 */
61 void updateJavaQualifiedInfo();
62}