public String displayView(String name, BaseCollection object, XWikiContext context) { return displayView(name, "", object, context); }
public String displayView(String name, String prefix, BaseCollection object, XWikiContext context) { StringBuffer buffer = new StringBuffer(); displayView(buffer, name, prefix, object, context); return buffer.toString(); }
public String displayView(PropertyClass pclass, String prefix, BaseCollection object, XWikiContext context) { return (pclass == null) ? "" : pclass.displayView(pclass.getName(), prefix, object, context); }
public String displayView(String name, String prefix, XWikiContext context) { StringBuffer buffer = new StringBuffer(); ((PropertyClass) getXClass(context).get(name)).displayView(buffer, name, prefix, this, context); return buffer.toString(); }
public void displayView(StringBuffer buffer, String name, String prefix, XWikiContext context) { ((PropertyClass) getXClass(context).get(name)).displayView(buffer, name, prefix, this, context); }
public String displayRendered(PropertyClass pclass, String prefix, BaseCollection object, XWikiContext context) throws XWikiException { String result = pclass.displayView(pclass.getName(), prefix, object, context); return getRenderedContent(result, Syntax.XWIKI_1_0.toIdString(), context); }
pclass.displayCustom(result, fieldname, prefix, type, obj, context); } else if (type.equals("view")) { pclass.displayView(result, fieldname, prefix, obj, context); } else if (type.equals("rendered")) { String fcontent = pclass.displayView(fieldname, prefix, obj, context); pclass.displayView(result, fieldname, prefix, obj, context);
if (pclass != null) { String newPropertyValue = (newProperty.getValue() instanceof String) ? newProperty.toText() : pclass.displayView( propertyName, this, context); difflist.add(new ObjectDiff(getClassName(), getNumber(), "", "added", propertyName, (newProperty.getValue() instanceof String) ? newProperty.toText() : pclass.displayView( propertyName, this, context); String oldPropertyValue = (oldProperty.getValue() instanceof String) ? oldProperty.toText() : pclass.displayView( propertyName, oldCollection, context); difflist.add(new ObjectDiff(getClassName(), getNumber(), "", "changed", propertyName, propertyType, (oldProperty.getValue() instanceof String) ? oldProperty.toText() : pclass.displayView( propertyName, oldCollection, context); difflist.add(new ObjectDiff(oldCollection.getClassName(), oldCollection.getNumber(), "",
String newPropertyValue = (newProperty.getValue() instanceof String || pclass == null) ? newProperty.toText() : pclass.displayView(propertyName, this, context); difflist.add(new ObjectDiff(getClassName(), getNumber(), getGuid(), "added", propertyName, propertyType, "", newPropertyValue)); pclass.displayView(propertyName, this, context); String oldPropertyValue = (oldProperty.getValue() instanceof String || pclass == null) ? oldProperty.toText() : pclass.displayView(propertyName, oldObject, context); difflist.add(new ObjectDiff(getClassName(), getNumber(), getGuid(), "changed", propertyName, propertyType, oldPropertyValue, newPropertyValue)); pclass.displayView(propertyName, oldObject, context); difflist.add(new ObjectDiff(oldObject.getClassName(), oldObject.getNumber(), oldObject.getGuid(), "removed", propertyName, propertyType, oldPropertyValue, ""));