OutputResourceGroup

data class OutputResourceGroup(val name: String, val resources: Set<OutputResource>) : OutputResource

Represents an OutputResource that contains other resources (and does not provide content of its own). When visited by a FileResourceExporter, this resource is exported to a directory.

Parameters

name

name of the resource (without file extensions)

resources

sub-resources this group contains

Constructors

Link copied to clipboard
constructor(name: String, resources: Set<OutputResource>)

Properties

Link copied to clipboard

Name of the corresponding file of this resource, without the extension, with symbols removed and spaces replaced with dashes.

Link copied to clipboard
open override val name: String
Link copied to clipboard

Functions

Link copied to clipboard
open override fun <T> accept(visitor: OutputResourceVisitor<T>): T

Accepts a visitor to perform operations on the resource.

Link copied to clipboard
fun OutputResource.saveTo(directory: File): File

Saves this resource to file in a directory.