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

All Superinterfaces:
XSObject
All Known Subinterfaces:
XSComplexTypeDefinition, XSSimpleType, XSSimpleTypeDefinition, XSTypeDecl
All Known Implementing Classes:
XSComplexTypeDecl, XSSimpleTypeDecl

public interface XSTypeDefinition
extends XSObject

This interface represents a complex or simple type definition.

Version:
$Id: XSTypeDefinition.java,v 1.2 2002/05/16 18:25:55 sandygao Exp $
Author:
Elena Litani, IBM

Field Summary
static short COMPLEX_TYPE
          This constant value signifies a complex type.
static short SIMPLE_TYPE
          This constant value signifies a simple type.
 
Method Summary
 XSTypeDefinition getBaseType()
          {base type definition} Either a simple type definition or a complex type definition.
 short getFinal()
          {final} For complex type definition it is a subset of {extension, restriction}.
 boolean getIsAnonymous()
          A boolean that specifies if the type definition is anonymous.
 boolean getIsFinal(short derivation)
          {final} For complex type definition it is a subset of {extension, restriction}.
 short getTypeCategory()
          Return whether this type definition is a simple type or complex type.
 
Methods inherited from interface org.apache.xerces.impl.xs.psvi.XSObject
getName, getNamespace, getType
 

Field Detail

COMPLEX_TYPE

public static final short COMPLEX_TYPE
This constant value signifies a complex type.

See Also:
Constant Field Values

SIMPLE_TYPE

public static final short SIMPLE_TYPE
This constant value signifies a simple type.

See Also:
Constant Field Values
Method Detail

getTypeCategory

public short getTypeCategory()
Return whether this type definition is a simple type or complex type.


getBaseType

public XSTypeDefinition getBaseType()
{base type definition} Either a simple type definition or a complex type definition.


getIsFinal

public boolean getIsFinal(short derivation)
{final} For complex type definition it is a subset of {extension, restriction}. For simple type definition it is a subset of {extension, list, restriction, union}.

Parameters:
derivation - Extension, restriction, list, union constants (defined in XSConstants).
Returns:
True if derivation is in the final set, otherwise false.

getFinal

public short getFinal()
{final} For complex type definition it is a subset of {extension, restriction}. For simple type definition it is a subset of {extension, list, restriction, union}.

Returns:
A bit flag that represents: {extension, restriction) or none for complexTypes; {extension, list, restriction, union} or none for simpleTypes;

getIsAnonymous

public boolean getIsAnonymous()
A boolean that specifies if the type definition is anonymous. Convenience attribute. This is a field is not part of XML Schema component model.



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