public int write (int index, String indent, String name, SymtabEntry entry, PrintWriter stream)
{
SequenceEntry seq = (SequenceEntry)entry;
if (seq.maxSize () != null)
{
stream.println (indent + "if (" + name + ".length > (" + Util.parseExpression (seq.maxSize ()) + "))");
stream.println (indent + " throw new org.omg.CORBA.MARSHAL (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);");
}
stream.println (indent + "ostream.write_long (" + name + ".length);");
if (entry.type () instanceof PrimitiveEntry)
// <d61961> Check for CORBA::Principal, too.