Examples of RoleLocator


Examples of net.sf.saxon.expr.RoleLocator

        select = typeCheck("select", select);
        regex = typeCheck("regex", regex);
        flags = typeCheck("flags", flags);

        try {
            RoleLocator role =
                new RoleLocator(RoleLocator.INSTRUCTION, "xsl:analyze-string/select", 0);
            select = TypeChecker.staticTypeCheck(select, SequenceType.SINGLE_STRING, false, role, getStaticContext());

            role =
                new RoleLocator(RoleLocator.INSTRUCTION, "xsl:analyze-string/regex", 0);
            regex = TypeChecker.staticTypeCheck(regex, SequenceType.SINGLE_STRING, false, role, getStaticContext());

            role =
                new RoleLocator(RoleLocator.INSTRUCTION, "xsl:analyze-string/flags", 0);
            flags = TypeChecker.staticTypeCheck(flags, SequenceType.SINGLE_STRING, false, role, getStaticContext());
        } catch (XPathException err) {
            compileError(err);
        }
View Full Code Here

Examples of net.sf.saxon.expr.RoleLocator

            }
            comp = getCaseOrderComparer(base, caseOrderX);
        }

        if (dataTypeExpression==null || dataTypeExpression instanceof EmptySequence) {
            RoleLocator role =
                new RoleLocator(RoleLocator.INSTRUCTION, "xsl:sort/sort-key", 0);
            sortKey = new CardinalityChecker(sortKey, StaticProperty.ALLOWS_ZERO_OR_ONE, role);
            comp = new AtomicSortComparer(comp);
        } else {
            String dataType = ((StringValue)dataTypeExpression).getStringValue();
            if (dataType.equals("text")) {
View Full Code Here

Examples of net.sf.saxon.expr.RoleLocator

     */

    protected void checkAgainstRequiredType(SequenceType required)
    throws TransformerConfigurationException {
        try {
            RoleLocator role = new RoleLocator(RoleLocator.VARIABLE, getVariableName(), 0);
            if (required!=null) {
                // check that the expression is consistent with the required type
                if (select != null) {
                    select = TypeChecker.staticTypeCheck(select, required, false, role, getStaticContext());
                } else {
View Full Code Here

Examples of net.sf.saxon.expr.RoleLocator

                Block block = new Block();
                compileChildren(exec, block, true);
                select = block;
                try {
                    if (requiredType != null) {
                        RoleLocator role =
                                new RoleLocator(RoleLocator.VARIABLE, getVariableName(), 0);
                        select = TypeChecker.staticTypeCheck(select, requiredType, false, role, getStaticContext());
                    }
                } catch (XPathException err) {
                    err.setLocator(this);
                    compileError(err);
View Full Code Here

Examples of net.sf.saxon.expr.RoleLocator

        if (!(getParentNode() instanceof SQLInsert)) {
            compileError("parent node must be sql:insert");
        }
        select = typeCheck("select", select);
        try {
            RoleLocator role =
                new RoleLocator(RoleLocator.INSTRUCTION, "sql:column/select", 0);
            select = TypeChecker.staticTypeCheck(select,
                        SequenceType.SINGLE_ATOMIC,
                        false, role, getStaticContext());

        } catch (XPathException err) {
View Full Code Here

Examples of org.pdf4j.saxon.expr.RoleLocator


    public void validate() throws XPathException {
        select = typeCheck("select", select);
        try {
            RoleLocator role =
                new RoleLocator(RoleLocator.INSTRUCTION, "sql:column/select", 0);
            select = TypeChecker.staticTypeCheck(select,
                        SequenceType.SINGLE_ATOMIC,
                        false, role, makeExpressionVisitor());

        } catch (XPathException err) {
View Full Code Here

Examples of org.woped.editor.controller.RoleLocator

              }
            }
            if (yend == -1) {
              yend = ystart;
            }
            RoleLocator locationOfCurrentRole = new RoleLocator(name, column, ystart, yend);
            layout.addRole(locationOfCurrentRole);
          }
          return layout;
        }
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.