Examples of RuleManager


Examples of client.net.sf.saxon.ce.trans.RuleManager

                }
            }

            // Finish off the lists of template rules

            RuleManager ruleManager = getPreparedStylesheet().getRuleManager();
            ruleManager.computeRankings();

        } catch (RuntimeException err) {
        // if syntax errors were reported earlier, then exceptions may occur during this phase
        // due to inconsistency of data structures. We can ignore these exceptions as they
        // will go away when the user corrects the stylesheet
View Full Code Here

Examples of client.net.sf.saxon.ce.trans.RuleManager

    public void register(Declaration declaration) throws XPathException {
        if (match != null) {
            StylesheetModule module = declaration.getModule();
            int slots = match.allocateSlots(getStaticContext(), getSlotManager(), 0);
            RuleManager mgr = getPreparedStylesheet().getRuleManager();
            for (int i=0; i<modeNames.length; i++) {
                StructuredQName nc = modeNames[i];
                Mode mode = mgr.getMode(nc, true);
                if (prioritySpecified) {
                    mgr.setTemplateRule(match, compiledTemplate, mode,
                        module, priority, ixslPreventDefault, ixslEventProperty);
                } else {
                    mgr.setTemplateRule(match, compiledTemplate, mode,
                        module, Double.NaN, ixslPreventDefault, ixslEventProperty);
                }
                mode.allocatePatternSlots(slots);
            }
View Full Code Here

Examples of client.net.sf.saxon.ce.trans.RuleManager

     */

    public Mode getCurrentMode() {
        Mode m = currentMode;
        if (m == null) {
            RuleManager rm = getController().getRuleManager();
            if (rm != null) {
                return rm.getUnnamedMode();
            } else {
                return null;
            }
        } else {
            return m;
View Full Code Here

Examples of client.net.sf.saxon.ce.trans.RuleManager

     */

    public PreparedStylesheet(Configuration config, CompilerInfo info) {
        super(config);
        nodeFactory = new StyleNodeFactory(config);
        RuleManager rm = new RuleManager();
        rm.setRecoveryPolicy(info.getRecoveryPolicy());
        setRuleManager(rm);
        compilerInfo = info;

    }
View Full Code Here

Examples of net.sf.saxon.trans.RuleManager

            contextItemType = match.getNodeTest();
        }

        if (match != null) {
            int slots = match.allocateSlots(getStaticContext(), getSlotManager(), 0);
            RuleManager mgr = getPrincipalStylesheet().getRuleManager();
            for (int i=0; i<modeNames.length; i++) {
                StructuredQName nc = modeNames[i];
                Mode mode = mgr.getMode(nc, true);
                if (prioritySpecified) {
                    mgr.setHandler(match, compiledTemplate, mode, getPrecedence(), priority);
                } else {
                    mgr.setHandler(match, compiledTemplate, mode, getPrecedence());
                }
                mode.allocatePatternSlots(slots);
                if (mode.isStreamable()) {
                    compiledTemplate.setStreamable(true);
                }
View Full Code Here

Examples of net.sf.saxon.trans.RuleManager

     */

    protected PreparedStylesheet(Configuration config, CompilerInfo info) {
        this.config = config;
        executable = new Executable(config);
        RuleManager rm = new RuleManager();
        rm.setRecoveryPolicy(info.getRecoveryPolicy());
        executable.setRuleManager(rm);
        executable.setHostLanguage(Configuration.XSLT);
        executable.setCollationTable(new CollationMap(config.getCollationMap()));
        executable.setSchemaAware(info.isSchemaAware());
        compilerInfo = info;
View Full Code Here

Examples of net.sf.saxon.trans.RuleManager

        } catch (XPathException e) {
            compileError(e);
        }
        super.allocateSlots(exp);
        if (match!=null) {
            RuleManager mgr = getPrincipalStylesheet().getRuleManager();
            for (int i=0; i<modeNameCodes.length; i++) {
                int nc = modeNameCodes[i];
                Mode mode = mgr.getMode(nc);
                if (nc != Mode.DEFAULT_MODE && nc != Mode.ALL_MODES) {
                    mode.setModeNameCode(nc);
                                // used for tracing only
                }
                if (prioritySpecified) {
                    mgr.setHandler(match, compiledTemplate, mode, getPrecedence(), priority);
                } else {
                    mgr.setHandler(match, compiledTemplate, mode, getPrecedence());
                }
            }
        }

        return null;
View Full Code Here

Examples of net.sf.saxon.trans.RuleManager

    public void setPreparedStylesheet(PreparedStylesheet sheet) {
        Configuration config = sheet.getConfiguration();
        stylesheet = sheet;
        targetNamePool = sheet.getTargetNamePool();
        exec.setConfiguration(config);
        exec.setRuleManager(new RuleManager());
        exec.setLocationMap(locationMap);

        functionLibrary = new FunctionLibraryList();
        functionLibrary.addFunctionLibrary(new SystemFunctionLibrary(config, true));
        functionLibrary.addFunctionLibrary(new StylesheetFunctionLibrary(this, true));
View Full Code Here

Examples of net.sf.saxon.trans.RuleManager

            exp = exp2;
        }

        allocateSlots(exp);
        if (match != null) {
            RuleManager mgr = getPrincipalStylesheet().getRuleManager();
            for (int i=0; i<modeNames.length; i++) {
                StructuredQName nc = modeNames[i];
                Mode mode = mgr.getMode(nc, true);
                if (prioritySpecified) {
                    mgr.setHandler(match, compiledTemplate, mode, getPrecedence(), priority);
                } else {
                    mgr.setHandler(match, compiledTemplate, mode, getPrecedence());
                }
            }

            allocatePatternSlots(match, getSlotManager());
        }
View Full Code Here

Examples of org.jivesoftware.openfire.plugin.rules.RuleManager

        // register with interceptor manager
        Log.info("Packet Filter loaded...");
        interceptorManager.addInterceptor(this);
        pluginManager = manager;
        pf = PacketFilter.getInstance();
        RuleManager ruleManager = new RuleManagerProxy();
        pf.setRuleManager(ruleManager);
       
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.