final PropertyModel prop = new PropertyModel(); prop.setProp(attrib.getName()); prop.setValue(attrib.getValue());
@Override public PropertyModel getModelInCommon(PropertyModel model, boolean analysisMode) throws Exception { if (model == null) { return null; } PropertyModel common = new PropertyModel(); boolean found = false; if (model.getProp() != null && model.getProp().equals(prop)) { common.setProp(prop); found = true; } if (model.getValue() != null && model.getValue().equals(value)) { common.setValue(value); found = true; } if (found) { if (analysisMode && common.getValue() == null) { common.setValue(InfoModel.MULTIPLE_VALUES); } if (analysisMode && common.getProp() == null) { common.setProp(InfoModel.MULTIPLE_VALUES); } return common; } else { return null; } } }