org.apache.xerces.impl.xs.psvi
Interface XSComplexTypeDefinition

All Superinterfaces:
XSObject, XSTypeDefinition
All Known Implementing Classes:
XSComplexTypeDecl

public interface XSComplexTypeDefinition
extends XSTypeDefinition

3.4.1 The Complex Type Definition Schema Component.

Version:
$Id: XSComplexTypeDefinition.java,v 1.1 2002/05/13 21:31:34 sandygao Exp $
Author:
Elena Litani, IBM

Field Summary
static short CONTENTTYPE_ELEMENT
          Represents an element-only content type.
static short CONTENTTYPE_EMPTY
          Represents an empty content type.
static short CONTENTTYPE_MIXED
          Represents a mixed content type.
static short CONTENTTYPE_SIMPLE
          The content model type simple.
 
Fields inherited from interface org.apache.xerces.impl.xs.psvi.XSTypeDefinition
COMPLEX_TYPE, SIMPLE_TYPE
 
Method Summary
 XSObjectList getAnnotations()
          {annotations} A set of annotations.
 XSObjectList getAttributeUses()
          {attribute uses} A set of attribute uses.
 XSWildcard getAttributeWildcard()
          {attribute wildcard} Optional.
 short getContentType()
          {content type} One of empty, a simple type definition (see simpleType, or mixed, element-only (see cmParticle).
 short getDerivationMethod()
          {derivation method} Either extension or restriction.
 boolean getIsAbstract()
          {abstract} A boolean.
 boolean getIsProhibitedSubstitution(short prohibited)
          {prohibited substitutions} A subset of {extension, restriction}.
 XSParticle getParticle()
          A particle for mixed or element-only content model, otherwise null
 short getProhibitedSubstitutions()
          {prohibited substitutions}
 XSSimpleTypeDefinition getSimpleType()
          A simple type definition corresponding to simple content model, otherwise null
 
Methods inherited from interface org.apache.xerces.impl.xs.psvi.XSTypeDefinition
getBaseType, getFinal, getIsAnonymous, getIsFinal, getTypeCategory
 
Methods inherited from interface org.apache.xerces.impl.xs.psvi.XSObject
getName, getNamespace, getType
 

Field Detail

CONTENTTYPE_EMPTY

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.

See Also:
Constant Field Values

CONTENTTYPE_SIMPLE

public static final short CONTENTTYPE_SIMPLE
The content model type simple. A content type which is a simple validates elements with character-only children.

See Also:
Constant Field Values

CONTENTTYPE_ELEMENT

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.

See Also:
Constant Field Values

CONTENTTYPE_MIXED

public static final short CONTENTTYPE_MIXED
Represents a mixed content type.

See Also:
Constant Field Values
Method Detail

getDerivationMethod

public short getDerivationMethod()
{derivation method} Either extension or restriction. The valid constant value for this XSConstants EXTENTION, RESTRICTION.


getIsAbstract

public boolean getIsAbstract()
{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.


getAttributeUses

public XSObjectList getAttributeUses()
{attribute uses} A set of attribute uses.


getAttributeWildcard

public XSWildcard getAttributeWildcard()
{attribute wildcard} Optional. A wildcard.


getContentType

public short getContentType()
{content type} One of empty, a simple type definition (see simpleType, or mixed, element-only (see cmParticle).


getSimpleType

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


getParticle

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


getIsProhibitedSubstitution

public boolean getIsProhibitedSubstitution(short prohibited)
{prohibited substitutions} A subset of {extension, restriction}.

Parameters:
prohibited - extention or restriction constants (defined in XSConstants).
Returns:
True if prohibited is a prohibited substitution, otherwise false.

getProhibitedSubstitutions

public short getProhibitedSubstitutions()
{prohibited substitutions}

Returns:
A bit flag corresponding to prohibited substitutions

getAnnotations

public XSObjectList getAnnotations()
{annotations} A set of annotations.



Copyright © 1999-2002 Apache XML Project. All Rights Reserved.