Package org.exolab.castor.xml.schema
Class Structure
- java.lang.Object
-
- org.exolab.castor.xml.schema.Structure
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known 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: 5951 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
- Author:
- Keith Visco
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Modifier Constructor Description protected
Structure()
Creates a new XML Schema Structure
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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 Detail
-
ANYTYPE
public static final short ANYTYPE
- See Also:
- Constant Field Values
-
ANNOTATION
public static final short ANNOTATION
- See Also:
- Constant Field Values
-
APPINFO
public static final short APPINFO
- See Also:
- Constant Field Values
-
ATTRIBUTE
public static final short ATTRIBUTE
- See Also:
- Constant Field Values
-
ATTRIBUTE_GROUP
public static final short ATTRIBUTE_GROUP
- See Also:
- Constant Field Values
-
COMPLEX_CONTENT
public static final short COMPLEX_CONTENT
- See Also:
- Constant Field Values
-
COMPLEX_TYPE
public static final short COMPLEX_TYPE
- See Also:
- Constant Field Values
-
DOCUMENTATION
public static final short DOCUMENTATION
- See Also:
- Constant Field Values
-
ELEMENT
public static final short ELEMENT
- See Also:
- Constant Field Values
-
FACET
public static final short FACET
- See Also:
- Constant Field Values
-
GROUP
public static final short GROUP
- See Also:
- Constant Field Values
-
IDENTITY_FIELD
public static final short IDENTITY_FIELD
- See Also:
- Constant Field Values
-
IDENTITY_SELECTOR
public static final short IDENTITY_SELECTOR
- See Also:
- Constant Field Values
-
KEY
public static final short KEY
- See Also:
- Constant Field Values
-
KEYREF
public static final short KEYREF
- See Also:
- Constant Field Values
-
LIST
public static final short LIST
- See Also:
- Constant Field Values
-
MODELGROUP
public static final short MODELGROUP
- See Also:
- Constant Field Values
-
MODELGROUP_REF
public static final short MODELGROUP_REF
- See Also:
- Constant Field Values
-
REDEFINE
public static final short REDEFINE
- See Also:
- Constant Field Values
-
SCHEMA
public static final short SCHEMA
- See Also:
- Constant Field Values
-
SIMPLE_CONTENT
public static final short SIMPLE_CONTENT
- See Also:
- Constant Field Values
-
SIMPLE_TYPE
public static final short SIMPLE_TYPE
- See Also:
- Constant Field Values
-
UNION
public static final short UNION
- See Also:
- Constant Field Values
-
UNIQUE
public static final short UNIQUE
- See Also:
- Constant Field Values
-
WILDCARD
public static final short WILDCARD
- See Also:
- Constant Field Values
-
UNKNOWN
public static final short UNKNOWN
- See Also:
- Constant Field Values
-
-
Method Detail
-
isValid
public boolean isValid()
Calls validate() to determine if this Schema Definition is valid.- Returns:
- true if this Schema definition is valid, otherwise false.
-
getStructureType
public abstract short getStructureType()
Returns the type of this Schema Structure.- Returns:
- the type of this Schema Structure.
-
validate
public abstract void validate() throws ValidationException
Checks the validity of this Schema defintion.- Throws:
ValidationException
- when this Schema definition is invalid.
-
-