/** * Convert a string to the target type of this converter. * * @param input the string to be converted * @return either an {@link net.sf.saxon.value.AtomicValue} of the appropriate type for this converter (if conversion * succeeded), or a {@link net.sf.saxon.type.ValidationFailure} if conversion failed. */ @Override public ConversionResult convertString( CharSequence input) { try { return targetType.getTypedValue(input, null, rules).head(); } catch (ValidationException err) { return err.getValidationFailure(); } } }
/** * Convert a string to the target type of this converter. * * @param input the string to be converted * @return either an {@link net.sf.saxon.value.AtomicValue} of the appropriate type for this converter (if conversion * succeeded), or a {@link net.sf.saxon.type.ValidationFailure} if conversion failed. */ @Override public ConversionResult convertString( CharSequence input) { try { return targetType.getTypedValue(input, null, rules).head(); } catch (ValidationException err) { return err.getValidationFailure(); } } }
AtomicSequence as = type.getTypedValue(attValue, null, getConfiguration().getConversionRules()); for (AtomicValue v : as) { if (v.getItemType().isIdRefType()) {
AtomicSequence as = type.getTypedValue(attValue, null, getConfiguration().getConversionRules()); for (AtomicValue v : as) { if (v.getItemType().isIdRefType()) {
if (item instanceof UntypedAtomicValue) { try { return ((SimpleType) requiredItemType).getTypedValue( item.getStringValueCS(), null, rules).head(); } catch (ValidationException ve) {
if (item instanceof UntypedAtomicValue) { try { return ((SimpleType) requiredItemType).getTypedValue( item.getStringValueCS(), null, rules).head(); } catch (ValidationException ve) {