Package client.net.sf.saxon.ce.value

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


    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

                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

//                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

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

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

         *
         * @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

         *         values.
         * @since 8.5
         */

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

     * 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

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

             } catch (XPathException err) {
                 dynamicError("Invalid system property name. " + err.getMessage(), "XTDE1390", context);
                 return null;
            }
        }
        return new StringValue(getProperty(
                qName.getNamespaceURI(), qName.getLocalName(), context.getConfiguration()));
    }
View Full Code Here

TOP

Related Classes of client.net.sf.saxon.ce.value.StringValue

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.