/** * * NOTE: This step only works because of an ugly hack in XAtomicStep that turns the * in-scope options/variables into parameters for this step. * * @author ndw */ @XMLCalabash( name = "p:in-scope-names", type = "{http://www.w3.org/ns/xproc}in-scope-names") public class InScopeNames extends Parameters { /* Creates a new instance of Count */ public InScopeNames(XProcRuntime runtime, XAtomicStep step) { super(runtime,step); } public void run() throws SaxonApiException { super.run(); } }
private void findStepClasses() { Iterable<Class<?>> classes = findClasses(XMLCalabash.class); for (Class<?> klass : classes) { XMLCalabash annotation = klass.getAnnotation(XMLCalabash.class); for (String clarkName: annotation.type().split("\\s+")) { try { QName name = QName.fromClarkName(clarkName); logger.trace("Found step type annotation: " + clarkName); if (implementations.containsKey(name)) { logger.debug("Ignoring step type annotation for configured step: " + clarkName); } implementations.put(name, klass); } catch (IllegalArgumentException iae) { logger.debug("Failed to parse step annotation type: " + clarkName); } } } }
private void findStepClasses() { Iterable<Class<?>> classes = ClassFilter.only().from(ClassIndex.getAnnotated(XMLCalabash.class)); for (Class<?> klass : classes) { XMLCalabash annotation = klass.getAnnotation(XMLCalabash.class); for (String clarkName: annotation.type().split("\\s+")) { try { QName name = QName.fromClarkName(clarkName); logger.trace("Found step type annotation: " + clarkName); if (implementations.containsKey(name)) { logger.debug("Ignoring step type annotation for configured step: " + clarkName); } implementations.put(name, klass); } catch (IllegalArgumentException iae) { logger.debug("Failed to parse step annotation type: " + clarkName); } } } }
/** * * NOTE: This step only works because of an ugly hack in XAtomicStep that turns the * in-scope options/variables into parameters for this step. * * @author ndw */ @XMLCalabash( name = "p:in-scope-names", type = "{http://www.w3.org/ns/xproc}in-scope-names") public class InScopeNames extends Parameters { /* Creates a new instance of Count */ public InScopeNames(XProcRuntime runtime, XAtomicStep step) { super(runtime,step); } public void run() throws SaxonApiException { super.run(); } }
@XMLCalabash( name = "cx:compress", type = "{http://xmlcalabash.com/ns/extensions}compress " +
@XMLCalabash( name = "cx:compress", type = "{http://xmlcalabash.com/ns/extensions}compress " +
@XMLCalabash( name = "p:sink", type = "{http://www.w3.org/ns/xproc}sink")
@XMLCalabash( name = "p:sink", type = "{http://www.w3.org/ns/xproc}sink")
@XMLCalabash( name = "p:identity", type = "{http://www.w3.org/ns/xproc}identity")
@XMLCalabash( name = "pos:cwd", type = "{http://exproc.org/proposed/steps/os}cwd " +
@XMLCalabash( name = "pos:cwd", type = "{http://exproc.org/proposed/steps/os}cwd " +
@XMLCalabash( name = "p:identity", type = "{http://www.w3.org/ns/xproc}identity")
@XMLCalabash( name = "pos:info", type = "{http://exproc.org/proposed/steps/os}info " +
@XMLCalabash( name = "p:load", type = "{http://www.w3.org/ns/xproc}load")
@XMLCalabash( name = "p:filter", type = "{http://www.w3.org/ns/xproc}filter")
@XMLCalabash( name = "p:filter", type = "{http://www.w3.org/ns/xproc}filter")
@XMLCalabash( name = "cx:namespace-delete", type = "{http://xmlcalabash.com/ns/extensions}namespace-delete")
@XMLCalabash( name = "pos:env", type = "{http://exproc.org/proposed/steps/os}env " +
@XMLCalabash( name = "cx:collection-manager", type = "{http://xmlcalabash.com/ns/extensions}collection-manager")
@XMLCalabash( name = "pos:info", type = "{http://exproc.org/proposed/steps/os}info " +