|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComplexType
A complex type as defined in XML Schema: either a user-defined complex type, or xs:anyType, or xs:untyped. In the non-schema-aware version of the Saxon product, the only complex type encountered is xs:untyped.
Field Summary |
---|
Fields inherited from interface net.sf.saxon.type.SchemaType |
---|
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION, DERIVE_BY_SUBSTITUTION |
Fields inherited from interface net.sf.saxon.type.SchemaComponent |
---|
FIXED_UP, INCOMPLETE, INVALID, UNVALIDATED, VALIDATED, VALIDATING |
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,
ISchemaCompiler compiler)
Test whether this complex type subsumes another complex type. |
Methods inherited from interface net.sf.saxon.type.SchemaType |
---|
allowsDerivation, analyzeContentExpression, atomize, checkTypeDerivationIsOK, getBaseType, getBlock, getDerivationMethod, getDescription, getDisplayName, getFingerprint, getNameCode, getTypedValue, isAnonymousType, isAtomicType, isComplexType, isSameType, isSimpleType |
Methods inherited from interface net.sf.saxon.type.SchemaComponent |
---|
getValidationStatus |
Method Detail |
---|
boolean isAbstract()
boolean isComplexContent()
boolean isSimpleContent()
boolean isAllContent()
SimpleType getSimpleContentType()
boolean isRestricted()
boolean isEmptyContent()
boolean isEmptiable() throws SchemaException, ValidationException
SchemaException
ValidationException
boolean isMixedContent()
String subsumes(ComplexType sub, ISchemaCompiler compiler) throws SchemaException, ValidationException
sub
- the other type (the type that is derived by restriction, validly or otherwise)compiler
-
SchemaException
ValidationException
SchemaType getElementParticleType(int fingerprint) throws SchemaException, ValidationException
fingerprint
- Identifies the name of the child element within this content model
SchemaException
ValidationException
int getElementParticleCardinality(int fingerprint) throws SchemaException, ValidationException
StaticProperty.EXACTLY_ONE
, StaticProperty.ALLOWS_ZERO_OR_ONE
,
StaticProperty.ALLOWS_ZERO_OR_MORE
, StaticProperty.ALLOWS_ONE_OR_MORE
,
If there is no such particle, return StaticProperty.EMPTY
.
fingerprint
- Identifies the name of the child element within this content model
SchemaException
ValidationException
SchemaType getAttributeUseType(int fingerprint) throws SchemaException, ValidationException
If there are types derived from this type by extension, search those too.
fingerprint
- Identifies the name of the child element within this content model
SchemaException
ValidationException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |