wam         2002/06/21 06:26:16

  Modified:    src/share/org/apache/slide/search/basic BasicQuery.java
                        IBasicQuery.java
  Log:
  provide the propertyProvider
  
  Revision  Changes    Path
  1.12      +24 -4     
jakarta-slide/src/share/org/apache/slide/search/basic/BasicQuery.java
  
  Index: BasicQuery.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/share/org/apache/slide/search/basic/BasicQuery.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- BasicQuery.java   21 Jun 2002 07:23:10 -0000      1.11
  +++ BasicQuery.java   21 Jun 2002 13:26:16 -0000      1.12
  @@ -159,6 +159,9 @@
       /** used to get the slidePath */
       protected SlideUri slideUri;
       
  +    /** The provider for the properties */
  +    protected PropertyProvider propertyProvider;
  +    
       
       protected BasicQuery(SearchToken searchToken) {
           this.searchToken = searchToken;
  @@ -187,11 +190,27 @@
           return slideUri.getSlidePath (scope.getHref());
       }
       
  +    /**
  +     * Method getSearchToken
  +     *
  +     * @return   a SearchToken
  +     *
  +     */
       public SearchToken getSearchToken (){
           return searchToken;
       }
       
       /**
  +     * Method getPropertyProvider
  +     *
  +     * @return   a PropertyProvider
  +     *
  +     */
  +    public PropertyProvider getPropertyProvider () {
  +        return propertyProvider;
  +    }
  +    
  +    /**
        * Builds the internal structure from the JDOM tree. Concrete implementations
        * may use parseQueryElementWithoutExpression to create most of the
        * objects describing the query.
  @@ -205,6 +224,7 @@
       public void parseQueryElement (Element basicSearchElement, PropertyProvider 
propertyProvider) throws BadQueryException {
   
           scope = getScope(basicSearchElement);
  +        this.propertyProvider = propertyProvider;
           
           // might be null in testsuite
           if (searchToken.getNamespace() != null) {
  
  
  
  1.2       +13 -4     
jakarta-slide/src/share/org/apache/slide/search/basic/IBasicQuery.java
  
  Index: IBasicQuery.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/share/org/apache/slide/search/basic/IBasicQuery.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IBasicQuery.java  19 Jun 2002 11:00:11 -0000      1.1
  +++ IBasicQuery.java  21 Jun 2002 13:26:16 -0000      1.2
  @@ -176,5 +176,14 @@
        */
       int getLimit ();
       
  +    /**
  +     * Method getPropertyProvider
  +     *
  +     * @return   a PropertyProvider
  +     *
  +     */
  +    public PropertyProvider getPropertyProvider ();
  +
  +    
   }
       
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to