public final class DuplicatedSectionValidator extends Validator
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_SIMILARITY_THRESHOLD
Default threshold (Cosine similarity).
|
KEY_VALUE, RULE, WORD_LIST, WORD_LIST_LOWERCASED
Constructor and Description |
---|
DuplicatedSectionValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
protected void |
init()
Validation initialization, called after the configuration and symbol tables have been assigned
|
void |
preValidate(Section section)
Process input blocks before run validation.
|
String |
toString() |
void |
validate(Section section)
validate the input document and returns the invalid points.
|
addError, addErrorWithPosition, addLocalizedError, addLocalizedError, addLocalizedErrorFromToken, addLocalizedErrorWithPosition, addLocalizedErrorWithPosition, addValidationError, addValidationError, addValidationErrorFromToken, addValidationErrorWithPosition, addValidationErrorWithPosition, getConfigAttribute, getConfigAttribute, getConfigAttributeAsBoolean, getConfigAttributeAsDouble, getConfigAttributeAsInt, getConfigAttributes, getLocalizedErrorMessage, getSupportedLanguages, getSymbolTable, preValidate, setErrorList, validate, validate
public static final double DEFAULT_SIMILARITY_THRESHOLD
public void preValidate(Section section)
Validator
preValidate
in class Validator
section
- input sectionpublic void validate(Section section)
Validator
Validator
provides empty implementation. Validator implementation validates sections can override this method.protected void init() throws RedPenException
Validator
init
in class Validator
RedPenException
Copyright © 2015. All rights reserved.