/** * 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 AnyType.getInstance(); }
/** * Get the base type * * @return AnyType */ public SchemaType getBaseType() { return AnyType.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 AnyType.getInstance(); }
/** * Get the base type * * @return AnyType */ public SchemaType getBaseType() { return AnyType.getInstance(); }
/** * Get the content type allowed by this NodeTest (that is, the type annotation of the matched nodes). * Return AnyType if there are no restrictions. The default implementation returns AnyType. */ public SchemaType getContentType() { return AnyType.getInstance(); }
/** * Get the content type allowed by this NodeTest (that is, the type annotation of the matched nodes). * Return AnyType if there are no restrictions. The default implementation returns AnyType. */ public SchemaType getContentType() { return AnyType.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 AnyType.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 AnyType.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 AnyType.getInstance(); }
/** * Get the base type * @return AnyType */ public SchemaType getBaseType() { return AnyType.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 AnyType.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 AnyType.getInstance(); }
/** * Get the base type * @return AnyType */ public SchemaType getBaseType() { return AnyType.getInstance(); }
/** * Get the type annotation * * @return the type annotation of the base node */ public SchemaType getSchemaType() { if (documentElement == null || documentElement.getSchemaType() == Untyped.getInstance()) { return Untyped.getInstance(); } else { return AnyType.getInstance(); } }
/** * Get the type annotation * * @return the type annotation of the base node */ public SchemaType getSchemaType() { if (documentElement == null || documentElement.getSchemaType() == Untyped.getInstance()) { return Untyped.getInstance(); } else { return AnyType.getInstance(); } }
private void computeSingleValued(TypeHierarchy th) { singleValued = untyped; if (!singleValued) { ItemType nodeType = operand.getItemType(th); if (nodeType instanceof NodeTest) { SchemaType st = ((NodeTest)nodeType).getContentType(); if (st == AnyType.getInstance() || st.isAtomicType()) { singleValued = true; } } } }
private void computeSingleValued(TypeHierarchy th) { singleValued = untyped; if (!singleValued) { ItemType nodeType = operand.getItemType(th); if (nodeType instanceof NodeTest) { SchemaType st = ((NodeTest)nodeType).getContentType(); if (st == AnyType.getInstance() || st.isAtomicType()) { singleValued = true; } } } }
private void computeSingleValued(TypeHierarchy th) { singleValued = untyped; if (!singleValued) { ItemType nodeType = operand.getItemType(th); if (nodeType instanceof NodeTest) { SchemaType st = ((NodeTest)nodeType).getContentType(); if (st == AnyType.getInstance() || st.isAtomicType()) { singleValued = true; } } } }
/** * Remove type information from this node (and its ancestors, recursively). * This method implements the upd:removeType() primitive defined in the XQuery Update specification */ public void removeTypeAnnotation() { if (getSchemaType() != Untyped.getInstance()) { type = AnyType.getInstance(); getRawParent().removeTypeAnnotation(); } }
/** * Remove type information from this node (and its ancestors, recursively). * This method implements the upd:removeType() primitive defined in the XQuery Update specification */ public void removeTypeAnnotation() { if (getSchemaType() != Untyped.getInstance()) { type = AnyType.getInstance(); getRawParent().removeTypeAnnotation(); } }