Package org.exist.xquery.util

Examples of org.exist.xquery.util.Error


    public void analyze(AnalyzeContextInfo contextInfo) throws XPathException {
        contextInfo.setParent(this);
        expression.analyze(contextInfo);
       
        expression = new DynamicCardinalityCheck(context, type.getCardinality(), expression,
            new Error("XPDY0050", type.toString()));
        expression = new DynamicTypeCheck(context, type.getPrimaryType(), expression);
    }
View Full Code Here


    }

    public void setContentExpr(PathExpr path) {
        path.setUseStaticContext(true);
        final Expression expr = new DynamicCardinalityCheck(context, Cardinality.EXACTLY_ONE, path,
                new Error(Error.FUNC_PARAM_CARDINALITY));
        this.content = expr;
    }
View Full Code Here

    }

    public void setNameExpr(Expression expr) {
        expr = new Atomize(context, expr);
        expr = new DynamicCardinalityCheck(context, Cardinality.ZERO_OR_ONE, expr,
                new Error(Error.FUNC_PARAM_CARDINALITY));
        this.qnameExpr = expr;
    }
View Full Code Here

  }
 
  @Override
  public void add(PathExpr pathExpr) {
    Expression expr = new DynamicCardinalityCheck(context, Cardinality.ZERO_OR_ONE, pathExpr,
            new Error(Error.FUNC_PARAM_CARDINALITY));
        if (!Type.subTypeOf(expr.returnsType(), Type.ATOMIC))
            {expr = new Atomize(context, expr);}
    super.add(expr);
  }
View Full Code Here

TOP

Related Classes of org.exist.xquery.util.Error

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.