Examples of StringValue


Examples of client.net.sf.saxon.ce.value.StringValue

     * @throws XPathException
     */

    private StringCollator getCollator(XPathContext context) throws XPathException {
        if (collationNameExpression != null) {
            StringValue collationValue = (StringValue)collationNameExpression.evaluateItem(context);
            String cname = collationValue.getStringValue();
            URI collationURI;
            try {
                collationURI = new URI(cname, true);
                if (!collationURI.isAbsolute()) {
                    if (baseURI == null) {
View Full Code Here

Examples of client.net.sf.saxon.ce.value.StringValue

     * Get the typed value of this node.
     * Returns the string value, as an instance of xs:string
     */

    public AtomicValue getTypedValue() {
        return new StringValue(getStringValue());
    }
View Full Code Here

Examples of client.net.sf.saxon.ce.value.StringValue

        AtomicValue baseVal = node.getTypedValue();
        if (baseVal instanceof StringValue) {
            int primitiveType = baseVal.getTypeLabel().getPrimitiveType();
            switch (primitiveType) {
                case StandardNames.XS_STRING:
                    return new StringValue(getStringValueCS());
                case StandardNames.XS_ANY_URI:
                    return new AnyURIValue(getStringValueCS());
                default:
                    return new UntypedAtomicValue(getStringValueCS());
            }
View Full Code Here

Examples of client.net.sf.saxon.ce.value.StringValue

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

Examples of client.net.sf.saxon.ce.value.StringValue

                throw err;
            }
        }

        if (stable != null) {
            StringValue stableVal = (StringValue)stable.evaluateItem(context);
            String s = Whitespace.trim(stableVal.getStringValue());
            if (s.equals("yes") || s.equals("no")) {
                // no action
            } else {
                XPathException err = new XPathException("Value of 'stable' on xsl:sort must be 'yes' or 'no'");
                err.setErrorCode("XTDE0030");
View Full Code Here

Examples of client.net.sf.saxon.ce.value.StringValue

//                return null;
//            }
            Expression[] args = new Expression[staticArgs.length + 2];
            System.arraycopy(staticArgs, 0, args, 2, staticArgs.length);
            args[0] = new IXSLFunction("window", new Expression[0]);
            args[1] = StringLiteral.makeLiteral(new StringValue(local));
            return new IXSLFunction("call", args);
        } else {
            return null;
        }
    }
View Full Code Here

Examples of client.net.sf.saxon.ce.value.StringValue

    public CharSequence getStringValueCS() {
        return jsObject.toString();
    }

    public AtomicValue getTypedValue() {
        return new StringValue(getStringValue());
    }
View Full Code Here

Examples of client.net.sf.saxon.ce.value.StringValue

         *
         * @return the typed value of the item. In general this will be a sequence
         */

        public AtomicValue getTypedValue() {
            return new StringValue(getStringValueCS());
        }
View Full Code Here

Examples of client.net.sf.saxon.ce.value.StringValue

         *         values.
         * @since 8.5
         */

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

Examples of client.net.sf.saxon.ce.value.StringValue

     * Get the typed value of this node.
     * Returns the string value, as an instance of xs:string
     */

    public AtomicValue getTypedValue() {
        return new StringValue(getStringValue());
    }
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.