org.exolab.castor.xml.schema

Class TypeReference

Implemented Interfaces:
java.io.Serializable

(package private) class TypeReference
extends XMLType

Package private class to handles type references.
Version:
$Revision:
Author:
Arnaud Berry
See Also:
Serialized Form

Field Summary

Fields inherited from class org.exolab.castor.xml.schema.XMLType

NULL_ARGUMENT

Fields inherited from class org.exolab.castor.xml.schema.Structure

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

Method Summary

short
getStructureType()
Returns Structure.UNKNOWN (This class should not be seen outside ElementDecl anyway)
(package private) XMLType
getType()
Returns the referred type
(package private) void
resolveTypeReference()
Resolves the type reference.
protected void
setParent(Structure parent)
Sets the parent for this Schema type
void
validate()
Checks the validity of this type defintion.

Methods inherited from class org.exolab.castor.xml.schema.XMLType

getBaseType, getDerivationMethod, getId, getName, getSchema, getType, isAnyType, isComplexType, isSimpleType, setBaseType, setDerivationMethod, setId, setName, setParent, setSchema

Methods inherited from class org.exolab.castor.xml.schema.Annotated

addAnnotation, getAnnotations, removeAnnotation

Methods inherited from class org.exolab.castor.xml.schema.Structure

getStructureType, isValid, validate

Method Details

getStructureType

public short getStructureType()
Returns Structure.UNKNOWN (This class should not be seen outside ElementDecl anyway)
Overrides:
getStructureType in interface Structure

getType

(package private)  XMLType getType()
Returns the referred type
Overrides:
getType in interface XMLType

resolveTypeReference

(package private)  void resolveTypeReference()
Resolves the type reference.

setParent

protected void setParent(Structure parent)
Sets the parent for this Schema type
Overrides:
setParent in interface XMLType
Parameters:
parent - the parent Structure for SchemaType

validate

public void validate()
            throws ValidationException
Checks the validity of this type defintion.
Overrides:
validate in interface Structure
Throws:
ValidationException - when this type definition is invalid.

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