Examples of UntypedAtomicValue


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

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

        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.UntypedAtomicValue

     * 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

Examples of client.net.sf.saxon.ce.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 client.net.sf.saxon.ce.value.UntypedAtomicValue

     */

    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

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

        name = name.substring(1); // silently fixup harmless user bug
      }
      Object value = entry.getValue();
     
      if (value instanceof CharSequence) {
        value = new UntypedAtomicValue((CharSequence) value);
      }
      else if (value instanceof Node) {
        value = wrap((Node)value, docWrappers);
        // pass xml document(s) such that saxon understands
        // available to query via
View Full Code Here

Examples of net.sf.saxon.value.UntypedAtomicValue

     */

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

Examples of net.sf.saxon.value.UntypedAtomicValue

        if ((annotation & NodeInfo.IS_DTD_TYPE) != 0) {
            annotation = StandardNames.XS_UNTYPED_ATOMIC;
        }
        annotation &= NamePool.FP_MASK;
        if (annotation == -1 || annotation == StandardNames.XS_UNTYPED_ATOMIC || annotation == StandardNames.XS_UNTYPED) {
            return SingletonIterator.makeIterator(new UntypedAtomicValue(getStringValueCS()));
        } else {
            SchemaType stype = getConfiguration().getSchemaType(annotation);
            if (stype == null) {
                String typeName;
                try {
View Full Code Here

Examples of net.sf.saxon.value.UntypedAtomicValue

        int annotation = getTypeAnnotation();
        if ((annotation & NodeInfo.IS_DTD_TYPE) != 0) {
            annotation = StandardNames.XS_UNTYPED_ATOMIC;
        }
        if (annotation == -1 || annotation == StandardNames.XS_UNTYPED_ATOMIC || annotation == StandardNames.XS_UNTYPED) {
            return new UntypedAtomicValue(getStringValueCS());
        } else {
            SchemaType stype = getConfiguration().getSchemaType(annotation);
            if (stype == null) {
                String typeName = getNamePool().getDisplayName(annotation);
                throw new XPathException("Unknown type annotation " +
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.