|
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.crawler.config.PreparatorSettings
public class PreparatorSettings
The settings of a preparator
Preparator
Field Summary | |
---|---|
static String |
DEFAULT_PREPARATOR_PACKAGE
The default preparator package. |
private boolean |
mIsEnabled
Specifies whether the preparator is enabled. |
private String |
mPreparatorClassName
The class name of the preparator. |
private PreparatorConfig |
mPreparatorConfig
The configuration of the preparator. |
private int |
mPriority
Specifies the priority of the preparator |
private String |
mUrlRegex
The regular expression a URL must match to, to be prepared by this preparator. |
Constructor Summary | |
---|---|
PreparatorSettings(boolean isEnabled,
int priority,
String preparatorClassName,
String urlRegex,
PreparatorConfig preparatorConfig)
Creates a new instance of PreparatorSettings. |
Method Summary | |
---|---|
String |
getPreparatorClassName()
Gets the class name of the preparator. |
PreparatorConfig |
getPreparatorConfig()
Gets the configuration of the preparator. |
int |
getPriority()
Gets the priority of the preparator |
String |
getUrlRegex()
Gets the regular expression a URL must match to, to be prepared this preparator. |
boolean |
isEnabled()
Gets whether the preparator is enabled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_PREPARATOR_PACKAGE
private boolean mIsEnabled
private int mPriority
private String mPreparatorClassName
Preparator
.
private String mUrlRegex
private PreparatorConfig mPreparatorConfig
Constructor Detail |
---|
public PreparatorSettings(boolean isEnabled, int priority, String preparatorClassName, String urlRegex, PreparatorConfig preparatorConfig)
isEnabled
- Specifies whether the preparator is enabled.preparatorClassName
- The class name of the preparator. The class must
implement Preparator
.urlRegex
- The regular expression a URL must match to, to be prepared
by this preparator. If null
the default regex of the
preparator should be used.preparatorConfig
- The configuration of the preparator.Method Detail |
---|
public boolean isEnabled()
public String getPreparatorClassName()
public String getUrlRegex()
null
the default regex of the
preparator should be used.public PreparatorConfig getPreparatorConfig()
public int getPriority()
|
Regain 2.1.0-STABLE API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |