Vidyashree Rama | 918f162 | 2016-07-28 17:33:15 +0530 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package org.onosproject.yangutils.datamodel; |
| 18 | |
Vidyashree Rama | b367047 | 2016-08-06 15:49:56 +0530 | [diff] [blame] | 19 | import java.io.Serializable; |
| 20 | |
Vidyashree Rama | 918f162 | 2016-07-28 17:33:15 +0530 | [diff] [blame] | 21 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
| 22 | import org.onosproject.yangutils.datamodel.utils.Parsable; |
| 23 | import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
| 24 | |
| 25 | /** |
| 26 | * Represents data model node to maintain information defined in YANG extended name. |
| 27 | */ |
Bharat saraswal | e3175d3 | 2016-08-31 17:50:11 +0530 | [diff] [blame] | 28 | public class YangAppExtended extends DefaultLocationInfo |
Vidyashree Rama | b367047 | 2016-08-06 15:49:56 +0530 | [diff] [blame] | 29 | implements Parsable, Serializable { |
Vidyashree Rama | 918f162 | 2016-07-28 17:33:15 +0530 | [diff] [blame] | 30 | |
Vidyashree Rama | b367047 | 2016-08-06 15:49:56 +0530 | [diff] [blame] | 31 | private static final long serialVersionUID = 806201602L; |
Vidyashree Rama | 918f162 | 2016-07-28 17:33:15 +0530 | [diff] [blame] | 32 | /** |
| 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 | } |