protected void PrintBody(TextWriter textWriter, StringBuilder sb, String indent)
{
Util.Log("SimpleSchemaType.PrintBody");
int particleCount = _particles.Count;
String indent1 = IndentP(indent);
if (particleCount > 0)
{
bool bPrintBlockElms = /*(particleCount > 1) && */(SdlGenerator.blockDefault != _blockType);
if (bPrintBlockElms)
{
sb.Length = 0;
sb.Append(indent);
sb.Append(schemaBlockBegin[(int) _blockType]);
textWriter.WriteLine(sb);
}
for (int i=0;i<particleCount; i++)
((Particle) _particles[i]).Print(textWriter, sb, IndentP(indent1));
if (bPrintBlockElms)
{
sb.Length = 0;
sb.Append(indent);
sb.Append(schemaBlockEnd[(int) _blockType]);
textWriter.WriteLine(sb);
}
}
int abstractElmCount = _abstractElms.Count;
for (int i=0;i<abstractElmCount; i++)
((IAbstractElement) _abstractElms[i]).Print(textWriter, sb, IndentP(indent));
return;
}