Class Preview
- java.lang.Object
-
- com.xebialabs.deployit.plugin.api.flow.Preview
-
- All Implemented Interfaces:
java.io.Serializable
public final class Preview extends java.lang.Object implements java.io.SerializableAn preview of the script that a step is going to execute, or of the template that will be copied.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetContents()Returns a preview of the script that will be executed or the template that will be copied.java.lang.StringgetSourcePath()Returns the path of the source of the rendered content, e.g.voidsetContents(java.lang.String contents)voidsetSourcePath(java.lang.String sourcePath)static PreviewwithContents(java.lang.String contents)static PreviewwithSourcePathAndContents(java.lang.String sourcePath, java.lang.String contents)
-
-
-
Method Detail
-
withContents
public static Preview withContents(java.lang.String contents)
-
withSourcePathAndContents
public static Preview withSourcePathAndContents(java.lang.String sourcePath, java.lang.String contents)
-
getSourcePath
public java.lang.String getSourcePath()
Returns the path of the source of the rendered content, e.g. a script or a FreeMarker template on the classpath.- Returns:
- the path of the source or
nullif that information is not known.
-
setSourcePath
public void setSourcePath(java.lang.String sourcePath)
-
getContents
public java.lang.String getContents()
Returns a preview of the script that will be executed or the template that will be copied. This will be displayed in the GUI using a fixed-width font.- Returns:
- The preview.
-
setContents
public void setContents(java.lang.String contents)
-
-