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

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


    public CharSequence getStringValueCS() {
        return value;
    }

    public AtomicValue getTypedValue() {
        return new UntypedAtomicValue(value);
    }
View Full Code Here


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

     * If there is no type annotation, we return the string value, as an instance
     * of xs:untypedAtomic
     */

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

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

     */

    public Expression getStringValueExpression(StaticContext env) {
        if (textOnly) {
            if (constantText != null) {
                return new StringLiteral(new UntypedAtomicValue(constantText));
            } else if (content instanceof ValueOf) {
                return ((ValueOf)content).convertToCastAsString();
            } else {
                StringJoin fn = (StringJoin)SystemFunction.makeSystemFunction(
                        "string-join", new Expression[]{content, new StringLiteral(StringValue.EMPTY_STRING)});
View Full Code Here

TOP

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

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.