Changeset 2921

Show
Ignore:
Timestamp:
30.01.2002 01:47:34 (18 years ago)
Author:
cs025
Message:

Added stuff to cope with Metadata settings being controlled separately.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/java-client/org/nzdl/gsdl/service/NzdlQuery.java

    r2688 r2921  
    6363    setEndResults  ( NzdlConstants.DEFAULT_END_RESULTS ); 
    6464    setMaxDocs     ( NzdlConstants.DEFAULT_MAX_DOCS ); 
     65        setMetadata    ( NzdlConstants.DEFAULT_QUERY_META); 
    6566  } 
    6667 
     
    184185  } 
    185186 
     187    /** 
     188   *    Set the retrieval of extended Metadata information in the result set. 
     189     *  The default is off (false) 
     190     *  @param whether to retrieve metadata. 
     191     */ 
     192    public void setMetadata(boolean _set) 
     193    {   m_Options.put("Metadata", new Boolean(_set)); 
     194    } 
     195 
    186196  /** 
    187197  * Returns whether query is "ranked" or "boolean". "ranked" orders results by 
     
    260270  } 
    261271 
     272    /** 
     273   *    Get the retrieval of extended Metadata information in the result set. 
     274     *  The default is off (false) 
     275     *  @return whether to retrieve metadata. 
     276     */ 
     277    public boolean getMetadata() 
     278    {   return ((Boolean) m_Options.get("Metadata")).booleanValue(); 
     279    } 
     280 
    262281  /** 
    263282  * Returns the set of query terms.