throws RelaxException
{
if (! (parent instanceof NameClassPattern) &&
! (parent instanceof ElementPattern) &&
! (parent instanceof AttributePattern)) {
throw new RelaxException(L.l("{0} is not allowed as a child of {1}",
getTagName(), parent.getTagName()));
}
super.setParent(parent);
}