blob: df5057b270dec629821d2d468ba871007e022dd7 [file] [log] [blame]
Vidyashree Rama918f1622016-07-28 17:33: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 */
16
17package org.onosproject.yangutils.datamodel;
18
Vidyashree Ramab3670472016-08-06 15:49:56 +053019import java.io.Serializable;
20
Vidyashree Rama918f1622016-07-28 17:33:15 +053021import org.onosproject.yangutils.datamodel.exceptions.DataModelException;
22import org.onosproject.yangutils.datamodel.utils.Parsable;
23import org.onosproject.yangutils.datamodel.utils.YangConstructType;
24
25/**
26 * Represents data model node to maintain information defined in YANG extended name.
27 */
Bharat saraswale3175d32016-08-31 17:50:11 +053028public class YangAppExtended extends DefaultLocationInfo
Vidyashree Ramab3670472016-08-06 15:49:56 +053029 implements Parsable, Serializable {
Vidyashree Rama918f1622016-07-28 17:33:15 +053030
Vidyashree Ramab3670472016-08-06 15:49:56 +053031 private static final long serialVersionUID = 806201602L;
Vidyashree Rama918f1622016-07-28 17:33:15 +053032 /**
33 * App extended name information.
34 */
35 private String yangAppExtendedName;
36
37 /**
38 * Prefix of extended name.
39 */
40 private String prefix;
41
42 /**
43 * Returns the YANG app extended name information.
44 *
45 * @return the YANG app extended name information
46 */
47 public String getYangAppExtendedName() {
48 return yangAppExtendedName;
49 }
50
51 /**
52 * Sets the YANG app extended name information.
53 *
54 * @param yangAppExtendedName the YANG app extended name to set
55 */
56 public void setYangAppExtendedName(String yangAppExtendedName) {
57 this.yangAppExtendedName = yangAppExtendedName;
58 }
59
60 /**
61 * Returns the prefix.
62 *
63 * @return the prefix
64 */
65 public String getPrefix() {
66 return prefix;
67 }
68
69 /**
70 * Sets the prefix information.
71 *
72 * @param prefix the prefix to set
73 */
74 public void setPrefix(String prefix) {
75 this.prefix = prefix;
76 }
77
78 @Override
79 public YangConstructType getYangConstructType() {
80 return YangConstructType.APP_EXTENDED_NAME_DATA;
81 }
82
83 @Override
84 public void validateDataOnEntry() throws DataModelException {
85 // TODO : to be implemented
86 }
87
88 @Override
89 public void validateDataOnExit() throws DataModelException {
90 // TODO : to be implemented
91 }
92}