Top Description Fields Methods
com.sun.org.apache.xerces.internal.xs

public Interface XSComplexTypeDefinition

extends XSTypeDefinition
Known Direct Implementers
com.sun.org.apache.xerces.internal.impl.xs.XSComplexTypeDecl

This interface represents the Complex Type Definition schema component.

Field Summary

Modifier and TypeField and Description
public static final short
CONTENTTYPE_ELEMENT

Represents an element-only content type.

public static final short
CONTENTTYPE_EMPTY

Represents an empty content type.

public static final short
CONTENTTYPE_MIXED

Represents a mixed content type.

public static final short
CONTENTTYPE_SIMPLE

Represents a simple content type.

Inherited from com.sun.org.apache.xerces.internal.xs.XSTypeDefinition:
COMPLEX_TYPESIMPLE_TYPE

Method Summary

Modifier and TypeMethod and Description
public boolean
getAbstract()

[abstract]: a boolean.

public XSObjectList
getAnnotations()

A sequence of [annotations] or an empty XSObjectList.

public XSObjectList
getAttributeUses()

A set of attribute uses if it exists, otherwise an empty XSObjectList.

public XSWildcard
getAttributeWildcard()

An attribute wildcard if it exists, otherwise null.

public short
getContentType()

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

public short
getDerivationMethod()

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

public XSParticle
getParticle()

A particle for a mixed or element-only content model, otherwise null.

public short
getProhibitedSubstitutions()

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

public XSSimpleTypeDefinition
getSimpleType()

A simple type definition corresponding to a simple content model, otherwise null.

public boolean

Returns:

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

[prohibited substitutions]: a subset of {extension, restriction}

Inherited from com.sun.org.apache.xerces.internal.xs.XSTypeDefinition:
derivedFromderivedFromTypegetAnonymousgetBaseTypegetFinalgetTypeCategoryisFinal

Field Detail

CONTENTTYPE_ELEMENTback to summary
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.

CONTENTTYPE_EMPTYback to 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.

CONTENTTYPE_MIXEDback to summary
public static final short CONTENTTYPE_MIXED

Represents a mixed content type.

CONTENTTYPE_SIMPLEback to summary
public static final short CONTENTTYPE_SIMPLE

Represents a simple content type. A content type which is simple validates elements with character-only children.

Method Detail

getAbstractback to summary
public boolean getAbstract()

[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.

getAnnotationsback to summary
public XSObjectList getAnnotations()

A sequence of [annotations] or an empty XSObjectList.

getAttributeUsesback to summary
public XSObjectList getAttributeUses()

A set of attribute uses if it exists, otherwise an empty XSObjectList.

getAttributeWildcardback to summary
public XSWildcard getAttributeWildcard()

An attribute wildcard if it exists, otherwise null.

getContentTypeback to summary
public short getContentType()

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

getDerivationMethodback to summary
public short getDerivationMethod()

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

getParticleback to summary
public XSParticle getParticle()

A particle for a mixed or element-only content model, otherwise null.

getProhibitedSubstitutionsback to summary
public short getProhibitedSubstitutions()

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

getSimpleTypeback to summary
public XSSimpleTypeDefinition getSimpleType()

A simple type definition corresponding to a simple content model, otherwise null.

isProhibitedSubstitutionback to summary
public boolean isProhibitedSubstitution(short restriction)

[prohibited substitutions]: a subset of {extension, restriction}

Parameters
restriction:short

Extension or restriction constants (see XSConstants).

Returns:boolean

True if restriction is a prohibited substitution, otherwise false.