TextOutputArtifact

data class TextOutputArtifact(val name: String, val content: CharSequence, val type: ArtifactType) : OutputArtifact<CharSequence>

Represents an OutputResource that contains text data.

Parameters

name

name of the resource (without file extensions)

content

content of the resource

type

type of content the resource contains

Constructors

Link copied to clipboard
constructor(name: String, content: CharSequence, type: ArtifactType)

Properties

Link copied to clipboard
open override val content: CharSequence
Link copied to clipboard

File extension relative to the ArtifactType of this resource.

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

Full name of the file, including the extension relative to the ArtifactType of this resource.

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

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.