|
Regain 2.1.0-STABLE API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.regain.search.config.XmlSearchConfig
public class XmlSearchConfig
| Field Summary | |
|---|---|
private String[] |
mAllIndexNameArr
The names of all indexes in search configuration. |
private String[] |
mDefaultIndexNameArr
The names of the default indexes. |
private HashMap |
mIndexHash
All configured indexes. |
| Constructor Summary | |
|---|---|
XmlSearchConfig(File xmlFile)
Creates a new instance of XmlSearchConfig. |
|
| Method Summary | |
|---|---|
String[] |
getAllIndexNameArr()
Gets the names of the default indexes. |
String[] |
getDefaultIndexNameArr()
Gets the names of the default indexes. |
IndexConfig |
getIndexConfig(String indexName)
Gets the configuration for an index. |
private void |
readIndexList(org.w3c.dom.Element config)
Reads the search indexes from the config. |
private String[][] |
readRewriteRules(org.w3c.dom.Node node)
Reads the URL rewrite rules from a node |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private HashMap mIndexHash
private String[] mDefaultIndexNameArr
private String[] mAllIndexNameArr
| Constructor Detail |
|---|
public XmlSearchConfig(File xmlFile)
throws RegainException
xmlFile - The XML file to read the config from.
RegainException - If reading the config failed.| Method Detail |
|---|
private void readIndexList(org.w3c.dom.Element config)
throws RegainException
config - The configuration to read from.
RegainException - If the configration has errors.
private String[][] readRewriteRules(org.w3c.dom.Node node)
throws RegainException
node - The node to read from.
RegainException - If the configration has errors.public IndexConfig getIndexConfig(String indexName)
getIndexConfig in interface SearchConfigindexName - The name of the index to get the config for.
null if
there is no such index configured.public String[] getDefaultIndexNameArr()
getDefaultIndexNameArr in interface SearchConfigpublic String[] getAllIndexNameArr()
getAllIndexNameArr in interface SearchConfig
|
Regain 2.1.0-STABLE API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||