de.pangaea.metadataportal.config
Class Config

java.lang.Object
  extended by de.pangaea.metadataportal.config.Config

public class Config
extends Object

Main panFMP configuration class. It loads the configuration from a XML file.

Author:
Uwe Schindler

Nested Class Summary
static class Config.ConfigMode
           
static class Config.IndexDirImplementation
           
 
Field Summary
protected  Class<? extends Analyzer> analyzerClass
           
protected  de.pangaea.metadataportal.config.Config.AnalyzerFactory analyzerFactory
           
static int DEFAULT_MAX_CLAUSE_COUNT
           
 ExpressionConfig defaultField
           
 Field.TermVector defaultFieldTermVectors
           
protected  ExtendedDigester dig
           
 ExpressionConfig documentBoost
           
 Map<String,FieldConfig> fields
           
 String file
           
 FilterConfig.FilterType filterDefault
           
 List<FilterConfig> filters
           
 Properties globalHarvesterProperties
           
 boolean haltOnSchemaError
           
 Config.IndexDirImplementation indexDirImplementation
           
 Map<String,IndexConfig> indexes
           
 Set<IndexWriter.IndexReaderWarmer> indexReaderWarmers
           
 Version indexVersionCompatibility
           
protected static org.apache.commons.logging.Log log
           
 CharArraySet luceneStopWords
           
 Schema schema
           
 Properties searchProperties
           
 int triePrecisionStep
           
 boolean validateWithAugmentation
           
 List<VariableConfig> xPathVariables
           
 
Constructor Summary
Config(String file, Config.ConfigMode configMode)
           
 
Method Summary
 void addField(FieldConfig f)
           
 void addFilter(FilterConfig f)
           
 void addGlobalHarvesterProperty(String value)
          Deprecated. 
 void addIndex(IndexConfig i)
           
 void addSearchProperty(String value)
          Deprecated. 
 void addStopWords(String stopWords)
          Deprecated. 
 void addVariable(VariableConfig f)
           
 Analyzer getAnalyzer()
           
 void importEnglishStopWords(String dummy)
          Deprecated. 
 String makePathAbsolute(String file)
          makes the given local filesystem path absolute and resolve it relative to config directory
 String makePathAbsolute(String file, boolean allowURL)
          makes the given local filesystem path or URL absolute and resolve it relative to config directory (if local)
 void setAnalyzer(String v)
          Deprecated. 
 void setAnalyzerClass(Class<? extends Analyzer> c)
           
 void setAugmentation(String v)
          Deprecated. 
 void setDefaultField(String termVectors, String xpath)
          Deprecated. 
 void setDocumentBoost(String v)
          Deprecated. 
 void setFilterDefault(String v)
          Deprecated. 
 void setHaltOnSchemaError(String v)
          Deprecated. 
 void setIndexDirImplementation(String v)
          Deprecated. 
 void setIndexVersionCompatibility(String v)
          Deprecated. 
 void setSchema(String namespace, String url)
           
 void setTriePrecisionStep(int v)
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log

indexes

public final Map<String,IndexConfig> indexes

fields

public final Map<String,FieldConfig> fields

defaultField

public ExpressionConfig defaultField

defaultFieldTermVectors

public Field.TermVector defaultFieldTermVectors

filterDefault

public FilterConfig.FilterType filterDefault

filters

public final List<FilterConfig> filters

xPathVariables

public final List<VariableConfig> xPathVariables

schema

public Schema schema

haltOnSchemaError

public boolean haltOnSchemaError

validateWithAugmentation

public boolean validateWithAugmentation

documentBoost

public ExpressionConfig documentBoost

triePrecisionStep

public int triePrecisionStep

indexDirImplementation

public Config.IndexDirImplementation indexDirImplementation

indexVersionCompatibility

public Version indexVersionCompatibility

searchProperties

public final Properties searchProperties

globalHarvesterProperties

public final Properties globalHarvesterProperties

luceneStopWords

public final CharArraySet luceneStopWords

analyzerClass

protected Class<? extends Analyzer> analyzerClass

analyzerFactory

protected de.pangaea.metadataportal.config.Config.AnalyzerFactory analyzerFactory

file

public String file

indexReaderWarmers

public final Set<IndexWriter.IndexReaderWarmer> indexReaderWarmers

dig

protected ExtendedDigester dig

DEFAULT_MAX_CLAUSE_COUNT

public static final int DEFAULT_MAX_CLAUSE_COUNT
See Also:
Constant Field Values
Constructor Detail

Config

public Config(String file,
              Config.ConfigMode configMode)
       throws Exception
Throws:
Exception
Method Detail

makePathAbsolute

public final String makePathAbsolute(String file)
                              throws IOException
makes the given local filesystem path absolute and resolve it relative to config directory

Throws:
IOException

makePathAbsolute

public String makePathAbsolute(String file,
                               boolean allowURL)
                        throws IOException
makes the given local filesystem path or URL absolute and resolve it relative to config directory (if local)

Throws:
IOException

addField

public void addField(FieldConfig f)

addVariable

public void addVariable(VariableConfig f)

addFilter

public void addFilter(FilterConfig f)

addIndex

public void addIndex(IndexConfig i)

setFilterDefault

@PublicForDigesterUse
@Deprecated
public void setFilterDefault(String v)
Deprecated. 


setDefaultField

@PublicForDigesterUse
@Deprecated
public void setDefaultField(String termVectors,
                                                            String xpath)
                     throws Exception
Deprecated. 

Throws:
Exception

setDocumentBoost

@PublicForDigesterUse
@Deprecated
public void setDocumentBoost(String v)
                      throws Exception
Deprecated. 

Throws:
Exception

addStopWords

@PublicForDigesterUse
@Deprecated
public void addStopWords(String stopWords)
Deprecated. 


importEnglishStopWords

@PublicForDigesterUse
@Deprecated
public void importEnglishStopWords(String dummy)
Deprecated. 


setAnalyzer

@PublicForDigesterUse
@Deprecated
public void setAnalyzer(String v)
                 throws Exception
Deprecated. 

Throws:
Exception

setAnalyzerClass

public void setAnalyzerClass(Class<? extends Analyzer> c)
                      throws Exception
Throws:
Exception

setTriePrecisionStep

@PublicForDigesterUse
@Deprecated
public void setTriePrecisionStep(int v)
                          throws Exception
Deprecated. 

Throws:
Exception

setIndexDirImplementation

@PublicForDigesterUse
@Deprecated
public void setIndexDirImplementation(String v)
                               throws Exception
Deprecated. 

Throws:
Exception

setIndexVersionCompatibility

@PublicForDigesterUse
@Deprecated
public void setIndexVersionCompatibility(String v)
                                  throws Exception
Deprecated. 

Throws:
Exception

addSearchProperty

@PublicForDigesterUse
@Deprecated
public void addSearchProperty(String value)
Deprecated. 


addGlobalHarvesterProperty

@PublicForDigesterUse
@Deprecated
public void addGlobalHarvesterProperty(String value)
Deprecated. 


setSchema

public void setSchema(String namespace,
                      String url)
               throws Exception
Throws:
Exception

setHaltOnSchemaError

@PublicForDigesterUse
@Deprecated
public void setHaltOnSchemaError(String v)
Deprecated. 


setAugmentation

@PublicForDigesterUse
@Deprecated
public void setAugmentation(String v)
Deprecated. 


getAnalyzer

public Analyzer getAnalyzer()


Copyright ©2007-2011 panFMP Developers c/o Uwe Schindler