Class LayoutValidation
java.lang.Object
org.odpi.openmetadata.adapters.connectors.surveyaction.surveyfolder.layout.LayoutValidation
LayoutValidation is the result of checking a directory tree against a layout.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturn the number of checks made: one for each file and directory examined, plus one for each required file or directory that was missing.intReturn the percentage of the checks that found no violation.Return the violations, in the order they were found.
-
Constructor Details
-
LayoutValidation
public LayoutValidation()
-
-
Method Details
-
getViolations
Return the violations, in the order they were found.- Returns:
- list of violations
-
getCheckedCount
public long getCheckedCount()Return the number of checks made: one for each file and directory examined, plus one for each required file or directory that was missing.- Returns:
- count
-
getConformanceScore
public int getConformanceScore()Return the percentage of the checks that found no violation. It is 100 only when there are no violations, and it is 100 for an empty directory with nothing required.- Returns:
- percentage from 0 to 100
-