public class TagValidationTool extends java.lang.Object implements ITagValidation
Constructor and Description |
---|
TagValidationTool() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkInvalidTags(SourceTextEntry ste)
Checks invalid tags for one entry.
|
static java.lang.String |
fixErrors(ErrorReport report)
Fix all errors indicated in a given ErrorReport.
|
java.util.List<ErrorReport> |
listInvalidTags()
Scans project and builds the list of entries which are suspected of
having changed (possibly invalid) tag structures.
|
java.util.List<ErrorReport> |
listInvalidTags(java.lang.String sourcePattern)
Scans project and builds the list of entries which are suspected of
having changed (possibly invalid) tag structures from specified files
corresponding to sourcePattern.
|
void |
logTagValidationErrors(java.util.List<ErrorReport> suspects)
Log invalid tags entries to console.
|
public void logTagValidationErrors(java.util.List<ErrorReport> suspects)
ITagValidation
logTagValidationErrors
in interface ITagValidation
suspects
- list of invalid tags entries(from ITagValidation.listInvalidTags()
method)public java.util.List<ErrorReport> listInvalidTags()
Duplicate entries that are not "alternative" translations are filtered from the results.
listInvalidTags
in interface ITagValidation
public java.util.List<ErrorReport> listInvalidTags(java.lang.String sourcePattern)
Duplicate entries that are not "alternative" translations are filtered from the results.
listInvalidTags
in interface ITagValidation
sourcePattern
- The regexp of files to validatepublic boolean checkInvalidTags(SourceTextEntry ste)
ITagValidation
checkInvalidTags
in interface ITagValidation
ste
- entrypublic static java.lang.String fixErrors(ErrorReport report)
report
- The report indicating the segment and errors to fix