org.exolab.castor.xml.schema.reader

Class SchemaUnmarshallerState

class SchemaUnmarshallerState extends Object

A class used to save State information for the SchemaUnmarshaller Roughly speaking it keeps track of all the schemas read. This is used to prevent infinite loops when importing or including schema.

Version: $Revision: 6230 $ $Date: 2004-09-21 08:09:24 -0600 (Tue, 21 Sep 2004) $

Author: Arnaud Blandin

Field Summary
booleancacheIncludedSchemas
A boolean that indicates whether or not to cache included XML Schemas
Constructor Summary
protected SchemaUnmarshallerState()
Creates a new SchemaUnmarshallerState
Method Summary
ConfigurationgetConfiguration()
Returns the Configuration to use during reading of the schema, this is primarily for obtaining a parser instance.
SchemagetSchema(String schemaLocation)
Returns the schema corresponding to the given schemaLocation
voidmarkAsProcessed(String schemaLocation, Schema schema)
Marks the given schema as having been processed.
booleanprocessed(Schema schema)
Returns true if the given Schema has been marked as processed
booleanprocessed(String schemaLocation)
Returns true if the given schema location has been marked as processed
voidsetConfiguration(Configuration config)
Sets the Configuration to use during reading of the schema, this is primarily for obtaining a parser instance.

Field Detail

cacheIncludedSchemas

boolean cacheIncludedSchemas
A boolean that indicates whether or not to cache included XML Schemas

Constructor Detail

SchemaUnmarshallerState

protected SchemaUnmarshallerState()
Creates a new SchemaUnmarshallerState

Method Detail

getConfiguration

Configuration getConfiguration()
Returns the Configuration to use during reading of the schema, this is primarily for obtaining a parser instance.

Returns: the Configuration.

See Also: SchemaUnmarshallerState

getSchema

Schema getSchema(String schemaLocation)
Returns the schema corresponding to the given schemaLocation

Parameters: schemaLocation the schema location of the schema

Returns: the schema corresponding to the given schemaLocation

markAsProcessed

void markAsProcessed(String schemaLocation, Schema schema)
Marks the given schema as having been processed.

Parameters: schemaLocation the key identifying the physical location of the schema to mark. schema the Schema to mark as having been processed.

processed

boolean processed(Schema schema)
Returns true if the given Schema has been marked as processed

Parameters: schema the Schema to check for being marked as processed

Returns: true if the given Schema has been marked as processed

processed

boolean processed(String schemaLocation)
Returns true if the given schema location has been marked as processed

Parameters: schemaLocation location the schema location to check for being marked as processed

Returns: true if the given schema location has been marked as processed

setConfiguration

void setConfiguration(Configuration config)
Sets the Configuration to use during reading of the schema, this is primarily for obtaining a parser instance.

Parameters: config the Configuration to set

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