org.openrdf.sesame.config
Class SailConfig

java.lang.Object
  extended byorg.openrdf.sesame.config.SailConfig
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
NativeRdfRepositoryConfig, RdfRepositoryConfig, RdfSourceConfig

public class SailConfig
extends Object
implements Cloneable

Representation of the configuration settings for a Sail object.


Constructor Summary
SailConfig(String sailClass)
           
 
Method Summary
 Object clone()
           
 boolean equals(Object other)
           
 Map getConfigParameters()
           
 String getParameter(String name)
          Retrieves the parameter with the supplied name.
 String getSailClass()
          Returns the sail class of the Sail object represented by this SailConfig.
 int hashCode()
           
 boolean hasParameter(String key)
          Checks if the parameter with the supplied key exists
 void removeParameter(String key)
          Removes the parameter with the supplied key
 void setConfigParameters(Map configParams)
           
 void setParameter(String name, String value)
          Sets the parameter with the supplied value.
 void setParameterKey(String oldKey, String newKey)
          Sets the key of the parameter with the supplied old key to the given new key
 void setParameterValue(String key, String value)
          Sets the value of the parameter with the supplied key to the given value
 void setSailClass(String sailClass)
          Sets the sail class of the Sail object represented by this SailConfig.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SailConfig

public SailConfig(String sailClass)
Method Detail

getSailClass

public String getSailClass()
Returns the sail class of the Sail object represented by this SailConfig.


setSailClass

public void setSailClass(String sailClass)
Sets the sail class of the Sail object represented by this SailConfig.

Parameters:
sailClass - the full class name of the Sail object.

setParameter

public void setParameter(String name,
                         String value)
Sets the parameter with the supplied value.

Parameters:
name - the name of the parameter
value - the value of the parameter

removeParameter

public void removeParameter(String key)
Removes the parameter with the supplied key

Parameters:
key - Parameter key

getParameter

public String getParameter(String name)
Retrieves the parameter with the supplied name.

Parameters:
name - the name of the parameter
Returns:
the value of the parameter if set, null otherwise.

setParameterKey

public void setParameterKey(String oldKey,
                            String newKey)
Sets the key of the parameter with the supplied old key to the given new key

Parameters:
oldKey - Old parameter key
newKey - New parameter key

setParameterValue

public void setParameterValue(String key,
                              String value)
Sets the value of the parameter with the supplied key to the given value

Parameters:
key - Parameter key
value - Parameter value

hasParameter

public boolean hasParameter(String key)
Checks if the parameter with the supplied key exists

Parameters:
key - Parameter key
Returns:
Boolean indicating if the parameter exists

getConfigParameters

public Map getConfigParameters()

setConfigParameters

public void setConfigParameters(Map configParams)

equals

public boolean equals(Object other)

hashCode

public int hashCode()

clone

public Object clone()


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.