Package xbird.xquery.type

Examples of xbird.xquery.type.AtomicType


                return BooleanValue.FALSE;
            }
            itor.closeQuietly();
            if(it instanceof AtomicValue) {
                try {
                    final AtomicType tt = (AtomicType) _targetType.prime();
                    final AtomicValue casteed = ((AtomicValue) it).castAs(tt, dynEnv);
                } catch (XQueryException e) {
                    return BooleanValue.FALSE;
                }
                return BooleanValue.TRUE;
View Full Code Here


                itor.closeQuietly();
                reportError("err:FORG0001", "Result of atomization is a sequence of more than one items");
            }
            itor.closeQuietly();
            if(it instanceof AtomicValue) {
                final AtomicType tt = (AtomicType) _targetType.prime();
                final AtomicValue retv = ((AtomicValue) it).castAs(tt, dynEnv);
                //retv.restrictType(tt);
                return retv;
            } else {
                reportError("err:XPTY0004", "Result item of atomization was not AtomicValue");
View Full Code Here

            throws XQueryException {
        final int ttid = trgType.getTypeId();
        if(ttid == TypeTable.NOTATION_TID || ttid == TypeTable.ANY_ATOM_TID) {
            throw new StaticError("err:XPST0080", "Illegal target type: " + trgType);
        }
        final AtomicType type = _type;
        if(type == trgType) {
            return (T) this;
        }
        final boolean mayCastable = TypeTable.isMayCastable(type, trgType);
        if(mayCastable) {
View Full Code Here

                return new XString(item.stringValue());
            }
            final AtomicValue it = (item instanceof AtomicValue) ? (AtomicValue) item
                    : new XString(item.stringValue());
            if(t instanceof AtomicType) {
                final AtomicType trgType = (AtomicType) t;
                final AtomicValue converted = it.castAs(trgType, dynEnv);
                return converted;
            }
            return it;
        }
View Full Code Here

TOP

Related Classes of xbird.xquery.type.AtomicType

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.