com.xmlcalabash.runtime.XGroup Maven / Gradle / Ivy
The newest version!
package com.xmlcalabash.runtime;
import com.xmlcalabash.core.XProcRuntime;
import com.xmlcalabash.model.Step;
import com.xmlcalabash.util.XProcMessageListenerHelper;
import net.sf.saxon.s9api.SaxonApiException;
/**
* Created by IntelliJ IDEA.
* User: ndw
* Date: Oct 13, 2008
* Time: 7:23:25 PM
* To change this template use File | Settings | File Templates.
*/
public class XGroup extends XCompoundStep {
public XGroup(XProcRuntime runtime, Step step, XCompoundStep parent) {
super(runtime, step, parent);
}
@Override
protected void doRun() throws SaxonApiException {
if (!(parent instanceof XTry)) {
inScopeOptions = parent.getInScopeOptions();
XProcMessageListenerHelper.openStep(runtime, this);
try {
super.doRun();
} finally {
runtime.getMessageListener().closeStep();
}
} else
super.doRun();
}
}