cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giac...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/components/lucene CocoonCrawler.java LuceneCocoonSearcher.java LuceneXMLIndexer.java LuceneCocoonIndexer.java
Date Sat, 22 Dec 2001 18:31:26 GMT
giacomo     01/12/22 10:31:26

  Modified:    src/org/apache/cocoon/components/lucene CocoonCrawler.java
                        LuceneCocoonSearcher.java LuceneXMLIndexer.java
                        LuceneCocoonIndexer.java
  Log:
  removed redundant modifiers in interfaces
  fixed accoring to the coding convention use in Cocoon
  
  Revision  Changes    Path
  1.2       +9 -9      xml-cocoon2/src/org/apache/cocoon/components/lucene/CocoonCrawler.java
  
  Index: CocoonCrawler.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/lucene/CocoonCrawler.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CocoonCrawler.java	2001/12/11 23:00:24	1.1
  +++ CocoonCrawler.java	2001/12/22 18:31:26	1.2
  @@ -16,16 +16,16 @@
    * A cocoon crawler component
    */
   public interface CocoonCrawler extends Component {
  -  public final static String ROLE = "org.apache.cocoon.components.lucene.CocoonCrawler";
  +    String ROLE = "org.apache.cocoon.components.lucene.CocoonCrawler";
   
  -  /**
  -   * start crawlin the URL
  -   */
  -  public void crawl( URL url );
  +    /**
  +     * start crawlin the URL
  +     */
  +    void crawl(URL url);
   
  -  /**
  -   * iterate over crawled URL
  -   */
  -  public Iterator iterator();
  +    /**
  +     * iterate over crawled URL
  +     */
  +    Iterator iterator();
   }
   
  
  
  
  1.2       +4 -4      xml-cocoon2/src/org/apache/cocoon/components/lucene/LuceneCocoonSearcher.java
  
  Index: LuceneCocoonSearcher.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/lucene/LuceneCocoonSearcher.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LuceneCocoonSearcher.java	2001/12/11 23:00:24	1.1
  +++ LuceneCocoonSearcher.java	2001/12/22 18:31:26	1.2
  @@ -14,10 +14,10 @@
   import org.apache.lucene.search.Hits;
   
   public interface LuceneCocoonSearcher extends Component {
  -  public final static String ROLE = "org.apache.cocoon.components.lucene.LuceneCocoonSearcher";
  +    String ROLE = "org.apache.cocoon.components.lucene.LuceneCocoonSearcher";
     
  -  public void setAnalyzer( Analyzer analyzer );
  -  public void setDirectory( Directory directory );
  -  public Hits search( String query_string, String default_field ) throws ProcessingException;
  +    void setAnalyzer(Analyzer analyzer);
  +    void setDirectory(Directory directory);
  +    Hits search(String query_string, String default_field) throws ProcessingException;
   }
   
  
  
  
  1.2       +23 -24    xml-cocoon2/src/org/apache/cocoon/components/lucene/LuceneXMLIndexer.java
  
  Index: LuceneXMLIndexer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/lucene/LuceneXMLIndexer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LuceneXMLIndexer.java	2001/12/11 23:00:24	1.1
  +++ LuceneXMLIndexer.java	2001/12/22 18:31:26	1.2
  @@ -33,33 +33,32 @@
    */
   public interface LuceneXMLIndexer extends Component {
     
  -  public final static String ROLE = "org.apache.cocoon.components.lucene.LuceneXMLIndexer";
  +    String ROLE = "org.apache.cocoon.components.lucene.LuceneXMLIndexer";
     
  -  /** Field of document's body, ie <tt>body</tt> (mandatory).
  -  */
  -  public static final String BODY_FIELD = "body";
  -  public static final String URL_FIELD = "url";
  -  public static final String UID_FIELD = "uid";
  +    /** Field of document's body, ie <tt>body</tt> (mandatory).  */
  +    String BODY_FIELD = "body";
  +    String URL_FIELD = "url";
  +    String UID_FIELD = "uid";
   
  -  /**
  -   * return a list of all lucene documents generated by @see build
  -   *
  -   * @return List list of lucene Documents
  -   */
  -  public List allDocuments();
  +    /**
  +     * return a list of all lucene documents generated by @see build
  +     *
  +     * @return List list of lucene Documents
  +     */
  +    List allDocuments();
   
  -  /**
  -   * return an iterator of all lucene documents generated by @see build
  -   *
  -   * @return Iterator iterator of lucene Documents
  -   */
  -  public Iterator iterator();
  +    /**
  +     * return an iterator of all lucene documents generated by @see build
  +     *
  +     * @return Iterator iterator of lucene Documents
  +     */
  +    Iterator iterator();
   
  -  /**
  -   * Build lucenen documents from a URL
  -   *
  -   * @param url the content of this url gets indexed.
  -   */
  -  public void build(URL url) throws ProcessingException;
  +    /**
  +     * Build lucenen documents from a URL
  +     *
  +     * @param url the content of this url gets indexed.
  +     */
  +    void build(URL url) throws ProcessingException;
   }
   
  
  
  
  1.2       +4 -4      xml-cocoon2/src/org/apache/cocoon/components/lucene/LuceneCocoonIndexer.java
  
  Index: LuceneCocoonIndexer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/lucene/LuceneCocoonIndexer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LuceneCocoonIndexer.java	2001/12/11 23:00:24	1.1
  +++ LuceneCocoonIndexer.java	2001/12/22 18:31:26	1.2
  @@ -17,11 +17,11 @@
   
   public interface LuceneCocoonIndexer extends Component {
     
  -  public final static String ROLE = "org.apache.cocoon.components.lucene.LuceneCocoonIndexer";
  +    String ROLE = "org.apache.cocoon.components.lucene.LuceneCocoonIndexer";
   
  -  public void setAnalyzer( Analyzer analyzer );
  +    void setAnalyzer(Analyzer analyzer);
     
  -  public void index( Directory index, boolean create, URL base_url  ) 
  -    throws ProcessingException;
  +    void index(Directory index, boolean create, URL base_url) 
  +        throws ProcessingException;
   }
   
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message