Class WhitespaceScrutinizer
- java.lang.Object
-
- org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer
-
- org.openrefine.wikibase.qa.scrutinizers.StatementScrutinizer
-
- org.openrefine.wikibase.qa.scrutinizers.SnakScrutinizer
-
- org.openrefine.wikibase.qa.scrutinizers.ValueScrutinizer
-
- org.openrefine.wikibase.qa.scrutinizers.WhitespaceScrutinizer
-
public class WhitespaceScrutinizer extends ValueScrutinizer
Scrutinizes strings for trailing / leading whitespace, and others- Author:
- Antonin Delpeuch
-
-
Field Summary
Fields Modifier and Type Field Description static String
duplicateWhitespaceType
static String
nonPrintableCharsType
-
Fields inherited from class org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer
_fetcher, _store, connection, enableSlowChecks, manifest
-
-
Constructor Summary
Constructors Constructor Description WhitespaceScrutinizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
prepareDependencies()
Prepare the dependencies(i.e. constraint-related pids and qids) needed by the scrutinizer.void
scrutinize(org.wikidata.wdtk.datamodel.interfaces.Value value)
-
Methods inherited from class org.openrefine.wikibase.qa.scrutinizers.ValueScrutinizer
scrutinize, scrutinize
-
Methods inherited from class org.openrefine.wikibase.qa.scrutinizers.SnakScrutinizer
scrutinize, scrutinizeSnakSet
-
Methods inherited from class org.openrefine.wikibase.qa.scrutinizers.StatementScrutinizer
scrutinize, scrutinize, scrutinizeStatementEntityEdit
-
Methods inherited from class org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer
addIssue, addIssue, batchIsBeginning, batchIsFinished, critical, findValues, getConstraintsRelatedId, important, info, infoNotFacetable, setApiConnection, setEnableSlowChecks, setFetcher, setManifest, setStore, warning
-
-
-
-
Field Detail
-
duplicateWhitespaceType
public static final String duplicateWhitespaceType
- See Also:
- Constant Field Values
-
nonPrintableCharsType
public static final String nonPrintableCharsType
- See Also:
- Constant Field Values
-
-
Method Detail
-
prepareDependencies
public boolean prepareDependencies()
Description copied from class:EditScrutinizer
Prepare the dependencies(i.e. constraint-related pids and qids) needed by the scrutinizer. Called beforeEditScrutinizer.batchIsBeginning()
.- Specified by:
prepareDependencies
in classEditScrutinizer
- Returns:
- false if any necessary dependency is missing, true otherwise.
-
scrutinize
public void scrutinize(org.wikidata.wdtk.datamodel.interfaces.Value value)
- Specified by:
scrutinize
in classValueScrutinizer
-
-