Package xbird.xquery.type

Examples of xbird.xquery.type.Type


        super(SYMBOL, TypeRegistry.safeGet("node()*"));
    }

    protected FunctionSignature[] signatures() {
        final FunctionSignature[] s = new FunctionSignature[2];
        Type stra = TypeRegistry.safeGet("xs:string*");
        s[0] = new FunctionSignature(getName(), new Type[] { stra });
        s[1] = new FunctionSignature(getName(), new Type[] { stra,
                NodeType.ANYNODE });
        return s;
    }
View Full Code Here


            Item sec = argv.getItem(1);
            if(sec.isEmpty()) {
                cal.setTimezone(DatatypeConstants.FIELD_UNDEFINED);
                return arg;
            } else {
                Type secType = sec.getType();
                if(!TypeUtil.subtypeOf(secType, DayTimeDurationType.DAYTIME_DURATION)) {
                    throw new IllegalStateException("second argument is expected to be xdt:dayTimeDuration, but was "
                            + secType);
                }
                DurationValue dv = (DurationValue) sec;
View Full Code Here

        super(SYMBOL, TypeRegistry.safeGet("xs:anyAtomicType*"));
    }

    protected FunctionSignature[] signatures() {
        final FunctionSignature[] s = new FunctionSignature[2];
        Type anyatom = TypeRegistry.safeGet("xs:anyAtomicType*");
        s[0] = new FunctionSignature(getName(), new Type[] { anyatom });
        s[1] = new FunctionSignature(getName(), new Type[] { anyatom, StringType.STRING });
        return s;
    }
View Full Code Here

            super(SYMBOL, BooleanType.BOOLEAN);
        }

        protected FunctionSignature[] signatures() {
            final FunctionSignature[] s = new FunctionSignature[2];
            Type strq = TypeRegistry.safeGet("xs:string?");
            s[0] = new FunctionSignature(getName(), new Type[] { strq, strq });
            s[1] = new FunctionSignature(getName(), new Type[] { strq, strq, StringType.STRING });
            return s;
        }
View Full Code Here

            super(SYMBOL, BooleanType.BOOLEAN);
        }

        protected FunctionSignature[] signatures() {
            final FunctionSignature[] s = new FunctionSignature[2];
            Type strq = TypeRegistry.safeGet("xs:string?");
            s[0] = new FunctionSignature(getName(), new Type[] { strq, strq });
            s[1] = new FunctionSignature(getName(), new Type[] { strq, strq, StringType.STRING });
            return s;
        }
View Full Code Here

            super(SYMBOL, BooleanType.BOOLEAN);
        }

        protected FunctionSignature[] signatures() {
            final FunctionSignature[] s = new FunctionSignature[2];
            Type strq = TypeRegistry.safeGet("xs:string?");
            s[0] = new FunctionSignature(getName(), new Type[] { strq, strq });
            s[1] = new FunctionSignature(getName(), new Type[] { strq, strq, StringType.STRING });
            return s;
        }
View Full Code Here

            super(SYMBOL, StringType.STRING);
        }

        protected FunctionSignature[] signatures() {
            final FunctionSignature[] s = new FunctionSignature[2];
            Type strq = TypeRegistry.safeGet("xs:string?");
            s[0] = new FunctionSignature(getName(), new Type[] { strq, strq });
            s[1] = new FunctionSignature(getName(), new Type[] { strq, strq, StringType.STRING });
            return s;
        }
View Full Code Here

            super(SYMBOL, StringType.STRING);
        }

        protected FunctionSignature[] signatures() {
            final FunctionSignature[] s = new FunctionSignature[2];
            Type strq = TypeRegistry.safeGet("xs:string?");
            s[0] = new FunctionSignature(getName(), new Type[] { strq, strq });
            s[1] = new FunctionSignature(getName(), new Type[] { strq, strq, StringType.STRING });
            return s;
        }
View Full Code Here

    }

    public ElementTest(QualifiedName elementName, QualifiedName typeName, boolean isNillable) {
        super(NodeKind.ELEMENT);
        if(typeName != null) {
            final Type t = TypeRegistry.safeGet(typeName);
            if(t == null) {
                throw new XQRTException("err:XPST0001", "type '" + typeName + "' not resolved");
            }
            this.type = t;
        }
View Full Code Here

        return elementName;
    }

    @Override
    public int getXQJBaseType() throws XQException {
        final Type basetype = type;
        if(basetype == null) {
            throw new XQException("Illegal item kind: " + toString(), "err:XQJxxxx");
        }
        return basetype.getXQJBaseType();
    }
View Full Code Here

TOP

Related Classes of xbird.xquery.type.Type

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.