Examples of asAtomic()


Examples of net.sf.saxon.type.ConversionResult.asAtomic()

          if (value instanceof Item) {
            Item i = (Item)value;
            BuiltInAtomicType bat = typeMapping.get(proColumn.getSymbol().getType());
            if (bat != null) {
              ConversionResult cr = StringValue.convertStringToBuiltInType(i.getStringValueCS(), bat, null);
              value = cr.asAtomic();
              value = Value.convertToJava((AtomicValue)value);
              if (value instanceof Item) {
                value = ((Item)value).getStringValue();
              }
            } else {
View Full Code Here

Examples of net.sf.saxon.type.ConversionResult.asAtomic()

        } else {
            Configuration config = ((ConstructedItemType)type).getProcessor().getUnderlyingConfiguration();
            ConversionResult result = new StringValue(lexicalForm).convert(
                    (AtomicType)it, true, config.getConversionContext());
            try {
                setValue(result.asAtomic());
            } catch (ValidationException e) {
                throw new SaxonApiException(e);
            }
        }
    }
View Full Code Here

Examples of net.sf.saxon.type.ConversionResult.asAtomic()

            throw new SaxonApiException("Requested type is not atomic");
        }
        Configuration config = type.getProcessor().getUnderlyingConfiguration();
        ConversionResult result = new StringValue(value).convert((AtomicType)it, true, config.getConversionContext());
        try {
            return (XdmItem)wrap(result.asAtomic());
        } catch (ValidationException e) {
            throw new SaxonApiException(e);
        }
    }
View Full Code Here

Examples of net.sf.saxon.type.ConversionResult.asAtomic()

        }
        Configuration config = type.getProcessor().getUnderlyingConfiguration();
        ConversionResult result = new StringValue(lexicalForm).convert(
                (AtomicType)it, true, config.getConversionContext());
        try {
            setValue(result.asAtomic());
        } catch (ValidationException e) {
            throw new SaxonApiException(e);
        }
    }
View Full Code Here

Examples of org.pdf4j.saxon.type.ConversionResult.asAtomic()

        }
        Configuration config = type.getProcessor().getUnderlyingConfiguration();
        ConversionResult result = new StringValue(lexicalForm).convert(
                (AtomicType)it, true, config.getConversionContext());
        try {
            setValue(result.asAtomic());
        } catch (ValidationException e) {
            throw new SaxonApiException(e);
        }
    }
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.