com.limegroup.gnutella.xml
Class LimeXMLSchemaRepository

java.lang.Object
  extended bycom.limegroup.gnutella.xml.LimeXMLSchemaRepository

public class LimeXMLSchemaRepository
extends java.lang.Object

Stores and provides access to various XML schemas that me might have. Singleton class


Method Summary
 java.lang.String[] getAvailableSchemaURIs()
          Returns the URIs scooresponding to the schemas that we have
 LimeXMLSchema getSchema(java.lang.String uri)
          Returns the schema corresponding to the given URI
protected  void initialize()
          Initializes the internal data structures
static LimeXMLSchemaRepository instance()
          Returns an instance of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initialize

protected void initialize()
Initializes the internal data structures


instance

public static LimeXMLSchemaRepository instance()
Returns an instance of this class. Adheres to Singleton design pattern. So, only one instance of the class is created.


getSchema

public LimeXMLSchema getSchema(java.lang.String uri)
Returns the schema corresponding to the given URI

Parameters:
uri - The URI which identifies the schema to be returned.
Returns:
The schema corresponding to the given uri. If no mapping exists, returns null.

getAvailableSchemaURIs

public java.lang.String[] getAvailableSchemaURIs()
Returns the URIs scooresponding to the schemas that we have

Returns:
the URIs scooresponding to the schemas that we have