public interface

XSComplexTypeDefinition

implements XSTypeDefinition
org.apache.xerces.xs.XSComplexTypeDefinition
Known Indirect Subclasses

Class Overview

This interface represents the Complex Type Definition schema component.

Summary

Constants
short CONTENTTYPE_ELEMENT Represents an element-only content type.
short CONTENTTYPE_EMPTY Represents an empty content type.
short CONTENTTYPE_MIXED Represents a mixed content type.
short CONTENTTYPE_SIMPLE Represents a simple content type.
[Expand]
Inherited Constants
From interface org.apache.xerces.xs.XSTypeDefinition
Public Methods
abstract boolean getAbstract()
[abstract]: a boolean.
abstract XSObjectList getAnnotations()
A sequence of [annotations] or an empty XSObjectList.
abstract XSObjectList getAttributeUses()
A set of attribute uses if it exists, otherwise an empty XSObjectList.
abstract XSWildcard getAttributeWildcard()
An attribute wildcard if it exists, otherwise null.
abstract short getContentType()
[content type]: one of empty (CONTENTTYPE_EMPTY), a simple type definition (CONTENTTYPE_SIMPLE), mixed ( CONTENTTYPE_MIXED), or element-only ( CONTENTTYPE_ELEMENT).
abstract short getDerivationMethod()
[derivation method]: either DERIVATION_EXTENSION, DERIVATION_RESTRICTION, or DERIVATION_NONE (see XSConstants).
abstract XSParticle getParticle()
A particle for a mixed or element-only content model, otherwise null.
abstract short getProhibitedSubstitutions()
[prohibited substitutions]: A subset of {extension, restriction} or DERIVATION_NONE represented as a bit flag (see XSConstants).
abstract XSSimpleTypeDefinition getSimpleType()
A simple type definition corresponding to a simple content model, otherwise null.
abstract boolean isProhibitedSubstitution(short restriction)
[prohibited substitutions]: a subset of {extension, restriction}
[Expand]
Inherited Methods
From interface org.apache.xerces.xs.XSObject
From interface org.apache.xerces.xs.XSTypeDefinition

Constants

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.

Constant Value: 2 (0x00000002)

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.

Constant Value: 0 (0x00000000)

public static final short CONTENTTYPE_MIXED

Represents a mixed content type.

Constant Value: 3 (0x00000003)

public static final short CONTENTTYPE_SIMPLE

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

Constant Value: 1 (0x00000001)

Public Methods

public abstract 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.

public abstract XSObjectList getAnnotations ()

A sequence of [annotations] or an empty XSObjectList.

public abstract XSObjectList getAttributeUses ()

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

public abstract XSWildcard getAttributeWildcard ()

An attribute wildcard if it exists, otherwise null.

public abstract short getContentType ()

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

public abstract short getDerivationMethod ()

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

public abstract XSParticle getParticle ()

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

public abstract short getProhibitedSubstitutions ()

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

public abstract XSSimpleTypeDefinition getSimpleType ()

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

public abstract boolean isProhibitedSubstitution (short restriction)

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

Parameters
restriction Extension or restriction constants (see XSConstants).
Returns
  • True if restriction is a prohibited substitution, otherwise false.