org.basex.util.ft
Class FTOpt

java.lang.Object
  extended by org.basex.data.ExprInfo
      extended by org.basex.util.ft.FTOpt

public final class FTOpt
extends ExprInfo

This class contains all full-text options.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Field Summary
 Language ln
          Language.
 StemDir sd
          Stemming dictionary.
 StopWords sw
          Stop words.
 ThesQuery th
          Thesaurus.
 
Constructor Summary
FTOpt()
           
 
Method Summary
 FTOpt copy(FTOpt opt)
          Initializes the full-text options, inheriting the options of the argument.
 FTOpt copy(MetaData md)
          Copies the full-text options from the specified database meta data.
 boolean is(FTFlag f)
          Returns the specified flag.
 boolean isSet(FTFlag f)
          Tests if the specified flag has been set.
 void plan(FElem plan)
          Creates an expression tree.
 void set(FTFlag f, boolean v)
          Sets the specified flag.
 java.lang.String toString()
           
 
Methods inherited from class org.basex.data.ExprInfo
addPlan, addPlan, description, info, planAttr, planElem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sd

public StemDir sd
Stemming dictionary.


sw

public StopWords sw
Stop words.


th

public ThesQuery th
Thesaurus.


ln

public Language ln
Language.

Constructor Detail

FTOpt

public FTOpt()
Method Detail

copy

public FTOpt copy(FTOpt opt)
Initializes the full-text options, inheriting the options of the argument.

Parameters:
opt - parent full-text options
Returns:
self reference

copy

public FTOpt copy(MetaData md)
Copies the full-text options from the specified database meta data.

Parameters:
md - meta data
Returns:
self reference

set

public void set(FTFlag f,
                boolean v)
Sets the specified flag.

Parameters:
f - flag to be set
v - value

isSet

public boolean isSet(FTFlag f)
Tests if the specified flag has been set.

Parameters:
f - flag index
Returns:
true if flag has been set

is

public boolean is(FTFlag f)
Returns the specified flag.

Parameters:
f - flag index
Returns:
flag

plan

public void plan(FElem plan)
Description copied from class: ExprInfo
Creates an expression tree.

Specified by:
plan in class ExprInfo
Parameters:
plan - root element

toString

public java.lang.String toString()
Specified by:
toString in class ExprInfo