org.exolab.castor.xml.schema

Class Structure

public abstract class Structure extends Object implements Serializable

The base class for all XML Schema stuctures.

Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:35 $

Author: Keith Visco

Field Summary
static shortANNOTATION
static shortANYTYPE
static shortAPPINFO
static shortATTRIBUTE
static shortATTRIBUTE_GROUP
static shortCOMPLEX_CONTENT
static shortCOMPLEX_TYPE
static shortDOCUMENTATION
static shortELEMENT
static shortFACET
static shortGROUP
static shortIDENTITY_FIELD
static shortIDENTITY_SELECTOR
static shortKEY
static shortKEYREF
static shortLIST
static shortMODELGROUP
static shortMODELGROUP_REF
static shortREDEFINE
static shortSCHEMA
static shortSIMPLE_CONTENT
static shortSIMPLE_TYPE
static shortUNION
static shortUNIQUE
static shortUNKNOWN
static shortWILDCARD
Constructor Summary
protected Structure()
Creates a new XML Schema Structure
Method Summary
abstract shortgetStructureType()
Returns the type of this Schema Structure.
booleanisValid()
Calls validate() to determine if this Schema Definition is valid.
abstract voidvalidate()
Checks the validity of this Schema defintion.

Field Detail

ANNOTATION

public static final short ANNOTATION

ANYTYPE

public static final short ANYTYPE

APPINFO

public static final short APPINFO

ATTRIBUTE

public static final short ATTRIBUTE

ATTRIBUTE_GROUP

public static final short ATTRIBUTE_GROUP

COMPLEX_CONTENT

public static final short COMPLEX_CONTENT

COMPLEX_TYPE

public static final short COMPLEX_TYPE

DOCUMENTATION

public static final short DOCUMENTATION

ELEMENT

public static final short ELEMENT

FACET

public static final short FACET

GROUP

public static final short GROUP

IDENTITY_FIELD

public static final short IDENTITY_FIELD

IDENTITY_SELECTOR

public static final short IDENTITY_SELECTOR

KEY

public static final short KEY

KEYREF

public static final short KEYREF

LIST

public static final short LIST

MODELGROUP

public static final short MODELGROUP

MODELGROUP_REF

public static final short MODELGROUP_REF

REDEFINE

public static final short REDEFINE

SCHEMA

public static final short SCHEMA

SIMPLE_CONTENT

public static final short SIMPLE_CONTENT

SIMPLE_TYPE

public static final short SIMPLE_TYPE

UNION

public static final short UNION

UNIQUE

public static final short UNIQUE

UNKNOWN

public static final short UNKNOWN

WILDCARD

public static final short WILDCARD

Constructor Detail

Structure

protected Structure()
Creates a new XML Schema Structure

Method Detail

getStructureType

public abstract short getStructureType()
Returns the type of this Schema Structure.

Returns: the type of this Schema Structure.

isValid

public boolean isValid()
Calls validate() to determine if this Schema Definition is valid.

Returns: true if this Schema definition is valid, otherwise false.

validate

public abstract void validate()
Checks the validity of this Schema defintion.

Throws: ValidationException when this Schema definition is invalid.

Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com