Class ResolvedResourceItem.Builder
- java.lang.Object
-
- de.xima.fc.workflow.processor.model.ResolvedResourceItem.Builder
-
- Enclosing class:
- ResolvedResourceItem
public static final class ResolvedResourceItem.Builder extends Object
Builder to buildResolvedResourceItem
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IResolvedResourceItem
build()
ResourceItem
getResourceItem()
ResolvedResourceItem.Builder
withError(AFileListResolutionError error)
ResolvedResourceItem.Builder
withFile(IResolvedFile file)
ResolvedResourceItem.Builder
withFiles(Iterable<IResolvedFile> files)
-
-
-
Method Detail
-
build
public IResolvedResourceItem build()
- Returns:
- A new
IResolvedResourceItem
instance with the current data.
-
getResourceItem
public ResourceItem getResourceItem()
- Returns:
- The resource item for which the result is being built.
-
withError
public ResolvedResourceItem.Builder withError(AFileListResolutionError error)
- Parameters:
error
- Type of the error.- Returns:
- This builder for chaining method calls.
-
withFile
public ResolvedResourceItem.Builder withFile(IResolvedFile file)
- Parameters:
file
- Resolved file to add- Returns:
- This builder for chaining method calls.
-
withFiles
public ResolvedResourceItem.Builder withFiles(Iterable<IResolvedFile> files)
- Parameters:
files
- Resolved files to add- Returns:
- This builder for chaining method calls.
-
-