FileDocCategorySizeDatePackage
XSComplexTypeDefinition.javaAPI DocJava SE 5 API5809Fri Aug 26 14:55:52 BST 2005com.sun.org.apache.xerces.internal.impl.xs.psvi

XSComplexTypeDefinition

public interface XSComplexTypeDefinition implements XSTypeDefinition
This interface represents the Complex Type Definition schema component. The interface may be updated or replaced.

Fields Summary
public static final short
CONTENTTYPE_EMPTY
Represents an empty content type. A content type with the distinguished value empty validates elements with no character or element information item children.
public static final short
CONTENTTYPE_SIMPLE
Represents a simple content type. A content type which is a simple validates elements with character-only children.
public static final short
CONTENTTYPE_ELEMENT
Represents an element-only content type. An element-only content type validates elements with children that conform to the supplied content model.
public static final short
CONTENTTYPE_MIXED
Represents a mixed content type.
Constructors Summary
Methods Summary
public booleangetAbstract()
[abstract]: a boolean. Complex types for which abstract is true must not be used as the type definition for the validation of element information items.

public XSObjectListgetAnnotations()
A set of [annotations].

public XSObjectListgetAttributeUses()
A set of attribute uses.

public XSWildcardgetAttributeWildcard()
Optional.An attribute wildcard.

public shortgetContentType()
[content type]: one of empty (CONTENTTYPE_EMPTY), a simple type definition (CONTENTTYPE_SIMPLE), mixed ( CONTENTTYPE_EMPTY), or element-only ( CONTENTTYPE_EMPTY).

public shortgetDerivationMethod()
[derivation method]: either DERIVATION_EXTENSION, DERIVATION_RESTRICTION, or DERIVATION_NONE (see XSConstants).

public XSParticlegetParticle()
A particle for mixed or element-only content model, otherwise null

public shortgetProhibitedSubstitutions()
[prohibited substitutions]: A subset of {extension, restriction} or DERIVATION_NONE represented as a bit flag (see XSConstants).

public XSSimpleTypeDefinitiongetSimpleType()
A simple type definition corresponding to simple content model, otherwise null

public booleanisProhibitedSubstitution(short restriction)
[prohibited substitutions]: a subset of {extension, restriction}

param
restriction Extention or restriction constants (see XSConstants).
return
True if restriction is a prohibited substitution, otherwise false.