| net.sf.saxon.type.ComplexType
All known Subclasses: net.sf.saxon.type.AnyType, net.sf.saxon.type.Untyped,
ComplexType | public interface ComplexType extends SchemaType(Code) | | A complex type as defined in XML Schema: either a user-defined complex type, or xs:anyType.
In the non-schema-aware version of the Saxon product, the only complex type encountered is xs:anyType.
|
Method Summary | |
public SchemaType | getAttributeUseType(int fingerprint) 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. | public int | getElementParticleCardinality(int fingerprint) Find an element particle within this complex type definition having a given element name
(identified by fingerprint), and return the cardinality associated with that element particle,
that is, the number of times the element can occur within this complex type. | public SchemaType | getElementParticleType(int fingerprint) Find an element particle within this complex type definition having a given element name
(identified by fingerprint), and return the schema type associated with that element particle.
If there is no such particle, return null. | public SimpleType | getSimpleContentType() | public boolean | isAbstract() Test whether this complex type has been marked as abstract. | public boolean | isAllContent() | public boolean | isComplexContent() | public boolean | isEmptiable() | public boolean | isEmptyContent() | public boolean | isMixedContent() | public boolean | isRestricted() | public boolean | isSimpleContent() | public String | subsumes(ComplexType sub) Test whether this complex type subsumes another complex type. |
getAttributeUseType | public SchemaType getAttributeUseType(int fingerprint) throws SchemaException, ValidationException(Code) | | 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.
If there are types derived from this type by extension, search those too.
Parameters: fingerprint - Identifies the name of the child element within this content model |
getElementParticleType | public SchemaType getElementParticleType(int fingerprint) throws SchemaException, ValidationException(Code) | | Find an element particle within this complex type definition having a given element name
(identified by fingerprint), and return the schema type associated with that element particle.
If there is no such particle, return null. If the fingerprint matches an element wildcard,
return the type of the global element declaration with the given name if one exists, or AnyType
if none exists and lax validation is permitted by the wildcard.
Parameters: fingerprint - Identifies the name of the child element within this content model |
getSimpleContentType | public SimpleType getSimpleContentType()(Code) | | Get the simple content type
For a complex type with simple content, returns the simple type of the content.Otherwise, returns null. |
isAbstract | public boolean isAbstract()(Code) | | Test whether this complex type has been marked as abstract.
true if this complex type is abstract. |
isAllContent | public boolean isAllContent()(Code) | | Test whether this complex type has "all" content, that is, a content model
using an xs:all compositor
|
isComplexContent | public boolean isComplexContent()(Code) | | Test whether this complex type has complex content
true if this complex type has a complex content model, false if it has a simple content model |
isEmptyContent | public boolean isEmptyContent()(Code) | | Test whether the content model of this complex type is empty
true if the content model is defined as empty |
isMixedContent | public boolean isMixedContent()(Code) | | Test whether this complex type allows mixed content
true if mixed content is allowed |
isRestricted | public boolean isRestricted()(Code) | | Test whether this complex type is derived by restriction
true if this complex type is derived by restriction |
isSimpleContent | public boolean isSimpleContent()(Code) | | Test whether this complexType has simple content
true if this complex type has a simple content model, false if it has a complex content model |
subsumes | public String subsumes(ComplexType sub) throws ValidationException(Code) | | Test whether this complex type subsumes another complex type. The algorithm
used is as published by Thompson and Tobin, XML Europe 2003.
Parameters: sub - the other type (the type that is derived by restriction, validly or otherwise) null indicating that this type does indeed subsume the other; or a string indicatingwhy it doesn't. |
|
|