Package xbird.xquery

Examples of xbird.xquery.StaticError


    }

    public static Type get(QualifiedName type) throws StaticError {
        final Type t = types.get(type.toString());
        if(t == null) {
            throw new StaticError("err:XPST0051", "Type not found: " + type.toString());
        }
        return t;
    }
View Full Code Here


    }

    public static Type get(final String type) throws StaticError {
        final Type resolved = safeGet(type);
        if(resolved == null) {
            throw new StaticError("err:XPST0051", "Type not found: " + type.toString());
        }
        return resolved;
    }
View Full Code Here

    public static AtomicType createAtomicType(QualifiedName itemName, StaticContext ctxt)
            throws StaticError {
        final Type t = ctxt.getSchemaType(itemName);
        if(!(t instanceof AtomicType)) {
            throw new StaticError("err:XPST0051", "Type not found: " + itemName.toString());
        }
        return (AtomicType) t;
    }
View Full Code Here

    public XQExpression staticAnalysis(StaticContext statEnv) throws XQueryException {
        if(!_analyzed) {
            this._analyzed = true;
            final Type primeType = _targetType.prime();
            if(primeType == NOTATIONType.NOTATION || primeType == AtomicType.ANY_ATOMIC_TYPE) {
                throw new StaticError("err:XPST0080", "Illegal target type: " + _targetType);
            }
            this._inputExpr = _inputExpr.staticAnalysis(statEnv);
            this._type = BooleanType.BOOLEAN;
        }
        return this;
View Full Code Here

        if(!_analyzed) {
            this._analyzed = true;
            final Type targetType = _targetType;
            final Type primeType = targetType.prime();
            if(primeType == NOTATIONType.NOTATION || primeType == AtomicType.ANY_ATOMIC_TYPE) {
                throw new StaticError("err:XPST0080", "Illegal target type: " + _targetType);
            }
            this._inputExpr = _inputExpr.staticAnalysis(statEnv);
            final Type inputType = _inputExpr.getType();
            if(inputType == targetType) {
                return _inputExpr;
View Full Code Here

TOP

Related Classes of xbird.xquery.StaticError

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.