/** * Returns the base type that this type inherits from. * If this type is a Simpletype that is a built in primitive type then null is returned. * * @return the base type. */ /*@NotNull*/ public SchemaType getBaseType() { return AnySimpleType.getInstance(); }
/** * Find an attribute use within this complex type definition having a given attribute name * (identified by fingerprint), and return the schema type associated with that attribute. * If there is no such attribute use, return null. If the fingerprint matches an attribute wildcard, * return the type of the global attribute declaration with the given name if one exists, or AnySimpleType * if none exists and lax validation is permitted by the wildcard. * * @param attributeName Identifies the name of the child element within this content model */ /*@NotNull*/ public SimpleType getAttributeUseType(StructuredQName attributeName) { return AnySimpleType.getInstance(); }
/** * Returns the base type that this type inherits from. * If this type is a Simpletype that is a built in primitive type then null is returned. * @return the base type. */ public SchemaType getBaseType() { return AnySimpleType.getInstance(); }
/** * Returns the base type that this type inherits from. * If this type is a Simpletype that is a built in primitive type then null is returned. * * @return the base type. */ /*@NotNull*/ public SchemaType getBaseType() { return AnySimpleType.getInstance(); }
/** * Returns the base type that this type inherits from. * If this type is a Simpletype that is a built in primitive type then null is returned. * @return the base type. */ public SchemaType getBaseType() { return AnySimpleType.getInstance(); }
/** * Get the base type * * @return AnyType */ /*@NotNull*/ public SchemaType getBaseType() { return AnySimpleType.getInstance(); }
/** * Get the built-in type from which this type is derived by restriction * * @return the built-in type from which this type is derived by restriction. This will not necessarily * be a primitive type. */ public SchemaType getBuiltInBaseType() { return AnySimpleType.getInstance(); }
/** * Returns the base type that this type inherits from. This method can be used to get the * base type of a type that is known to be valid. * If this type is a Simpletype that is a built in primitive type then null is returned. * * @return the base type, or null if this is xs:anyType (the root of the type hierarchy) */ public SchemaType getBaseType() { return AnySimpleType.getInstance(); }
/** * Returns the base type that this type inherits from. This method can be used to get the * base type of a type that is known to be valid. * If this type is a Simpletype that is a built in primitive type then null is returned. * * @return the base type. * @throws IllegalStateException if this type is not valid. */ /*@NotNull*/ public SchemaType getKnownBaseType() throws IllegalStateException { return AnySimpleType.getInstance(); }
/** * Returns the base type that this type inherits from. This method can be used to get the * base type of a type that is known to be valid. * If this type is a Simpletype that is a built in primitive type then null is returned. * * @return the base type. * @throws IllegalStateException if this type is not valid. */ public SchemaType getKnownBaseType() throws IllegalStateException { return AnySimpleType.getInstance(); }
/** * Returns the base type that this type inherits from. This method can be used to get the * base type of a type that is known to be valid. * If this type is a Simpletype that is a built in primitive type then null is returned. * * @return the base type. * @throws IllegalStateException if this type is not valid. */ /*@NotNull*/ public SchemaType getKnownBaseType() throws IllegalStateException { return AnySimpleType.getInstance(); }
/** * Returns the base type that this type inherits from. This method can be used to get the * base type of a type that is known to be valid. * If this type is a Simpletype that is a built in primitive type then null is returned. * * @return the base type. * @throws IllegalStateException if this type is not valid. */ public SchemaType getKnownBaseType() throws IllegalStateException { return AnySimpleType.getInstance(); }
/** * Find an attribute use within this complex type definition having a given attribute name * (identified by fingerprint), and return the schema type associated with that attribute. * If there is no such attribute use, return null. If the fingerprint matches an attribute wildcard, * return the type of the global attribute declaration with the given name if one exists, or AnySimpleType * if none exists and lax validation is permitted by the wildcard. * * @param fingerprint Identifies the name of the child element within this content model */ public SchemaType getAttributeUseType(int fingerprint) { return AnySimpleType.getInstance(); }
/** * Get the base type * * @return AnyType */ /*@NotNull*/ public SchemaType getBaseType() { return AnySimpleType.getInstance(); }
/** * Get the built-in type from which this type is derived by restriction * * @return the built-in type from which this type is derived by restriction. This will not necessarily * be a primitive type. */ public SchemaType getBuiltInBaseType() { return AnySimpleType.getInstance(); }
/** * Returns the base type that this type inherits from. This method can be used to get the * base type of a type that is known to be valid. * If this type is a Simpletype that is a built in primitive type then null is returned. * * @return the base type, or null if this is xs:anyType (the root of the type hierarchy) */ public SchemaType getBaseType() { return AnySimpleType.getInstance(); }
/** * Find an attribute use within this complex type definition having a given attribute name * (identified by fingerprint), and return the schema type associated with that attribute. * If there is no such attribute use, return null. If the fingerprint matches an attribute wildcard, * return the type of the global attribute declaration with the given name if one exists, or AnySimpleType * if none exists and lax validation is permitted by the wildcard. * * @param fingerprint Identifies the name of the child element within this content model */ public SchemaType getAttributeUseType(int fingerprint) { return AnySimpleType.getInstance(); }
/** * Find an attribute use within this complex type definition having a given attribute name * (identified by fingerprint), and return the schema type associated with that attribute. * If there is no such attribute use, return null. If the fingerprint matches an attribute wildcard, * return the type of the global attribute declaration with the given name if one exists, or AnySimpleType * if none exists and lax validation is permitted by the wildcard. * * @param attributeName Identifies the name of the child element within this content model */ /*@NotNull*/ public SimpleType getAttributeUseType(StructuredQName attributeName) { return AnySimpleType.getInstance(); }
/** * Check that this type is validly derived from a given type * * @param type the type from which this type is derived * @param block the derivations that are blocked by the relevant element declaration * @throws net.sf.saxon.type.SchemaException * if the derivation is not allowed */ public void checkTypeDerivationIsOK(/*@NotNull*/ SchemaType type, int block) throws SchemaException { if (type == this || type == AnySimpleType.getInstance()) { return; } throw new SchemaException("Type xs:error is not validly derived from " + type.getDescription()); }
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(); }