if (schemeExpr == null || ObjUtil.equal(schemeExpr, defValue))
{
return;
}
FormattingWriter writer = (bMultiLine) ? Intrinsic.createPrettyFormatter(null, true)
: new FormattingWriter(new StringWriter(), true);
if (bList)
{
if (!(schemeExpr instanceof Pair))
{
throw new MetadataException("err.meta.service.expectedPairObject",
new Object[]{schemeExpr});
}
for (Pair list = (Pair)schemeExpr; list != null; list = list.getNext())
{
writer.formatUnit(list.getHead(), false);
}
}
else
{
writer.formatUnit(schemeExpr, false);
}
if (sAttrName == null)
{
m_writer.writeCDATA(writer.getOutputString());
}
else
{
m_writer.writeAttribute(sAttrName, writer.getOutputString());
}
}