@Override protected void visit(Object value, BioPAXElement parent, Model model, PropertyEditor editor) { if (value != null && !(value instanceof BioPAXElement)) { if (warnOnDataPropertyValues.contains(value.toString().trim().toUpperCase())) { error(parent, "illegal.property.value", fix, editor.getProperty(), value); if(fix) { if(editor.isMultipleCardinality()) editor.removeValueFromBean(value, parent); else editor.setValueToBean(null, parent); } } } } };
@Override public void visit(BioPAXElement domain, Object range, Model model, PropertyEditor editor) { if (range != null) { if (warnOnDataPropertyValues.contains(range.toString().trim().toUpperCase())) { error(validation, domain, "illegal.property.value", validation.isFix(), editor.getProperty(), range); if(validation.isFix()) { if(editor.isMultipleCardinality()) editor.removeValueFromBean(range, domain); if(!editor.isMultipleCardinality()) editor.setValueToBean(null, domain); } } } } }, new Filter<PropertyEditor> () {