net.sf.saxon.type
public interface ComplexType extends SchemaType
Method Summary | |
---|---|
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.
|
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. |
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.
|
SimpleType | getSimpleContentType()
Get the simple content type |
boolean | isAbstract()
Test whether this complex type has been marked as abstract. |
boolean | isAllContent()
Test whether this complex type has "all" content, that is, a content model
using an xs:all compositor |
boolean | isComplexContent()
Test whether this complex type has complex content |
boolean | isEmptiable()
Test whether the content model of this complex type allows empty content |
boolean | isEmptyContent()
Test whether the content model of this complex type is empty |
boolean | isMixedContent()
Test whether this complex type allows mixed content |
boolean | isRestricted()
Test whether this complex type is derived by restriction |
boolean | isSimpleContent()
Test whether this complexType has simple content |
String | subsumes(ComplexType sub)
Test whether this complex type subsumes another complex type. |
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
Parameters: fingerprint Identifies the name of the child element within this content model
Parameters: fingerprint Identifies the name of the child element within this content model
Returns: For a complex type with simple content, returns the simple type of the content. Otherwise, returns null.
Returns: true if this complex type is abstract.
Returns: true if this complex type has a complex content model, false if it has a simple content model
Returns: true if empty content is valid
Returns: true if the content model is defined as empty
Returns: true if mixed content is allowed
Returns: true if this complex type is derived by restriction
Returns: true if this complex type has a simple content model, false if it has a complex content model
Parameters: sub the other type (the type that is derived by restriction, validly or otherwise)
Returns: null indicating that this type does indeed subsume the other; or a string indicating why it doesn't.