Update License text
[vnfsdk/compliance.git] / veslibrary / ves_javalibrary / evel_javalib2 / src / evel_javalibrary / att / com / EvelOptionLong.java
1 package evel_javalibrary.att.com;\r
2 /**************************************************************************//**\r
3  * @file\r
4  * Evel Option Long class\r
5  *\r
6  * This file implements the Evel Option class to handle optional Long fields.\r
7  *\r
8  * License\r
9  * -------\r
10  * Unless otherwise specified, all software contained herein is\r
11  * Licensed under the Apache License, Version 2.0 (the "License");\r
12  * you may not use this file except in compliance with the License.\r
13  * You may obtain a copy of the License at\r
14  *        http://www.apache.org/licenses/LICENSE-2.0\r
15  *\r
16  * Unless required by applicable law or agreed to in writing, software\r
17  * distributed under the License is distributed on an "AS IS" BASIS,\r
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
19  * See the License for the specific language governing permissions and\r
20  * limitations under the License.\r
21  *****************************************************************************/\r
22 \r
23 import org.apache.log4j.Logger;\r
24 /*\r
25  * Handles Optional Long Integer fields\r
26  */\r
27 public class EvelOptionLong extends EvelOption {\r
28 \r
29         /**************************************************************************//**\r
30          * Optional parameter holder for string.\r
31          *****************************************************************************/\r
32      Long value;\r
33      \r
34      private static final Logger LOGGER = Logger.getLogger( EvelOptionLong.class.getName() );\r
35      \r
36          public EvelOptionLong()\r
37          {\r
38                  super(false);\r
39                  value = 0L;\r
40          }\r
41          \r
42          public EvelOptionLong(boolean val, Long str)\r
43          {\r
44                  super(val);\r
45                  value = str;\r
46          }\r
47          \r
48          public void InitValue()\r
49          {\r
50                  is_set = false;\r
51                  value = 0L;\r
52          }\r
53          //Setter\r
54          public void SetValue(Long str)\r
55          {\r
56                  is_set = true;\r
57                  value = str;\r
58          }\r
59          \r
60         //Sets Long Integer value outputting debugging message\r
61          public void SetValuePr(Long str, String mstr)\r
62          {\r
63                  \r
64                  is_set = true;\r
65                  value = str;   \r
66                  LOGGER.debug("Setting "+mstr+" to "+str);\r
67          }\r
68          \r
69          public Long GetValue()\r
70          {\r
71                  return value;\r
72          }\r
73 \r
74 }\r
75 \r