X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fconfig%2Fconfig-manager-facade-xml%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Ffacade%2Fxml%2Fmapping%2Fattributes%2Ffromxml%2FAttributeConfigElement.java;h=ac8380f90b6344ce934d8034f8c9c7f1185542b4;hb=refs%2Fchanges%2F40%2F62940%2F4;hp=850d0bea33ccf4619158d87bfd7d58c6e1c11bb0;hpb=b197d75e803beac663033287d769dce62c108490;p=controller.git diff --git a/opendaylight/config/config-manager-facade-xml/src/main/java/org/opendaylight/controller/config/facade/xml/mapping/attributes/fromxml/AttributeConfigElement.java b/opendaylight/config/config-manager-facade-xml/src/main/java/org/opendaylight/controller/config/facade/xml/mapping/attributes/fromxml/AttributeConfigElement.java index 850d0bea33..ac8380f90b 100644 --- a/opendaylight/config/config-manager-facade-xml/src/main/java/org/opendaylight/controller/config/facade/xml/mapping/attributes/fromxml/AttributeConfigElement.java +++ b/opendaylight/config/config-manager-facade-xml/src/main/java/org/opendaylight/controller/config/facade/xml/mapping/attributes/fromxml/AttributeConfigElement.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved. + * Copyright (c) 2015, 2017 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, @@ -27,7 +27,8 @@ public class AttributeConfigElement { private Object resolvedDefaultValue; private String jmxName; - public AttributeConfigElement(final Object defaultValue, final Object value, final EditStrategyType editStrategyType) { + public AttributeConfigElement(final Object defaultValue, final Object value, + final EditStrategyType editStrategyType) { this.defaultValue = defaultValue; this.value = value; this.editStrategy = Optional.fromNullable(editStrategyType); @@ -56,12 +57,13 @@ public class AttributeConfigElement { return new AttributeConfigElement(nullableDefault, value, null); } - public static AttributeConfigElement createNullValue(final Object nullableDefault) { - return new AttributeConfigElement(nullableDefault, null, null); + public static AttributeConfigElement create(final String nullableDefault, final Object value, + final EditStrategyType editStrategyType) { + return new AttributeConfigElement(nullableDefault, value, editStrategyType); } - public static AttributeConfigElement create(final String nullableDefault, final Object value, final EditStrategyType editStrategyType) { - return new AttributeConfigElement(nullableDefault, value, editStrategyType); + public static AttributeConfigElement createNullValue(final Object nullableDefault) { + return new AttributeConfigElement(nullableDefault, null, null); } public Object getValue() { @@ -84,5 +86,4 @@ public class AttributeConfigElement { public String toString() { return "AttributeConfigElement [defaultValue=" + defaultValue + ", value=" + value + "]"; } - }