Rename packages from openecomp to onap.
[sdc.git] / common / onap-common-configuration-management / onap-configuration-management-core / src / main / java / org / onap / config / type / ConfigurationUpdate.java
1 package org.onap.config.type;
2
3 public class ConfigurationUpdate extends ConfigurationQuery {
4   private String value;
5   private boolean nodeOverride;
6
7   public ConfigurationUpdate value(String val) {
8     value = val;
9     return this;
10   }
11
12   public ConfigurationUpdate nodeOverride(boolean val) {
13     nodeOverride = val;
14     return this;
15   }
16
17   /**
18    * Gets value.
19    *
20    * @return the value
21    */
22   public String getValue() {
23     if (value != null && value.split(",").length > 1 && !value.matches("^\\[.*\\]$")) {
24       return "[" + value + "]";
25     }
26     return value;
27   }
28
29   public boolean isNodeOverride() {
30     return nodeOverride;
31   }
32
33 }