@Test public void testDisplayView() { ListProperty listProperty = new ListProperty(); listProperty.setValue(VALUES_WITH_HTML_SPECIAL_CHARS); String propertyName = "foo"; BaseObject object = new BaseObject(); object.addField(propertyName, listProperty); StaticListClass staticListClass = new StaticListClass(); staticListClass.setSeparator(" * "); staticListClass.setValues(VALUES_WITH_HTML_SPECIAL_CHARS.get(0) + '|' + VALUES_WITH_HTML_SPECIAL_CHARS.get(1) + '=' + StringUtils.reverse(VALUES_WITH_HTML_SPECIAL_CHARS.get(1)) + '|' + VALUES_WITH_HTML_SPECIAL_CHARS.get(2)); assertEquals("a&#60;b>c * 3'2\"1 * x{y&#38;z", staticListClass.displayView(propertyName, "", object, null)); }
public void setValues(String values) { setStringValue("values", values); }
StaticListClass extends ListClass { public void setValues(String values) { setStringValue("values", values); } }
StaticListClass extends ListClass { public void setValues(String values) { setStringValue("values", values); } StaticListClass(PropertyMetaClass wclass);  StaticListClass(); }
StaticListClass extends ListClass { public void setValues(String values) { setStringValue("values", values); } StaticListClass(PropertyMetaClass wclass);  StaticListClass(); String getValues(); void setValues(String values); @Override List<String> getList(XWikiContext context); @Override Map<String, ListItem> getMap(XWikiContext context); @Override void displayEdit(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context); }
StaticListClass extends ListClass { public void setValues(String values) { setStringValue("values", values); } StaticListClass(PropertyMetaClass wclass);  StaticListClass(); String getValues(); void setValues(String values); @Override List<String> getList(XWikiContext context); @Override Map<String, ListItem> getMap(XWikiContext context); @Override void displayEdit(StringBuffer buffer, String name, String prefix, BaseCollection object, XWikiContext context);  }