Class DefaultCheckstyleResult
java.lang.Object
org.jdrupes.builder.core.ResourceObject
org.jdrupes.builder.ext.checkstyle.DefaultCheckstyleResult
- All Implemented Interfaces:
FaultAware, Proxyable, Resource, CheckstyleResult
A default implementation of
CheckstyleResult.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultCheckstyleResult(Project project, ResourceProvider provider, long checked, long errors, long warnings) Initializes a new default checkstyle result. -
Method Summary
Modifier and TypeMethodDescriptionlongchecked()Returns the number of checked files.longerrors()Returns the number of style violations with error severity.booleanisFaulty()Checks if the resource is faulty.project()The project that was checked.Sets the faulty state.toString()longwarnings()Returns the number of style violations with warning severity.Methods inherited from interface Resource
asOf, asOfLocalized, cleanup, isNewerThan, name, type
-
Constructor Details
-
DefaultCheckstyleResult
protected DefaultCheckstyleResult(Project project, ResourceProvider provider, long checked, long errors, long warnings) Initializes a new default checkstyle result.- Parameters:
project- the projectprovider- the providerchecked- the number of checked fileserrors- the number of style violations with error severitywarnings- the number of style violations with warning severity
-
-
Method Details
-
project
Description copied from interface:CheckstyleResultThe project that was checked.- Specified by:
projectin interfaceCheckstyleResult- Returns:
- the project
-
checked
Description copied from interface:CheckstyleResultReturns the number of checked files.- Specified by:
checkedin interfaceCheckstyleResult- Returns:
- the number
-
errors
Description copied from interface:CheckstyleResultReturns the number of style violations with error severity.- Specified by:
errorsin interfaceCheckstyleResult- Returns:
- the number
-
warnings
Description copied from interface:CheckstyleResultReturns the number of style violations with warning severity.- Specified by:
warningsin interfaceCheckstyleResult- Returns:
- the number
-
isFaulty
Description copied from interface:FaultAwareChecks if the resource is faulty.- Specified by:
isFaultyin interfaceFaultAware- Returns:
- true, if is faulty
-
setFaulty
Description copied from interface:FaultAwareSets the faulty state.- Specified by:
setFaultyin interfaceFaultAware- Returns:
- the fault aware
-
toString
- Overrides:
toStringin classResourceObject
-