Examples of BooleanValue


Examples of xbird.xquery.dm.value.xsi.BooleanValue

            throws XQueryException {
        final int ttid = trgType.getTypeId();
        final AtomicValue v;
        switch(ttid) {
            case TypeTable.BOOLEAN_TID:
                v = new BooleanValue(value != 0);
                break;
            case TypeTable.INTEGER_TID:
            case TypeTable.NUMERIC_TID:
                v = this;
                break;
View Full Code Here

Examples of xbird.xquery.dm.value.xsi.BooleanValue

        final int ttid = trgType.getTypeId();
        final AtomicValue v;
        switch(ttid) {
            case TypeTable.BOOLEAN_TID:
                final boolean ebv = (value != 0.0 && !Double.isNaN(value));
                v = new BooleanValue(ebv);
                break;
            case TypeTable.DOUBLE_TID:
            case TypeTable.NUMERIC_TID:
                v = this;
                break;
View Full Code Here

Examples of xbird.xquery.dm.value.xsi.BooleanValue

        final int ttid = trgType.getTypeId();
        final AtomicValue v;
        switch(ttid) {
            case TypeTable.BOOLEAN_TID:
                final boolean ebv = (value != 0.0 && !Float.isNaN(value));
                v = new BooleanValue(ebv);
                break;
            case TypeTable.FLOAT_TID:
            case TypeTable.NUMERIC_TID:
                v = this;
                break;
View Full Code Here

Examples of xbird.xquery.dm.value.xsi.BooleanValue

            throws XQueryException {
        final int ttid = trgType.getTypeId();
        final AtomicValue v;
        switch(ttid) {
            case TypeTable.BOOLEAN_TID:
                v = new BooleanValue(value.signum() != 0);
                break;
            case TypeTable.DECIMAL_TID:
            case TypeTable.NUMERIC_TID:
                v = this;
                break;
View Full Code Here

Examples of xbird.xquery.dm.value.xsi.BooleanValue

        return super.optimize(ctxt);
    }

    public Sequence<? extends Item> eval(Sequence<? extends Item> contextSeq, DynamicContext dynEnv)
            throws XQueryException {
        final BooleanValue v = effectiveBooleanValue(contextSeq, dynEnv) ? BooleanValue.TRUE
                : BooleanValue.FALSE;
        return v;
    }
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.