Author: batosai
Date: 2008-09-22 15:56:37 +0000 (Mon, 22 Sep 2008)
New Revision: 22739

Modified:
   trunk/plugins/WoT/Config.java
   trunk/plugins/WoT/Version.java
   trunk/plugins/WoT/exceptions/DuplicateIdentityException.java
   trunk/plugins/WoT/exceptions/DuplicateScoreException.java
   trunk/plugins/WoT/exceptions/DuplicateTrustException.java
   trunk/plugins/WoT/exceptions/InvalidParameterException.java
   trunk/plugins/WoT/exceptions/NotInTrustTreeException.java
   trunk/plugins/WoT/exceptions/NotTrustedException.java
   trunk/plugins/WoT/exceptions/UnknownIdentityException.java
Log:
Javadoc.

Modified: trunk/plugins/WoT/Config.java
===================================================================
--- trunk/plugins/WoT/Config.java       2008-09-22 15:37:47 UTC (rev 22738)
+++ trunk/plugins/WoT/Config.java       2008-09-22 15:56:37 UTC (rev 22739)
@@ -38,6 +38,12 @@
                }
        }

+       /**
+        * Sets a configuration parameter and stores it in the database.
+        *  
+        * @param key
+        * @param value
+        */
        public synchronized void set(String key, String value) {
                synchronized(this) {
                        params.put(key, value);
@@ -45,10 +51,20 @@
                }
        }

+       /**
+        * Gets a configuration parameter.
+        * 
+        * @param key
+        * @return value of the configuration parameter
+        */
        public synchronized String get(String key) {
                return params.get(key);
        }

+       /**
+        * @param key name of the configuration parameter
+        * @return whethet it exists or not
+        */
        public synchronized boolean contains(String key) {
                return params.containsKey(key);
        }

Modified: trunk/plugins/WoT/Version.java
===================================================================
--- trunk/plugins/WoT/Version.java      2008-09-22 15:37:47 UTC (rev 22738)
+++ trunk/plugins/WoT/Version.java      2008-09-22 15:56:37 UTC (rev 22739)
@@ -6,6 +6,8 @@
 package plugins.WoT;

 /**
+ * Necessary to be able to use pluginmanager's versions
+ * 
  * @author Julien Cornuwel (batosai at freenetproject.org)
  *
  */

Modified: trunk/plugins/WoT/exceptions/DuplicateIdentityException.java
===================================================================
--- trunk/plugins/WoT/exceptions/DuplicateIdentityException.java        
2008-09-22 15:37:47 UTC (rev 22738)
+++ trunk/plugins/WoT/exceptions/DuplicateIdentityException.java        
2008-09-22 15:56:37 UTC (rev 22739)
@@ -6,6 +6,9 @@
 package plugins.WoT.exceptions;

 /**
+ * Thrown when there are more than one Identities with the same id
+ * in the database. Should never happen anymore.
+ * 
  * @author Julien Cornuwel (batosai at freenetproject.org)
  *
  */

Modified: trunk/plugins/WoT/exceptions/DuplicateScoreException.java
===================================================================
--- trunk/plugins/WoT/exceptions/DuplicateScoreException.java   2008-09-22 
15:37:47 UTC (rev 22738)
+++ trunk/plugins/WoT/exceptions/DuplicateScoreException.java   2008-09-22 
15:56:37 UTC (rev 22739)
@@ -6,6 +6,9 @@
 package plugins.WoT.exceptions;

 /**
+ * Thrown when there are more than one Score for an Identity
+ * (in the same trust tree) in the database. Should never happen anymore.
+ * 
  * @author Julien Cornuwel (batosai at freenetproject.org)
  *
  */

Modified: trunk/plugins/WoT/exceptions/DuplicateTrustException.java
===================================================================
--- trunk/plugins/WoT/exceptions/DuplicateTrustException.java   2008-09-22 
15:37:47 UTC (rev 22738)
+++ trunk/plugins/WoT/exceptions/DuplicateTrustException.java   2008-09-22 
15:56:37 UTC (rev 22739)
@@ -6,6 +6,9 @@
 package plugins.WoT.exceptions;

 /**
+ * Thrown when there are more than one Trust relationships between 
+ * two identities in the database. Should never happen anymore.
+ * 
  * @author Julien Cornuwel (batosai at freenetproject.org)
  */
 public class DuplicateTrustException extends Exception {

Modified: trunk/plugins/WoT/exceptions/InvalidParameterException.java
===================================================================
--- trunk/plugins/WoT/exceptions/InvalidParameterException.java 2008-09-22 
15:37:47 UTC (rev 22738)
+++ trunk/plugins/WoT/exceptions/InvalidParameterException.java 2008-09-22 
15:56:37 UTC (rev 22739)
@@ -6,6 +6,8 @@
 package plugins.WoT.exceptions;

 /**
+ * Thrown the user supplied an invalid parameter.
+ * 
  * @author Julien Cornuwel (batosai at freenetproject.org)
  *
  */

Modified: trunk/plugins/WoT/exceptions/NotInTrustTreeException.java
===================================================================
--- trunk/plugins/WoT/exceptions/NotInTrustTreeException.java   2008-09-22 
15:37:47 UTC (rev 22738)
+++ trunk/plugins/WoT/exceptions/NotInTrustTreeException.java   2008-09-22 
15:56:37 UTC (rev 22739)
@@ -6,6 +6,9 @@
 package plugins.WoT.exceptions;

 /**
+ * Thrown when querying the Score of an Identity that is 
+ * not in the trust tree.
+ * 
  * @author Julien Cornuwel (batosai at freenetproject.org)
  *
  */

Modified: trunk/plugins/WoT/exceptions/NotTrustedException.java
===================================================================
--- trunk/plugins/WoT/exceptions/NotTrustedException.java       2008-09-22 
15:37:47 UTC (rev 22738)
+++ trunk/plugins/WoT/exceptions/NotTrustedException.java       2008-09-22 
15:56:37 UTC (rev 22739)
@@ -6,6 +6,9 @@
 package plugins.WoT.exceptions;

 /**
+ * Thrown when querying the Trust between two identities
+ * that don't trust each other.
+ * 
  * @author Julien Cornuwel (batosai at freenetproject.org)
  */
 public class NotTrustedException extends Exception {

Modified: trunk/plugins/WoT/exceptions/UnknownIdentityException.java
===================================================================
--- trunk/plugins/WoT/exceptions/UnknownIdentityException.java  2008-09-22 
15:37:47 UTC (rev 22738)
+++ trunk/plugins/WoT/exceptions/UnknownIdentityException.java  2008-09-22 
15:56:37 UTC (rev 22739)
@@ -6,6 +6,8 @@
 package plugins.WoT.exceptions;

 /**
+ * Thrown when querying an Identity that doesn't exist in the database.
+ * 
  * @author Julien Cornuwel (batosai at freenetproject.org)
  *
  */


Reply via email to