commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/latka/src/java/org/apache/commons/latka Suite.java
Date Sat, 02 Feb 2002 12:07:20 GMT
dion        02/02/02 04:07:20

  Modified:    latka/src/java/org/apache/commons/latka Suite.java
  Log:
  Javadocs and formatting
  
  Revision  Changes    Path
  1.8       +65 -61    jakarta-commons/latka/src/java/org/apache/commons/latka/Suite.java
  
  Index: Suite.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/java/org/apache/commons/latka/Suite.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- Suite.java	19 Sep 2001 22:24:40 -0000	1.7
  +++ Suite.java	2 Feb 2002 12:07:20 -0000	1.8
  @@ -72,65 +72,69 @@
    */
   public class Suite {
   
  -  protected Reader _reader = null;
  -  protected URL _url = null;
  +    /** reader stream containing a Latka XML suite */
  +    protected Reader _reader = null;
  +    /** test suite URL */
  +    protected URL _url = null;
  +
  +    /**
  +     * Create a test suite from an XML document located in the
  +     * designated Stream.
  +     *
  +     * @param reader stream containing a Latka XML suite
  +     */
  +    public Suite(Reader reader) {
  +        _reader = reader;
  +    }
  +
  +    /**
  +     * Create a test suite from an XML document located at the
  +     * designated URL.
  +     *
  +     * @param url of a Latka XML suite
  +     */
  +    public Suite(URL url) {
  +        _url = url;
  +    }
  +
  +    /**
  +     * URL containing the test suite.
  +     * 
  +     * @return test suite URL
  +     */
  +    public URL getURL() {
  +        return _url;
  +    }
  +
  +    /**
  +     * Set the URL of the test suite.  Much like a SAX 
  +     * InputSource, you may set both a Reader and a URL, 
  +     * indicating that while the base XML document is 
  +     * inside a Reader, the parser resolves entities 
  +     * relative to the given URL.
  +     * @param url the URL to set
  +     */
  +    public void setURL(URL url) {
  +        _url = url;
  +    }
  +
  +    /**
  +     * The reader containing the Latka XML suite
  +     * 
  +     * @return source of the Latka suite
  +     */
  +    public Reader getReader() {
  +        return _reader;
  +    }
  +
  +    /**
  +     * Sets a Reader for the XML.  See {@link #setURL(URL)}
  +     * method for a description of using URLs and Readers in 
  +     * conjunction.
  +     * @param reader the reader to be set
  +     */
  +    public void setReader(Reader reader) {
  +        _reader = reader;
  +    }
   
  -  /**
  -   * Create a test suite from an XML document located in the
  -   * designated Stream.
  -   *
  -   * @param reader stream containing a Latka XML suite
  -   */
  -  public Suite(Reader reader) {
  -    _reader = reader;
  -  }
  -
  -  /**
  -   * Create a test suite from an XML document located at the
  -   * designated URL.
  -   *
  -   * @param URL of a Latka XML suite
  -   */
  -  public Suite(URL url) {
  -    _url = url;
  -  }
  -
  -  /**
  -   * URL containing the test suite.
  -   * 
  -   * @return test suite URL
  -   */
  -  public URL getURL() {
  -    return _url;
  -  }
  -
  -  /**
  -   * Set the URL of the test suite.  Much like a SAX 
  -   * InputSource, you may set both a Reader and a URL, 
  -   * indicating that while the base XML document is 
  -   * inside a Reader, the parser resolves entities 
  -   * relative to the given URL.
  -   */
  -  public void setURL(URL url) {
  -    _url = url;
  -  }
  -
  -  /**
  -   * The reader containing the Latka XML suite
  -   * 
  -   * @return source of the Latka suite
  -   */
  -  public Reader getReader() {
  -    return _reader;
  -  }
  -
  -  /**
  -   * Sets a Reader for the XML.  See {@link #setURL(URL)}
  -   * method for a description of using URLs and Readers in 
  -   * conjunction.
  -   */
  -  public void setReader(Reader reader) {
  -    _reader = reader;
  -  }
  -
  -}
  +}
  \ No newline at end of file
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message