Changeset 2551


Ignore:
Timestamp:
04/04/07 05:10:51 (13 years ago)
Author:
curtis
Message:

Tweak documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/ClassList.java

    r2550 r2551  
    4040  // -- Fields -- 
    4141 
    42   /** Base class from which all classes are assignable. */ 
     42  /** Base class to which all classes are assignable. */ 
    4343  private Class base; 
    4444 
     
    5050  /** 
    5151   * Constructs a list of classes, initially empty. 
    52    * @param base Base class from which all classes are assignable. 
     52   * @param base Base class to which all classes are assignable. 
    5353   */ 
    5454  public ClassList(Class base) { 
     
    6060   * Constructs a list of classes from the given configuration file. 
    6161   * @param file Configuration file containing the list of classes. 
    62    * @param base Base class from which all classes are assignable. 
     62   * @param base Base class to which all classes are assignable. 
    6363   * @throws IOException if the file cannot be read. 
    6464   */ 
     
    107107  /** 
    108108   * Adds the given class, which must be assignable 
    109    * from the base class, to the list. 
     109   * to the base class, to the list. 
    110110   * 
    111    * @throws FormatException if the class is not assignable from the base class. 
     111   * @throws FormatException if the class is not assignable to the base class. 
    112112   */ 
    113113  public void addClass(Class c) throws FormatException { 
    114114    if (base != null && !base.isAssignableFrom(c)) { 
    115115      throw new FormatException( 
    116         "Class is not assignable from the base class"); 
     116        "Class is not assignable to the base class"); 
    117117    } 
    118118    classes.add(c); 
Note: See TracChangeset for help on using the changeset viewer.