org.exolab.castor.xml.schema.reader
Class SchemaUnmarshallerState

java.lang.Object
  extended byorg.exolab.castor.xml.schema.reader.SchemaUnmarshallerState

class SchemaUnmarshallerState
extends java.lang.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: 1.3 $ $Date: 2001/06/28 00:28:26 $
Author:
Arnaud Blandin

Constructor Summary
protected SchemaUnmarshallerState()
          Creates a new SchemaUnmarshallerState
 
Method Summary
(package private)  Schema getSchema(java.lang.String schemaLocation)
          Returns the schema corresponding to the given schemaLocation
(package private)  void markAsProcessed(java.lang.String schemaLocation, Schema schema)
          Marks the given schema as having been processed.
(package private)  boolean processed(Schema schema)
          Returns true if the given Schema has been marked as processed
(package private)  boolean processed(java.lang.String schemaLocation)
          Returns true if the given schema location has been marked as processed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaUnmarshallerState

protected SchemaUnmarshallerState()
Creates a new SchemaUnmarshallerState

Method Detail

markAsProcessed

void markAsProcessed(java.lang.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

processed

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


getSchema

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

Parameters:
schemaLocation - the schema location of the schema


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