Class ReferenceCondition
java.lang.Object
com.norconex.importer.handler.condition.impl.ReferenceCondition
- All Implemented Interfaces:
Configurable<ReferenceConditionConfig>,Condition,ConfigurableCondition<ReferenceConditionConfig>,FailablePredicate<DocHandlerContext,IOException>
public class ReferenceCondition
extends Object
implements ConfigurableCondition<ReferenceConditionConfig>
A condition based on a text pattern matching a document reference (e.g. URL).
Can be used both as a pre-parse or post-parse handler.
- See Also:
-
Field Summary
Fields inherited from interface com.norconex.commons.lang.config.Configurable
PROPERTYFields inherited from interface org.apache.commons.lang3.function.FailablePredicate
FALSE, TRUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()booleantest(DocHandlerContext docCtx) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.commons.lang3.function.FailablePredicate
and, negate, or
-
Constructor Details
-
ReferenceCondition
public ReferenceCondition() -
ReferenceCondition
-
-
Method Details
-
test
- Specified by:
testin interfaceFailablePredicate<DocHandlerContext,IOException> - Throws:
IOException
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getConfiguration
- Specified by:
getConfigurationin interfaceConfigurable<ReferenceConditionConfig>
-