SchemaComponent
, SchemaType
, java.io.Serializable
public interface ComplexType extends SchemaType
FIXED_UP, INCOMPLETE, INVALID, UNVALIDATED, VALIDATED, VALIDATING
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION, DERIVE_BY_SUBSTITUTION
Modifier and Type | Method | Description |
---|---|---|
boolean |
allowsAttributes() |
Return true if this type (or any known type derived from it by extension) allows the element
to have one or more attributes.
|
void |
gatherAllPermittedChildren(IntHashSet children) |
Get a list of all the names of elements that can appear as children of an element having this
complex type, as integer fingerprints.
|
void |
gatherAllPermittedDescendants(IntHashSet descendants) |
Get a list of all the names of elements that can appear as descendants of an element having this
complex type, as integer fingerprints.
|
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,
boolean searchExtensionTypes) |
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,
boolean considerExtensions) |
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.
|
getValidationStatus
allowsDerivation, analyzeContentExpression, atomize, checkTypeDerivationIsOK, getBaseType, getBlock, getDerivationMethod, getDescription, getDisplayName, getFingerprint, getName, getNameCode, getSystemId, getTargetNamespace, getTypedValue, isAnonymousType, isAtomicType, isComplexType, isSameType, isSimpleType
boolean isAbstract()
boolean isComplexContent()
boolean isSimpleContent()
boolean isAllContent()
SimpleType getSimpleContentType()
boolean isRestricted()
boolean isEmptyContent()
boolean isEmptiable() throws SchemaException
SchemaException
boolean isMixedContent()
SchemaType getElementParticleType(int fingerprint, boolean considerExtensions) throws SchemaException, ValidationException
fingerprint
- Identifies the name of the child element within this content modelconsiderExtensions
- SchemaException
ValidationException
int getElementParticleCardinality(int fingerprint, boolean searchExtensionTypes) 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 modelsearchExtensionTypes
- StaticProperty.EMPTY
.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 modelSchemaException
ValidationException
boolean allowsAttributes()
void gatherAllPermittedChildren(IntHashSet children) throws SchemaException
children
- an integer set, initially empty, which on return will hold the fingerprints of all permitted
child elements; if the result contains the value -1, this indicates that it is not possible to enumerate
all the children, typically because of wildcards. In this case the other contents of the set should
be ignored.SchemaException
void gatherAllPermittedDescendants(IntHashSet descendants) throws SchemaException
descendants
- an integer set, initially empty, which on return will hold the fingerprints of all permitted
descendant elements; if the result contains the value -1, this indicates that it is not possible to enumerate
all the descendants, typically because of wildcards. In this case the other contents of the set should
be ignored.SchemaException