public final class Preview
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContents()
Returns a preview of the script that will be executed or the template that will be copied.
|
java.lang.String |
getSourcePath()
Returns the path of the source of the rendered content, e.g.
|
void |
setContents(java.lang.String contents) |
void |
setSourcePath(java.lang.String sourcePath) |
static Preview |
withContents(java.lang.String contents) |
static Preview |
withSourcePathAndContents(java.lang.String sourcePath,
java.lang.String contents) |
public static Preview withContents(java.lang.String contents)
public static Preview withSourcePathAndContents(java.lang.String sourcePath, java.lang.String contents)
public java.lang.String getSourcePath()
null
if that information is not known.public void setSourcePath(java.lang.String sourcePath)
public java.lang.String getContents()
public void setContents(java.lang.String contents)