com.jaxfront.core.util.io.cache
Class XMLSchemaCache

java.lang.Object
  extended by com.jaxfront.core.util.io.cache.XMLSchemaCache

public class XMLSchemaCache
extends java.lang.Object

Author:
srzxuz TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
XMLSchemaCache()
           
 
Method Summary
 XMLSchema cache(java.lang.String context, java.lang.String key, XMLSchema schema)
          Cache an XMLSchema based on a key (file location url).
 XMLSchema cache(java.lang.String context, java.net.URL schemaURL, XMLSchema schema)
          Cache an XMLSchema based on a key (file location url).
 XMLSchema getCached(java.lang.String key)
          Returns the cached XMLSchema for a key if any.
 XMLSchema getCached(java.net.URL schemaURL)
          Returns the cached XMLSchema for a key if any.
static XMLSchemaCache getInstance()
          Returns single XMLSchemaBuilder implementation.
 java.util.Hashtable getSchemaCache()
           
 void releaseCache()
          Release all cached XMLSchemas.
 void releaseCached(XMLSchema schema)
          Release the cache for the passed schema.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLSchemaCache

public XMLSchemaCache()
Method Detail

cache

public XMLSchema cache(java.lang.String context,
                       java.lang.String key,
                       XMLSchema schema)
Cache an XMLSchema based on a key (file location url).

Parameters:
key - to identify schema in the cache
schema - XMLSchem to put to the cache

cache

public XMLSchema cache(java.lang.String context,
                       java.net.URL schemaURL,
                       XMLSchema schema)
Cache an XMLSchema based on a key (file location url).

Parameters:
context - needed for client-capable systems for the ability to identify the right properties (jaxfront.xml )
key - to identify schema in the cache
schema - XMLSchem to put to the cache

getCached

public XMLSchema getCached(java.lang.String key)
Returns the cached XMLSchema for a key if any.

Parameters:
key - to identify schema in the cache

getCached

public XMLSchema getCached(java.net.URL schemaURL)
Returns the cached XMLSchema for a key if any.

Parameters:
key - to identify schema in the cache

getInstance

public static XMLSchemaCache getInstance()
Returns single XMLSchemaBuilder implementation.


getSchemaCache

public java.util.Hashtable getSchemaCache()

releaseCache

public void releaseCache()
Release all cached XMLSchemas.


releaseCached

public void releaseCached(XMLSchema schema)
Release the cache for the passed schema.

Parameters:
schema - to release from cache