Package xbird.xquery.dm.value.xsi

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


        return boolean.class;
    }

    public BooleanValue createInstance(String literal, AtomicType srcType, DynamicContext dynEnv)
            throws XQueryException {
        return new BooleanValue(literal);
    }
View Full Code Here


            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

        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

        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

            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

        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

        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

        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

            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

            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

TOP

Related Classes of xbird.xquery.dm.value.xsi.BooleanValue

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.