public class RelationChecker extends Test
Modifier and Type | Class and Description |
---|---|
private static class |
RelationChecker.RoleInfo |
Test.TagTest
Modifier and Type | Field and Description |
---|---|
protected static int |
HIGH_COUNT |
protected static int |
LOW_COUNT |
protected static int |
RELATION_EMPTY |
protected static int |
RELATION_UNKNOWN |
private static java.util.Collection<TaggingPreset> |
relationpresets |
protected static int |
ROLE_EMPTY |
protected static int |
ROLE_MISSING |
protected static int |
ROLE_UNKNOWN |
static java.lang.String |
ROLE_VERIF_PROBLEM_MSG
Error message used to group errors related to role problems.
|
protected static int |
WRONG_TYPE |
checkBeforeUpload, checkEnabled, description, enabled, errors, isBeforeUpload, name, partialSelection, progressMonitor, startTime, testBeforeUpload
Constructor and Description |
---|
RelationChecker()
Constructor
|
Modifier and Type | Method and Description |
---|---|
private java.util.LinkedList<TaggingPresetItems.Role> |
buildAllRoles(Relation n) |
private java.util.HashMap<java.lang.String,RelationChecker.RoleInfo> |
buildRoleInfoMap(Relation n) |
private void |
checkRoleCounts(Relation n,
TaggingPresetItems.Role r,
java.lang.String keyname,
RelationChecker.RoleInfo ri) |
private void |
checkRoleMemberExpressions(Relation n,
TaggingPresetItems.Role r,
java.lang.String keyname,
RelationChecker.RoleInfo ri) |
private void |
checkRoles(Relation n,
java.util.LinkedList<TaggingPresetItems.Role> allroles,
java.util.HashMap<java.lang.String,RelationChecker.RoleInfo> map) |
private void |
checkRoleTypes(Relation n,
TaggingPresetItems.Role r,
java.lang.String keyname,
RelationChecker.RoleInfo ri) |
Command |
fixError(TestError testError)
Fixes the error with the appropriate command
|
void |
initialize()
Initializes any global data used this tester.
|
static void |
initializePresets()
Reads the presets data.
|
boolean |
isFixable(TestError testError)
Returns true if the given error can be fixed automatically
|
void |
visit(Relation n)
Visiting call for relations.
|
addGui, deletePrimitivesIfNeeded, endTest, equals, getErrors, getName, hashCode, isBuilding, isCanceled, isPrimitiveUsable, ok, setBeforeUpload, setPartialSelection, startTest, testBeforeUpload, visit, visit, visit
visit
protected static final int ROLE_UNKNOWN
protected static final int ROLE_EMPTY
protected static final int WRONG_TYPE
protected static final int HIGH_COUNT
protected static final int LOW_COUNT
protected static final int ROLE_MISSING
protected static final int RELATION_UNKNOWN
protected static final int RELATION_EMPTY
public static final java.lang.String ROLE_VERIF_PROBLEM_MSG
private static java.util.Collection<TaggingPreset> relationpresets
public RelationChecker()
public void initialize()
Test
initialize
in class Test
public static void initializePresets()
public void visit(Relation n)
Visitor
private java.util.HashMap<java.lang.String,RelationChecker.RoleInfo> buildRoleInfoMap(Relation n)
private java.util.LinkedList<TaggingPresetItems.Role> buildAllRoles(Relation n)
private void checkRoles(Relation n, java.util.LinkedList<TaggingPresetItems.Role> allroles, java.util.HashMap<java.lang.String,RelationChecker.RoleInfo> map)
private void checkRoleMemberExpressions(Relation n, TaggingPresetItems.Role r, java.lang.String keyname, RelationChecker.RoleInfo ri)
private void checkRoleTypes(Relation n, TaggingPresetItems.Role r, java.lang.String keyname, RelationChecker.RoleInfo ri)
private void checkRoleCounts(Relation n, TaggingPresetItems.Role r, java.lang.String keyname, RelationChecker.RoleInfo ri)
public Command fixError(TestError testError)
Test