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 SummaryAll 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- 
withContentspublic static Preview withContents(java.lang.String contents) 
 - 
withSourcePathAndContentspublic static Preview withSourcePathAndContents(java.lang.String sourcePath, java.lang.String contents) 
 - 
getSourcePathpublic 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.
 
 - 
setSourcePathpublic void setSourcePath(java.lang.String sourcePath) 
 - 
getContentspublic 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.
 
 - 
setContentspublic void setContents(java.lang.String contents) 
 
- 
 
-