private String getComparableValue() { String stringValue = getValue(); if (stringValue == null) { stringValue = ""; } if (getContentMode() == ContentMode.HTML || getContentMode() == ContentMode.XML) { return stripTags(stringValue); } else { return stringValue; } }
String content = getValue(); if (content != null) { switch (getContentMode()) { case TEXT: case PREFORMATTED: default: throw new IllegalStateException( "ContentMode " + getContentMode() + " is not supported by writeDesign");