*/
public void addChild(Pattern child)
throws RelaxException
{
if (child instanceof DataPattern)
throw new RelaxException(L.l("<data> or <string> may not be used with interleave. Use <text> instead."));
if (child instanceof EmptyPattern)
throw new RelaxException(L.l("<empty> is not allowed as a child of <interleave>"));
child.setParent(this);
child.setElementName(getElementName());
if (child instanceof InterleavePattern) {