|
Regain 1.7.7-STABLE API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.regain.crawler.config.PreparatorConfig
public class PreparatorConfig
The configuration of a preparator. Consists of a set of sections which contain a set of key-value-pairs.
| Field Summary | |
|---|---|
private ArrayList |
mSectionList
The sections of this config. |
| Constructor Summary | |
|---|---|
PreparatorConfig()
|
|
| Method Summary | |
|---|---|
(package private) void |
addSection(String name,
Map content)
Adds a section to the config |
Map |
getSectionContent(int index)
Gets the key-value-pairs of a section. |
int |
getSectionCount()
Gets the number of sections this config has. |
String |
getSectionName(int index)
Gets the name of a section. |
Map[] |
getSectionsWithName(String name)
Gets all sections with the given name. |
Map |
getSectionWithName(String name)
Gets the first section with the given name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private ArrayList mSectionList
We use no HashMap here, because two sections may have the same name.
| Constructor Detail |
|---|
public PreparatorConfig()
| Method Detail |
|---|
void addSection(String name,
Map content)
name - The name of the section to add.content - The key-value-pairs of the section to add.public int getSectionCount()
public String getSectionName(int index)
index - The index of the section.
public Map getSectionContent(int index)
index - The index of the section.
public Map getSectionWithName(String name)
name - The name of the sections
null if there
is no such section.public Map[] getSectionsWithName(String name)
name - The name of the sections
|
Regain 1.7.7-STABLE API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||