public class CompilationResult extends Object implements Serializable
CompilationResult class holds the MIB module names successfully parsed for each MIB file
or the parsing errors that were detected during compilation.| Constructor and Description |
|---|
CompilationResult(String fileName,
List<String> moduleNames,
List<SmiError> smiErrorList) |
CompilationResult(String fileName,
List<String> moduleNames,
List<SmiError> smiErrorList,
String zipFileName) |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
getFailedFiles(List<CompilationResult> compilationResults)
Gets the file names from the given
CompilationResults which had errors during
compilation. |
String |
getFileName()
Gets the file name (stream name) of the MIB specification.
|
List<String> |
getModuleNames()
Gets the MIB module names successfully parsed from this MIB specification identified by
getFileName(). |
List<SmiError> |
getSmiErrorList()
Gets a List of
SmiError instances describing the SMI syntax and semantic errors encountered
in the MIB specification identified by getFileName(). |
String |
getZipFileName()
Returns the file name of the enclosing ZIP file (if present).
|
boolean |
hasErrors()
Returns
true if the compilation result contains detected SMI errors. |
static boolean |
hasErrors(List<CompilationResult> compilationResults)
Returns
true if the list of compilation results contains at least one detected SMI error. |
String |
toString() |
public CompilationResult(String fileName, List<String> moduleNames, List<SmiError> smiErrorList)
public String getFileName()
public String getZipFileName()
null if the compiled file
was not part of a ZIP file.public List<String> getModuleNames()
getFileName().null or empty
List) then see the getSmiErrorList() for the errors encountered during compilation.public List<SmiError> getSmiErrorList()
SmiError instances describing the SMI syntax and semantic errors encountered
in the MIB specification identified by getFileName().SmiError instances, each describing a SMI syntax or semantic error.public boolean hasErrors()
true if the compilation result contains detected SMI errors.false if the compilation was successful.public static boolean hasErrors(List<CompilationResult> compilationResults)
true if the list of compilation results contains at least one detected SMI error.false if the compilation was successful.public static List<String> getFailedFiles(List<CompilationResult> compilationResults)
CompilationResults which had errors during
compilation.compilationResults - the compilation results.Copyright © 2015 SNMP4J.com. All Rights Reserved.