org.exolab.castor.xml.schema

Class Structure

Implemented Interfaces:
java.io.Serializable
Known Direct Subclasses:
Annotated, Annotation, AnnotationItem, UnknownDef

public abstract class Structure
extends java.lang.Object
implements java.io.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
See Also:
Serialized Form

Field Summary

static short
ANNOTATION
static short
ANYTYPE
static short
APPINFO
static short
ATTRIBUTE
static short
ATTRIBUTE_GROUP
static short
COMPLEX_CONTENT
static short
COMPLEX_TYPE
static short
DOCUMENTATION
static short
ELEMENT
static short
FACET
static short
GROUP
static short
IDENTITY_FIELD
static short
IDENTITY_SELECTOR
static short
KEY
static short
KEYREF
static short
LIST
static short
MODELGROUP
static short
MODELGROUP_REF
static short
REDEFINE
static short
SCHEMA
static short
SIMPLE_CONTENT
static short
SIMPLE_TYPE
static short
UNION
static short
UNIQUE
static short
UNKNOWN
static short
WILDCARD

Constructor Summary

Structure()
Creates a new XML Schema Structure

Method Summary

abstract short
getStructureType()
Returns the type of this Schema Structure.
boolean
isValid()
Calls validate() to determine if this Schema Definition is valid.
abstract void
validate()
Checks the validity of this Schema defintion.

Field Details

ANNOTATION

public static final short ANNOTATION
Field Value:
1

ANYTYPE

public static final short ANYTYPE
Field Value:
0

APPINFO

public static final short APPINFO
Field Value:
2

ATTRIBUTE

public static final short ATTRIBUTE
Field Value:
3

ATTRIBUTE_GROUP

public static final short ATTRIBUTE_GROUP
Field Value:
4

COMPLEX_CONTENT

public static final short COMPLEX_CONTENT
Field Value:
5

COMPLEX_TYPE

public static final short COMPLEX_TYPE
Field Value:
6

DOCUMENTATION

public static final short DOCUMENTATION
Field Value:
7

ELEMENT

public static final short ELEMENT
Field Value:
8

FACET

public static final short FACET
Field Value:
9

GROUP

public static final short GROUP
Field Value:
10

IDENTITY_FIELD

public static final short IDENTITY_FIELD
Field Value:
11

IDENTITY_SELECTOR

public static final short IDENTITY_SELECTOR
Field Value:
12

KEY

public static final short KEY
Field Value:
13

KEYREF

public static final short KEYREF
Field Value:
14

LIST

public static final short LIST
Field Value:
15

MODELGROUP

public static final short MODELGROUP
Field Value:
16

MODELGROUP_REF

public static final short MODELGROUP_REF
Field Value:
17

REDEFINE

public static final short REDEFINE
Field Value:
18

SCHEMA

public static final short SCHEMA
Field Value:
19

SIMPLE_CONTENT

public static final short SIMPLE_CONTENT
Field Value:
20

SIMPLE_TYPE

public static final short SIMPLE_TYPE
Field Value:
21

UNION

public static final short UNION
Field Value:
22

UNIQUE

public static final short UNIQUE
Field Value:
23

UNKNOWN

public static final short UNKNOWN
Field Value:
-1

WILDCARD

public static final short WILDCARD
Field Value:
24

Constructor Details

Structure

protected Structure()
Creates a new XML Schema Structure

Method Details

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()
            throws ValidationException
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