Class TextCondition
java.lang.Object
com.norconex.importer.handler.condition.impl.TextCondition
- All Implemented Interfaces:
Configurable<TextConditionConfig>,Condition,ConfigurableCondition<TextConditionConfig>,FailablePredicate<DocHandlerContext,IOException>
A condition based on a text pattern matching a document content (default), or matching specific field(s). When used on very large content, it is possible the pattern matching will be done in chunks, sometimes not achieving expected results.
- 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
ConstructorsConstructorDescriptionTextCondition(TextMatcher valueMatcher) TextCondition(TextMatcher fieldMatcher, TextMatcher valueMatcher) -
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
-
TextCondition
public TextCondition() -
TextCondition
-
TextCondition
-
-
Method Details
-
test
- Specified by:
testin interfaceFailablePredicate<DocHandlerContext,IOException> - Throws:
IOException
-
getConfiguration
- Specified by:
getConfigurationin interfaceConfigurable<TextConditionConfig>
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-