Rama-Huawei | b711e5c | 2016-08-31 07:55:46 +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.yms.app.yob; |
| 18 | |
| 19 | /** |
| 20 | * Represents common constant utility for YANG object builder. |
| 21 | */ |
| 22 | final class YobConstants { |
| 23 | private YobConstants() { |
| 24 | } |
| 25 | |
| 26 | static final String FROM_STRING = "fromString"; |
| 27 | static final String BUILD = "build"; |
| 28 | static final String OP_PARAM = "OpParam"; |
| 29 | static final String DEFAULT = "Default"; |
| 30 | static final String ADD_TO = "addTo"; |
| 31 | static final String VALUE_OF = "valueOf"; |
| 32 | static final String OPERATION_TYPE = "onosYangNodeOperationType"; |
| 33 | static final String OP_TYPE = "OnosYangNodeOperationType"; |
| 34 | static final String OF = "of"; |
| 35 | static final String PERIOD = "."; |
| 36 | static final String NO_HANDLE_FOR_YDT = "No handler for YDT node"; |
| 37 | static final String HAS_NO_CHILD = " does not have child "; |
| 38 | static final String SET_OP_TYPE_FAIL = "Failed to set Operation Type"; |
| 39 | static final String FAIL_TO_BUILD = "Failed to build the object "; |
| 40 | static final String FAIL_TO_GET_FIELD = "Failed to get field for class "; |
| 41 | static final String FAIL_TO_GET_METHOD = "Failed to get method for class "; |
| 42 | static final String FAIL_TO_LOAD_CLASS = "Failed to load class for class "; |
| 43 | static final String YDT_TYPE_IS_NOT_SUPPORT = |
| 44 | "Given YDT type is not supported."; |
| 45 | static final String FAIL_TO_CREATE_OBJ = |
| 46 | "Failed to create an object for class "; |
| 47 | static final String REFLECTION_FAIL_TO_CREATE_OBJ = |
| 48 | "Reflection failed to create an object for class "; |
| 49 | static final String FAIL_TO_LOAD_CONSTRUCTOR = |
| 50 | "Failed to load constructor for class "; |
| 51 | static final String FAIL_TO_INVOKE_METHOD = |
| 52 | "Failed to invoke method for class "; |
| 53 | static final String DATA_TYPE_NOT_SUPPORT = |
| 54 | "Given data type is not supported."; |
| 55 | static final String OBJ_IS_ALREADY_BUILT_NOT_FETCH = |
| 56 | "Object is already built, cannot fetch builder"; |
| 57 | static final String BUILDER_IS_NOT_SET = |
| 58 | "Builder is not yet set, cannot fetch it"; |
| 59 | static final String BUILT_OBJ_IS_NOT_SET = |
| 60 | "Built object is not set"; |
| 61 | static final String OBJ_IS_NOT_SET_NOT_FETCH = |
| 62 | "Builder is not yet set, cannot fetch it"; |
| 63 | static final String OBJ_IS_ALREADY_BUILT_NOT_BUILD = |
| 64 | "Object is already built, cannot build again"; |
| 65 | static final String OBJ_BUILDING_WITHOUT_BUILDER = |
| 66 | "Object building without builder"; |
| 67 | } |