Package com.axemble.vdoc.sdk.interfaces
Interface IReport
public interface IReport
A property
- Since:
- 1.0, 15/04/2008
- Author:
- vlygeros
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a debugs.voidAdds an error.voidAdds a info.voidAdds a report.voidaddSuccess(String success) Deprecated.use addInfo method insteadvoidaddWarning(String warning) Adds a warning.Gets the debugs.Gets the errors.getInfos()Gets the infos.Deprecated.use getInfos method insteadGets the warnings.booleanisDebug()Checks if there is at least a debug.booleanisError()Checks if there is at least an error.booleanisInfo()Checks if there is at least a info.booleanDeprecated.use isInfo method insteadbooleanChecks if there is at least a warning.voidreset()Resets errors, warnings, successes, reports.write()Writes the report to a String object.
-
Method Details
-
reset
void reset()Resets errors, warnings, successes, reports. -
addError
Adds an error.- Parameters:
error- The String error to add.
-
addWarning
Adds a warning.- Parameters:
warning- The String warning to add.
-
addDebug
Adds a debugs.- Parameters:
debug- The String debug to add.
-
addSuccess
Deprecated.use addInfo method insteadAdds a info- Parameters:
success- The String info to add.
-
addInfo
Adds a info.- Parameters:
info- The String info to add.
-
addReport
Adds a report.- Parameters:
reportCollector-
-
getErrors
Collection<String> getErrors()Gets the errors.- Returns:
- A collection of String objects.
-
getWarnings
Collection<String> getWarnings()Gets the warnings.- Returns:
- A collection of String objects.
-
getDebugs
Collection<String> getDebugs()Gets the debugs.- Returns:
- A collection of String objects.
-
getSuccesses
Deprecated.use getInfos method insteadGets the infos.- Returns:
- A collection of String objects.
-
getInfos
Collection<String> getInfos()Gets the infos.- Returns:
- A collection of String objects.
-
isError
boolean isError()Checks if there is at least an error.- Returns:
- true if an error was added, false otherwise.
-
isWarning
boolean isWarning()Checks if there is at least a warning.- Returns:
- true if a warning was added, false otherwise.
-
isDebug
boolean isDebug()Checks if there is at least a debug.- Returns:
- true if a debug was added, false otherwise.
-
isSuccess
Deprecated.use isInfo method insteadChecks if there is at least a info.- Returns:
- true if a info was added, false otherwise.
-
isInfo
boolean isInfo()Checks if there is at least a info.- Returns:
- true if a info was added, false otherwise.
-
write
String write()Writes the report to a String object.- Returns:
- The String containing the report.
-