FileDocCategorySizeDatePackage
XSComplexTypeDefinition.javaAPI DocJava SE 6 API3866Tue Jun 10 00:22:54 BST 2008com.sun.org.apache.xerces.internal.xs

XSComplexTypeDefinition

public interface XSComplexTypeDefinition implements XSTypeDefinition
This interface represents the Complex Type Definition schema component.

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 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 com.sun.org.apache.xerces.internal.xs.XSObjectListgetAnnotations()
A set of [annotations] if it exists, otherwise an empty XSObjectList.

public com.sun.org.apache.xerces.internal.xs.XSObjectListgetAttributeUses()
A set of attribute uses if it exists, otherwise an empty XSObjectList.

public com.sun.org.apache.xerces.internal.xs.XSWildcardgetAttributeWildcard()
An attribute wildcard if it exists, otherwise null.

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

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

public com.sun.org.apache.xerces.internal.xs.XSParticlegetParticle()
A particle for a 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 com.sun.org.apache.xerces.internal.xs.XSSimpleTypeDefinitiongetSimpleType()
A simple type definition corresponding to a simple content model, otherwise null.

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

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