com.limegroup.gnutella.xml
Class LimeXMLProperties

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

public class LimeXMLProperties
extends java.lang.Object

This class manages the properties needed by the com.limegroup.gnutella.server.** package It maintains default settings for values not set in the saved settings files.

Adheres to Singleton design pattern. So, only one instance of the class gets created.


Field Summary
static long DEFAULT_NONFILE_INDEX
          The default index for responses when there is no there no file and hecne to no download.
 
Method Summary
 java.io.File[] getAllXMLSchemaFiles()
          Returns the files pertaining to the XML Schemas used for querying/responding
 java.lang.String getPath()
          Returns the base path for properties
 java.lang.String getUserMapFile()
          Returns the name of the file that stores user information map
 java.lang.String getXMLDisplayPropsDir()
           
 java.lang.String getXMLDocsDir()
          Returns the name of the directory where the XML Documents are located
 java.lang.String getXMLImagesDir()
          Returns the name of the directory in which XML Images are located.
 java.lang.String getXMLSchemaDir()
          Returns the name of the directory in which XML Schemas are located for querying and responding.
static LimeXMLProperties instance()
          If an instance of this object has been already initialized, returns it, else initializes a new instance and returns the same
protected  void loadProperties()
          Loads the settings from the default properties file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NONFILE_INDEX

public static final long DEFAULT_NONFILE_INDEX
The default index for responses when there is no there no file and hecne to no download. The value is set to 2^32 -1

See Also:
Constant Field Values
Method Detail

loadProperties

protected void loadProperties()
Loads the settings from the default properties file


instance

public static LimeXMLProperties instance()
If an instance of this object has been already initialized, returns it, else initializes a new instance and returns the same

Returns:
The initialized instance of this class

getXMLSchemaDir

public java.lang.String getXMLSchemaDir()
Returns the name of the directory in which XML Schemas are located for querying and responding.


getXMLImagesDir

public java.lang.String getXMLImagesDir()
Returns the name of the directory in which XML Images are located.


getXMLDocsDir

public java.lang.String getXMLDocsDir()
Returns the name of the directory where the XML Documents are located


getXMLDisplayPropsDir

public java.lang.String getXMLDisplayPropsDir()

getAllXMLSchemaFiles

public java.io.File[] getAllXMLSchemaFiles()
Returns the files pertaining to the XML Schemas used for querying/responding


getUserMapFile

public java.lang.String getUserMapFile()
Returns the name of the file that stores user information map


getPath

public java.lang.String getPath()
Returns the base path for properties