public String getDivAsString() { XhtmlNode div = getDiv(); if (div != null && !div.isEmpty()) { return div.getValueAsString(); } else { return null; } }
/** * Sets the value of * * @param theString * @throws Exception */ public void setDivAsString(String theString) { XhtmlNode div; if (StringUtils.isNotBlank(theString)) { div = new XhtmlNode(); div.setValueAsString(theString); } else { div = null; } setDiv(div); }
public static boolean compareDeep(XhtmlNode div1, XhtmlNode div2, boolean allowNull) { if (div1 == null && div2 == null && allowNull) return true; if (div1 == null || div2 == null) return false; return div1.equalsDeep(div2); }