Modifier and Type | Method and Description |
---|---|
CreateDescriptor |
FileBuilder.createDescriptor(boolean collectAttributes)
Creates a descriptor from the current Builder's state.
|
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
CreateFromTemplateHandler.accept(CreateDescriptor desc)
Method that allows a handler to reject a file.
|
boolean |
CreateFromTemplateDecorator.accept(CreateDescriptor desc)
Determines whether the decorator is willing to participate in creation.
|
Map<String,?> |
CreateFromTemplateAttributes.attributesFor(CreateDescriptor desc)
Called when a template is about to be instantiated to provide additional
values to the
CreateFromTemplateHandler that will handle the
template instantiation. |
protected abstract List<FileObject> |
CreateFromTemplateHandler.createFromTemplate(CreateDescriptor desc)
Handles the creation of new files.
|
List<FileObject> |
CreateFromTemplateDecorator.decorate(CreateDescriptor desc,
List<FileObject> createdFiles)
Extends the creation process.
|
protected static List<FileObject> |
CreateFromTemplateHandler.defaultCopyContents(CreateDescriptor origDescriptor,
FileObject contentsParent,
FileObject target)
Copies the files or folders contained in the specified folder to the target.
|
static FileBuilder |
FileBuilder.fromDescriptor(CreateDescriptor desc)
Creates a Builder based on the CreateDescriptor.
|