com.limegroup.gnutella.xml
Class SchemaReplyCollectionMapper

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

public class SchemaReplyCollectionMapper
extends java.lang.Object

Used to map schema URIs to Reply Collections.

Uses the singleton pattern.

Used by the RichInfoLoader, which is responsible for creating this mapping


Method Summary
 void add(java.lang.String schemaURI, LimeXMLReplyCollection replyCollection)
          Adds the SchemaURI to a HashMap with the replyCollection.
 LimeXMLReplyCollection getReplyCollection(java.lang.String schemaURI)
          Looks up and returns the LimeXMLReplyCollection value for the supplied schemaURI key.
static SchemaReplyCollectionMapper instance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static SchemaReplyCollectionMapper instance()

add

public void add(java.lang.String schemaURI,
                LimeXMLReplyCollection replyCollection)
Adds the SchemaURI to a HashMap with the replyCollection.

Warning/Note:If the schemaURI already corresponds to a ReplyCollection this method will replace thet old reply collection with the new one. The old collection will be lost!


getReplyCollection

public LimeXMLReplyCollection getReplyCollection(java.lang.String schemaURI)
Looks up and returns the LimeXMLReplyCollection value for the supplied schemaURI key.