[jsword-svn] common/java/config/org/crosswire/common/config s

jswordcvs at crosswire.org jswordcvs at crosswire.org
Mon May 16 17:47:03 MST 2005


Update of /cvs/jsword/common/java/config/org/crosswire/common/config
In directory www.crosswire.org:/tmp/cvs-serv25437/java/config/org/crosswire/common/config

Modified Files:
	IntOptionsChoice.java ConfigListener.java 
	StartupException.java AbstractReflectedChoice.java 
	DirectoryChoice.java BooleanChoice.java FileChoice.java 
	ConfigEvent.java Choice.java Config.java ChoiceFactory.java 
	ClassChoice.java MultipleChoice.java PathChoice.java 
	NumberChoice.java StringChoice.java Msg.java 
	ConfigException.java FontChoice.java StringOptionsChoice.java 
	StringArrayChoice.java 
Log Message:
Added support for CheckStyle plugin.
Added a few more CheckStyle rules.
Fixed a spelling mistake.

Index: StartupException.java
===================================================================
RCS file: /cvs/jsword/common/java/config/org/crosswire/common/config/StartupException.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** StartupException.java	10 May 2005 02:38:36 -0000	1.7
--- StartupException.java	17 May 2005 00:47:01 -0000	1.8
***************
*** 28,32 ****
   * Something in the startup config files failed to start properly.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 28,32 ----
   * Something in the startup config files failed to start properly.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: Config.java
===================================================================
RCS file: /cvs/jsword/common/java/config/org/crosswire/common/config/Config.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** Config.java	10 May 2005 02:38:36 -0000	1.11
--- Config.java	17 May 2005 00:47:01 -0000	1.12
***************
*** 69,73 ****
   * </ul>
   *
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 69,73 ----
   * </ul>
   *
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: ConfigException.java
===================================================================
RCS file: /cvs/jsword/common/java/config/org/crosswire/common/config/ConfigException.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ConfigException.java	10 May 2005 02:38:36 -0000	1.5
--- ConfigException.java	17 May 2005 00:47:01 -0000	1.6
***************
*** 28,32 ****
   * Something went wrong while setting config options.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 28,32 ----
   * Something went wrong while setting config options.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: Msg.java
===================================================================
RCS file: /cvs/jsword/common/java/config/org/crosswire/common/config/Msg.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Msg.java	10 May 2005 02:38:36 -0000	1.4
--- Msg.java	17 May 2005 00:47:01 -0000	1.5
***************
*** 27,38 ****
   * Compile safe Msg resource settings.
   * 
!  * <p><table border='1' cellPadding='3' cellSpacing='0'>
!  * <tr><td bgColor='white' class='TableRowColor'><font size='-7'>
!  *
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
   */
! public class Msg extends MsgBase
  {
      static final Msg CONFIG_NOCLASS = new Msg("AbstractReflectedChoice.ConfigNoClass"); //$NON-NLS-1$
--- 27,35 ----
   * Compile safe Msg resource settings.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
   */
! public final class Msg extends MsgBase
  {
      static final Msg CONFIG_NOCLASS = new Msg("AbstractReflectedChoice.ConfigNoClass"); //$NON-NLS-1$

Index: FileChoice.java
===================================================================
RCS file: /cvs/jsword/common/java/config/org/crosswire/common/config/FileChoice.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** FileChoice.java	10 May 2005 02:38:36 -0000	1.3
--- FileChoice.java	17 May 2005 00:47:01 -0000	1.4
***************
*** 27,31 ****
   * A class to convert between files and objects of a type.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 27,31 ----
   * A class to convert between files and objects of a type.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: DirectoryChoice.java
===================================================================
RCS file: /cvs/jsword/common/java/config/org/crosswire/common/config/DirectoryChoice.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** DirectoryChoice.java	10 May 2005 02:38:36 -0000	1.3
--- DirectoryChoice.java	17 May 2005 00:47:01 -0000	1.4
***************
*** 26,30 ****
   * A class to convert between strings and objects of a type.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 26,30 ----
   * A class to convert between strings and objects of a type.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: ConfigListener.java
===================================================================
RCS file: /cvs/jsword/common/java/config/org/crosswire/common/config/ConfigListener.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ConfigListener.java	10 May 2005 02:38:36 -0000	1.3
--- ConfigListener.java	17 May 2005 00:47:01 -0000	1.4
***************
*** 27,31 ****
   * ConfigListener.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 27,31 ----
   * ConfigListener.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
***************
*** 36,44 ****
       * Called whenever Config.add() is called
       */
!     public void choiceAdded(ConfigEvent ev);
  
      /**
       * Called whenever Config.remove() is called
       */
!     public void choiceRemoved(ConfigEvent ev);
  }
--- 36,44 ----
       * Called whenever Config.add() is called
       */
!     void choiceAdded(ConfigEvent ev);
  
      /**
       * Called whenever Config.remove() is called
       */
!     void choiceRemoved(ConfigEvent ev);
  }

Index: StringOptionsChoice.java
===================================================================
RCS file: /cvs/jsword/common/java/config/org/crosswire/common/config/StringOptionsChoice.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** StringOptionsChoice.java	10 May 2005 02:38:36 -0000	1.6
--- StringOptionsChoice.java	17 May 2005 00:47:01 -0000	1.7
***************
*** 29,33 ****
   * A class to convert between strings and objects of a type.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 29,33 ----
   * A class to convert between strings and objects of a type.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: StringChoice.java
===================================================================
RCS file: /cvs/jsword/common/java/config/org/crosswire/common/config/StringChoice.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** StringChoice.java	10 May 2005 02:38:36 -0000	1.3
--- StringChoice.java	17 May 2005 00:47:01 -0000	1.4
***************
*** 25,29 ****
   * A type of Choice that converts between strings and objects.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 25,29 ----
   * A type of Choice that converts between strings and objects.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: Choice.java
===================================================================
RCS file: /cvs/jsword/common/java/config/org/crosswire/common/config/Choice.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Choice.java	10 May 2005 02:38:36 -0000	1.4
--- Choice.java	17 May 2005 00:47:01 -0000	1.5
***************
*** 36,40 ****
   * </ul>
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 36,40 ----
   * </ul>
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
***************
*** 45,49 ****
       * String value to associate with the name (key)
       */
!     public void init(Element option, ResourceBundle configResources) throws StartupException;
  
      /**
--- 45,49 ----
       * String value to associate with the name (key)
       */
!     void init(Element option, ResourceBundle configResources) throws StartupException;
  
      /**
***************
*** 51,55 ****
       * @return String The path string as supplied in config.properties
       */
!     public String getFullPath();
  
      /**
--- 51,55 ----
       * @return String The path string as supplied in config.properties
       */
!     String getFullPath();
  
      /**
***************
*** 57,61 ****
       * @param fullPath The path string as supplied in config.properties
       */
!     public void setFullPath(String fullPath);
  
      /**
--- 57,61 ----
       * @param fullPath The path string as supplied in config.properties
       */
!     void setFullPath(String fullPath);
  
      /**
***************
*** 63,67 ****
       * @return String The type string as supplied in config.xml
       */
!     public String getType();
  
      /**
--- 63,67 ----
       * @return String The type string as supplied in config.xml
       */
!     String getType();
  
      /**
***************
*** 70,74 ****
       * @return The Class that this Choice works using.
       */
!     public Class getConvertionClass();
  
      /**
--- 70,74 ----
       * @return The Class that this Choice works using.
       */
!     Class getConvertionClass();
  
      /**
***************
*** 76,80 ****
       * @return value of this Choice
       */
!     public String getString();
  
      /**
--- 76,80 ----
       * @return value of this Choice
       */
!     String getString();
  
      /**
***************
*** 84,88 ****
       * @param value The new value for this Choice
       */
!     public void setString(String value) throws Exception;
  
      /**
--- 84,88 ----
       * @param value The new value for this Choice
       */
!     void setString(String value) throws Exception;
  
      /**
***************
*** 90,94 ****
       * @return Some help text
       */
!     public String getHelpText();
  
      /**
--- 90,94 ----
       * @return Some help text
       */
!     String getHelpText();
  
      /**
***************
*** 96,100 ****
       * @param helptext Some help text
       */
!     public void setHelpText(String helptext);
  
      /**
--- 96,100 ----
       * @param helptext Some help text
       */
!     void setHelpText(String helptext);
  
      /**
***************
*** 104,108 ****
       * @return True if it is safe to store the value in a config file.
       */
!     public boolean isSaveable();
  
      /**
--- 104,108 ----
       * @return True if it is safe to store the value in a config file.
       */
!     boolean isSaveable();
  
      /**
***************
*** 114,118 ****
       * @return A priority level
       */
!     public int getPriority();
  
      /**
--- 114,118 ----
       * @return A priority level
       */
!     int getPriority();
  
      /**
***************
*** 121,159 ****
       * @return True if a restart is required
       */
!     public boolean requiresRestart();
  
      /**
       * The highest level priority generally for system level stuff
       */
!     public static final int PRIORITY_SYSTEM = 10;
  
      /**
       * The priority level for important but non system level stuff
       */
!     public static final int PRIORITY_EXTENDER = 9;
  
      /**
       * The priority level for important but non system level stuff
       */
!     public static final int PRIORITY_HIGHEST = 8;
  
      /**
       * The priority level for normal use
       */
!     public static final int PRIORITY_NORMAL = 6;
  
      /**
       * The priority level for creating items for later configuring
       */
!     public static final int PRIORITY_CTOR = 4;
  
      /**
       * The priority level for configuring previously created items
       */
!     public static final int PRIORITY_ACCESSOR = 2;
  
      /**
       * The lowest level priority generally for system level stuff
       */
!     public static final int PRIORITY_LOWEST = 0;
  }
--- 121,159 ----
       * @return True if a restart is required
       */
!     boolean requiresRestart();
  
      /**
       * The highest level priority generally for system level stuff
       */
!     int PRIORITY_SYSTEM = 10;
  
      /**
       * The priority level for important but non system level stuff
       */
!     int PRIORITY_EXTENDER = 9;
  
      /**
       * The priority level for important but non system level stuff
       */
!     int PRIORITY_HIGHEST = 8;
  
      /**
       * The priority level for normal use
       */
!     int PRIORITY_NORMAL = 6;
  
      /**
       * The priority level for creating items for later configuring
       */
!     int PRIORITY_CTOR = 4;
  
      /**
       * The priority level for configuring previously created items
       */
!     int PRIORITY_ACCESSOR = 2;
  
      /**
       * The lowest level priority generally for system level stuff
       */
!     int PRIORITY_LOWEST = 0;
  }

Index: ClassChoice.java
===================================================================
RCS file: /cvs/jsword/common/java/config/org/crosswire/common/config/ClassChoice.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ClassChoice.java	10 May 2005 02:38:36 -0000	1.4
--- ClassChoice.java	17 May 2005 00:47:01 -0000	1.5
***************
*** 27,31 ****
   * A class to convert between strings and objects of a type.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 27,31 ----
   * A class to convert between strings and objects of a type.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: BooleanChoice.java
===================================================================
RCS file: /cvs/jsword/common/java/config/org/crosswire/common/config/BooleanChoice.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** BooleanChoice.java	10 May 2005 02:38:36 -0000	1.3
--- BooleanChoice.java	17 May 2005 00:47:01 -0000	1.4
***************
*** 27,31 ****
   * A class to convert between strings and objects of a type.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 27,31 ----
   * A class to convert between strings and objects of a type.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: ChoiceFactory.java
===================================================================
RCS file: /cvs/jsword/common/java/config/org/crosswire/common/config/ChoiceFactory.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** ChoiceFactory.java	10 May 2005 02:38:36 -0000	1.6
--- ChoiceFactory.java	17 May 2005 00:47:01 -0000	1.7
***************
*** 32,40 ****
   * Factory for the well known Choices.
   *
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
   */
! public class ChoiceFactory
  {
      /**
--- 32,40 ----
   * Factory for the well known Choices.
   *
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
   */
! public final class ChoiceFactory
  {
      /**

Index: NumberChoice.java
===================================================================
RCS file: /cvs/jsword/common/java/config/org/crosswire/common/config/NumberChoice.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** NumberChoice.java	10 May 2005 02:38:36 -0000	1.3
--- NumberChoice.java	17 May 2005 00:47:01 -0000	1.4
***************
*** 27,31 ****
   * A class to convert between strings and objects of a type.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 27,31 ----
   * A class to convert between strings and objects of a type.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: IntOptionsChoice.java
===================================================================
RCS file: /cvs/jsword/common/java/config/org/crosswire/common/config/IntOptionsChoice.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** IntOptionsChoice.java	10 May 2005 02:38:36 -0000	1.9
--- IntOptionsChoice.java	17 May 2005 00:47:01 -0000	1.10
***************
*** 33,37 ****
   * A class to convert between strings and objects of a type.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 33,37 ----
   * A class to convert between strings and objects of a type.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: ConfigEvent.java
===================================================================
RCS file: /cvs/jsword/common/java/config/org/crosswire/common/config/ConfigEvent.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** ConfigEvent.java	10 May 2005 02:38:36 -0000	1.6
--- ConfigEvent.java	17 May 2005 00:47:01 -0000	1.7
***************
*** 27,31 ****
   * An event indicating that an exception has happened.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 27,31 ----
   * An event indicating that an exception has happened.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: StringArrayChoice.java
===================================================================
RCS file: /cvs/jsword/common/java/config/org/crosswire/common/config/StringArrayChoice.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** StringArrayChoice.java	10 May 2005 02:38:36 -0000	1.4
--- StringArrayChoice.java	17 May 2005 00:47:01 -0000	1.5
***************
*** 30,34 ****
   * A class to convert between strings and objects of a type.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 30,34 ----
   * A class to convert between strings and objects of a type.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: MultipleChoice.java
===================================================================
RCS file: /cvs/jsword/common/java/config/org/crosswire/common/config/MultipleChoice.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** MultipleChoice.java	10 May 2005 02:38:36 -0000	1.3
--- MultipleChoice.java	17 May 2005 00:47:01 -0000	1.4
***************
*** 26,30 ****
   * options.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 26,30 ----
   * options.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
***************
*** 37,40 ****
       * @return A string array of alternatives.
       */
!     public String[] getOptions();
  }
--- 37,40 ----
       * @return A string array of alternatives.
       */
!     String[] getOptions();
  }

Index: AbstractReflectedChoice.java
===================================================================
RCS file: /cvs/jsword/common/java/config/org/crosswire/common/config/AbstractReflectedChoice.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** AbstractReflectedChoice.java	10 May 2005 02:38:36 -0000	1.6
--- AbstractReflectedChoice.java	17 May 2005 00:47:01 -0000	1.7
***************
*** 32,36 ****
   * A helper for when we need to be a choice created dynamically.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 32,36 ----
   * A helper for when we need to be a choice created dynamically.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: PathChoice.java
===================================================================
RCS file: /cvs/jsword/common/java/config/org/crosswire/common/config/PathChoice.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** PathChoice.java	10 May 2005 02:38:36 -0000	1.3
--- PathChoice.java	17 May 2005 00:47:01 -0000	1.4
***************
*** 29,33 ****
   * A class to convert between strings and objects of a type.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 29,33 ----
   * A class to convert between strings and objects of a type.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: FontChoice.java
===================================================================
RCS file: /cvs/jsword/common/java/config/org/crosswire/common/config/FontChoice.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** FontChoice.java	10 May 2005 02:38:36 -0000	1.3
--- FontChoice.java	17 May 2005 00:47:01 -0000	1.4
***************
*** 25,29 ****
   * A class to convert between strings and objects of a type.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 25,29 ----
   * A class to convert between strings and objects of a type.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]



More information about the jsword-svn mailing list