Examples of UntypedAtomicValue


Examples of net.sf.saxon.value.UntypedAtomicValue

     *          an element with complex content
     * @since 8.4
     */

    public SequenceIterator getTypedValue() throws XPathException {
        return SingletonIterator.makeIterator(new UntypedAtomicValue(getStringValueCS()));
    }
View Full Code Here

Examples of net.sf.saxon.value.UntypedAtomicValue

                XPathExpression expr = xpe.createExpression(argvalue);
                XPathDynamicContext context = expr.createDynamicContext(null);
                ValueRepresentation val = SequenceExtent.makeSequenceExtent(expr.iterate(context));
                dynamicEnv.setParameter(argname.substring(1), val);               
            } else {
                dynamicEnv.setParameter(argname, new UntypedAtomicValue(argvalue));
            }
        }

        if (additionalSchemas != null) {
            loadAdditionalSchemas(config, additionalSchemas);
View Full Code Here

Examples of net.sf.saxon.value.UntypedAtomicValue

     *         atomic values.
     * @since 8.5
     */

    public Value atomize() throws XPathException {
        return new UntypedAtomicValue(getStringValueCS());
    }
View Full Code Here

Examples of net.sf.saxon.value.UntypedAtomicValue

     *          an element with complex content
     * @since 8.4
     */

    public SequenceIterator getTypedValue() throws XPathException {
        return SingletonIterator.makeIterator(new UntypedAtomicValue(getStringValueCS()));
    }
View Full Code Here

Examples of net.sf.saxon.value.UntypedAtomicValue

                XPathExpression expr = xpe.createExpression(argvalue);
                XPathDynamicContext context = expr.createDynamicContext(null);
                ValueRepresentation val = SequenceExtent.makeSequenceExtent(expr.iterate(context));
                controller.setParameter(argname.substring(1), val);
            } else {
                controller.setParameter(argname, new UntypedAtomicValue(argvalue));
            }
        }
    }
View Full Code Here

Examples of net.sf.saxon.value.UntypedAtomicValue

        } catch (ArrayIndexOutOfBoundsException err) {
            throw new NullPointerException();
        }
        switch (kind) {
            case Type.TEXT: {
                return new UntypedAtomicValue(TinyTextImpl.getStringValue(tree, nextNodeNr));
            }
            case Type.WHITESPACE_TEXT: {
                return new UntypedAtomicValue(WhitespaceTextImpl.getStringValueCS(tree, nextNodeNr));
            }
            case Type.ELEMENT: {
                return tree.getTypedValueOfElement(nextNodeNr);
            }
            case Type.COMMENT:
View Full Code Here

Examples of net.sf.saxon.value.UntypedAtomicValue

        switch (getNodeKind()) {
            case Type.COMMENT:
            case Type.PROCESSING_INSTRUCTION:
                return new StringValue(getStringValueCS());
            default:
                return new UntypedAtomicValue(getStringValueCS());
        }
    }
View Full Code Here

Examples of net.sf.saxon.value.UntypedAtomicValue

    public SequenceIterator getTypedValue(Configuration config) throws XPathException {
        int annotation = getTypeAnnotation();
        if (annotation==-1) {
            return SingletonIterator.makeIterator(
                                new UntypedAtomicValue(getStringValue()));
        } else {
            SchemaType stype = config.getSchemaType(annotation);
            if (stype == null) {
                String typeName = getNamePool().getDisplayName(annotation);
                throw new DynamicError("Unknown type annotation " +
View Full Code Here

Examples of net.sf.saxon.value.UntypedAtomicValue

    */

    public SequenceIterator getTypedValue(Configuration config) throws XPathException {
        if (typeAnnotation == -1) {
            return SingletonIterator.makeIterator(
                    new UntypedAtomicValue(stringValue));
        } else {
            SchemaType stype = config.getSchemaType(typeAnnotation);
            if (stype == null) {
                String typeName = namePool.getDisplayName(typeAnnotation);
                throw new IllegalStateException("Unknown type annotation " +
View Full Code Here

Examples of net.sf.saxon.value.UntypedAtomicValue

                    // there can only be one match, so abandon the search after this node
                    index = Integer.MAX_VALUE;
                }
                if (isAtomizing() && typeCode==-1) {
                    // optimization: avoid creating the Node object if not needed
                    current = new UntypedAtomicValue(doc.attValue[node]);
                    return current;
                } else {
                    current = doc.getAttributeNode(node);
                    return current;
                }
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.