private AbstractExpression castExprFor (AbstractExpression ae, AtomicType type) { if (type.isAbstract()) { return ae; } return new FunCall (qnameFor(type), valueTypeForItemType(type), ae); }
public boolean isAvailable(SymbolicName.F functionName) { if (functionName.getArity() != 1) { return false; } final String uri = functionName.getComponentName().getURI(); final String localName = functionName.getComponentName().getLocalPart(); final SchemaType type = config.getSchemaType(new StructuredQName("", uri, localName)); if (type == null || type.isComplexType()) { return false; } if (type.isAtomicType() && ((AtomicType) type).isAbstract()) { return false; } return type != AnySimpleType.getInstance(); }
public boolean isAvailable(SymbolicName.F functionName) { if (functionName.getArity() != 1) { return false; } final String uri = functionName.getComponentName().getURI(); final String localName = functionName.getComponentName().getLocalPart(); final SchemaType type = config.getSchemaType(new StructuredQName("", uri, localName)); if (type == null || type.isComplexType()) { return false; } if (type.isAtomicType() && ((AtomicType) type).isAbstract()) { return false; } return type != AnySimpleType.getInstance(); }
throw new SaxonApiException("Requested type is not atomic"); if (((AtomicType) it).isAbstract()) { throw new SaxonApiException("Requested type is an abstract type");
if (type != null) { if (type.isAtomicType()) { if (((AtomicType) type).isAbstract()) { reasons.add("Abstract type used in constructor function: {" + uri + '}' + localName); return null;
if (type != null) { if (type.isAtomicType()) { if (((AtomicType) type).isAbstract()) { reasons.add("Abstract type used in constructor function: {" + uri + '}' + localName); return null;
throw new SaxonApiException("Requested type is not atomic"); if (((AtomicType) it).isAbstract()) { throw new SaxonApiException("Requested type is an abstract type");
if (targetType.isPrimitiveType()) { return convertPrimitive((BuiltInAtomicType)targetType, validate, context); } else if (targetType.isAbstract()) { return new ValidationFailure("Cannot convert to an abstract type"); } else if (targetType.isExternalType()) {
if (targetType.isPrimitiveType()) { return convertPrimitive((BuiltInAtomicType)targetType, validate, context); } else if (targetType.isAbstract()) { return new ValidationFailure("Cannot convert to an abstract type"); } else if (targetType.isExternalType()) {