Class FileUtils.ScanResult<T extends IArtifact>
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.artifactModel.FileUtils.ScanResult<T>
-
- Type Parameters:
T- the actual type of artifacts to be produced byFileUtils.scan(File, ArtifactModel, long, ScanResult, Class)
- Enclosing class:
- FileUtils
public static class FileUtils.ScanResult<T extends IArtifact> extends java.lang.ObjectRepresents the result of aFileUtils.scan(File, ArtifactModel, long, ScanResult, Class)execution.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<VilException>errorsprivate java.util.List<T>result
-
Constructor Summary
Constructors Constructor Description ScanResult(java.util.List<T> result)Creates a new scan result with a list to put the created artifacts into.ScanResult(java.util.List<T> result, java.util.List<VilException> errors)Creates a new scan result with a list to put the created artifacts into and a list for errors.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckForException()Default handling of collected errors.
-
-
-
Field Detail
-
errors
private java.util.List<VilException> errors
-
-
Constructor Detail
-
ScanResult
public ScanResult(java.util.List<T> result)
Creates a new scan result with a list to put the created artifacts into.- Parameters:
result- the list to store the created artifacts (may be null)
-
ScanResult
public ScanResult(java.util.List<T> result, java.util.List<VilException> errors)
Creates a new scan result with a list to put the created artifacts into and a list for errors.- Parameters:
result- the list to store the created artifacts (may be null)errors- the list to store the caused exceptions into (may be null)
-
-
Method Detail
-
checkForException
public void checkForException() throws VilExceptionDefault handling of collected errors. If errors occurred, put them into a combinedArtifactException.- Throws:
VilException- thrown if errors were collected
-
-