-
Task
-
Resolution: Done
-
Medium
-
None
-
None
-
Frankfurt Sp2 : 11/25 - 1/17
A method is needed to extract properties on CapabilityAssignment objects:
+ protected String extractValue (CapabilityAssignment capability, String path, String name) { + String value = ""; + + if (capability.getProperties().containsKey(path)) { + Property property = capability.getProperties().get(path); + if (property != null && !property.getLeafPropertyValue(name).isEmpty()) { + value = property.getLeafPropertyValue(name).get(0); + } + } + + if (value != null && !value.isEmpty() && !value.equalsIgnoreCase("null")) { + return value; + } else { + return ""; + } + } +