From 4fde345a23e41c2658923efa4a0890c5f791a592 Mon Sep 17 00:00:00 2001 From: Kaveesha Date: Fri, 12 Jun 2020 11:07:18 +0530 Subject: [PATCH] Update Item bean by adding Nullable value --- .../device/mgt/common/policy/mgt/ui/Item.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/policy/mgt/ui/Item.java b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/policy/mgt/ui/Item.java index dfe4f942ce..c7e678bf27 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/policy/mgt/ui/Item.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/policy/mgt/ui/Item.java @@ -43,6 +43,7 @@ public class Item { private APITable apiTable; private Text text; private InputList inputList; + private String nullableValue; @XmlElement(name = "Label") public String getLabel() { @@ -62,7 +63,7 @@ public class Item { this.tooltip = tooltip; } - @XmlElement(name = "Key") + @XmlElement(name = "Key", required = true) public String getKey() { return key; } @@ -71,7 +72,7 @@ public class Item { this.key = key; } - @XmlElement(name = "Value") + @XmlElement(name = "Value", required = true) public String getValue() { return value; } @@ -187,4 +188,13 @@ public class Item { public void setInputList(InputList inputList) { this.inputList = inputList; } + + @XmlElement(name = "NullableValue") + public String getNullableValue() { + return nullableValue; + } + + public void setNullableValue(String nullableValue) { + this.nullableValue = nullableValue; + } }