Examples of matchesItem()


Examples of net.sf.saxon.type.AtomicType.matchesItem()

        ItemType itemType = ((SaxonXQItemType)type).getSaxonItemType();
        if (!itemType.isAtomicType()) {
            throw new XQException("Target type is not atomic");
        }
        AtomicType at = (AtomicType)itemType;
        if (!at.matchesItem(value, true, getConfiguration())) {
            throw new XQException("value is invalid for specified type");
        }
    }

View Full Code Here

Examples of net.sf.saxon.type.ItemType.matchesItem()

            final ItemType type = resultType.getPrimaryType();
            if (type != AnyItemType.getInstance()) {
                result = new ItemMappingIterator(result,
                        new ItemMappingFunction() {
                            public Item map(Item item) throws XPathException {
                                if (!type.matchesItem(item, false, config)) {
                                    String msg = "Item returned by integrated function " +
                                        getFunctionName().getDisplayName() +
                                            "() is not of declared item type. Actual type is " +
                                            Value.asValue(item).getItemType(config.getTypeHierarchy()).toString(config.getNamePool()) +
                                            "; expected type is " + type.toString(config.getNamePool());
View Full Code Here

Examples of org.pdf4j.saxon.type.AtomicType.matchesItem()

        ItemType itemType = ((SaxonXQItemType)type).getSaxonItemType();
        if (!itemType.isAtomicType()) {
            throw new XQException("Target type is not atomic");
        }
        AtomicType at = (AtomicType)itemType;
        if (!at.matchesItem(value, true, getConfiguration())) {
            throw new XQException("value is invalid for specified type");
        }
    }

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.