return this.contentTypeDefinitionVO.getSchemaValue();
}
public void setSchemaValue(String schemaValue)
{
VisualFormatter vf = new VisualFormatter();
Pattern pattern = Pattern.compile("\".*?\"");
Matcher matcher = pattern.matcher(schemaValue);
while (matcher.find())
{
String value = matcher.group();
value = value.substring(1,value.length() - 1);
int indexOfTag = value.indexOf("<");
if(indexOfTag > -1)
{
String newAttributeValue = vf.escapeHTML(value);
if(logger.isInfoEnabled())
logger.info("Replacing:" + value + " with " + newAttributeValue);
schemaValue = StringUtils.replace(schemaValue, "\"" + value + "\"", "\"" + newAttributeValue + "\"");
}
}