Package net.sf.saxon.expr

Examples of net.sf.saxon.expr.CollationMap


     *         collation information
     */

    public CollationMap getCollationTable() {
        if (collationTable == null) {
            collationTable = new CollationMap(config);
        }
        return collationTable;
    }
View Full Code Here


     * @return the requested collation, or null if the collation is not found
     */

    public StringCollator getNamedCollation(String name) {
        if (collationTable == null) {
            collationTable = new CollationMap(config);
        }
        return collationTable.getNamedCollation(name);
    }
View Full Code Here

            errorListener = ((StandardErrorListener)errorListener).makeAnother(Configuration.XQUERY);
            ((StandardErrorListener)errorListener).setRecoveryPolicy(Configuration.DO_NOT_RECOVER);
        }
        //collations = new CollationMap(config);
        executable = new Executable(config);
        executable.setCollationTable(new CollationMap(config.getCollationMap()));
        executable.setHostLanguage(Configuration.XQUERY);
        executable.setLocationMap(new LocationMap());
        executable.setSchemaAware((Boolean)config.getConfigurationProperty(FeatureKeys.XQUERY_SCHEMA_AWARE));
        reset();
    }
View Full Code Here

                 errorListener = ((StandardErrorListener)errorListener).makeAnother(Configuration.XQUERY);
                 ((StandardErrorListener)errorListener).setRecoveryPolicy(Configuration.DO_NOT_RECOVER);
             }
             //collations = new CollationMap(config);
             executable = new Executable(config);
             executable.setCollationTable(new CollationMap(config.getCollationMap()));
             executable.setHostLanguage(Configuration.XQUERY);
             executable.setLocationMap(new LocationMap());
             reset();
         } else {
             copyFrom(config.getDefaultStaticQueryContext());
View Full Code Here

        tracing = c.tracing;
        generateCode = c.generateCode;
        isUpdating = c.isUpdating;
        languageVersion = c.languageVersion;
        executable = new Executable(config);
        executable.setCollationTable(new CollationMap(c.executable.getCollationTable()));
        executable.setHostLanguage(Configuration.XQUERY);
        executable.setLocationMap(new LocationMap());
    }
View Full Code Here

     * This method is intended for internal use.
     * @return the CollationMap containing all the collations defined in this static context
     */

    public CollationMap getAllCollations() {
        return new CollationMap(executable.getCollationTable());
    }
View Full Code Here

     * @param collation the StringCollator that implements this collation
     */

    public void setCollation(String name, StringCollator collation) {
        if (exec.getCollationTable() == null) {
            exec.setCollationTable(new CollationMap(getConfiguration()));
        }
        exec.getCollationTable().setNamedCollation(name, collation);
    }
View Full Code Here

        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;
        if (compilerInfo.getErrorListener() == null) {
            compilerInfo.setErrorListener(config.getErrorListener());
        }
View Full Code Here

     * @param collation the StringCollator that implements this collation
     */

    public void setCollation(String name, StringCollator collation) {
        if (exec.getCollationTable() == null) {
            exec.setCollationTable(new CollationMap(getConfiguration()));
        }
        exec.getCollationTable().setNamedCollation(name, collation);
    }
View Full Code Here

        moduleURIResolver = config.getModuleURIResolver();
        if (errorListener instanceof StandardErrorListener) {
            errorListener = ((StandardErrorListener)errorListener).makeAnother(Configuration.XQUERY);
            ((StandardErrorListener)errorListener).setRecoveryPolicy(Configuration.DO_NOT_RECOVER);
        }
        collations = new CollationMap(config);
        reset();
    }
View Full Code Here

TOP

Related Classes of net.sf.saxon.expr.CollationMap

Copyright © 2018 www.massapicom. 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.