Package net.anotheria.asg.generator
Class GeneratedJSPFile
- java.lang.Object
-
- net.anotheria.asg.generator.GeneratedArtefact
-
- net.anotheria.asg.generator.GeneratedJSPFile
-
public class GeneratedJSPFile extends GeneratedArtefact
Represents a generated jsp file.- Version:
- $Id: $Id
- Author:
- lrosenberg
-
-
Field Summary
-
Fields inherited from class net.anotheria.asg.generator.GeneratedArtefact
CRLF
-
-
Constructor Summary
Constructors Constructor Description GeneratedJSPFile()Constructor for GeneratedJSPFile.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcreateFileContent()Creates the content of the file.java.lang.StringBuildergetBody()Returns the body of the generated artefact.java.lang.StringgetFileType()Returns the file type (i.e.java.lang.StringgetPath()Returns the relative path where the artefact must be stored on the filesystem.voidsetPackage(java.lang.String aPackage)setPackage.voidsetPath(java.lang.String path)Setter for the fieldpath.-
Methods inherited from class net.anotheria.asg.generator.GeneratedArtefact
getName, setName
-
-
-
-
Method Detail
-
createFileContent
public java.lang.String createFileContent()
Creates the content of the file.- Specified by:
createFileContentin classGeneratedArtefact- Returns:
- a
Stringobject.
-
getFileType
public java.lang.String getFileType()
Returns the file type (i.e. .java or .jsp).- Specified by:
getFileTypein classGeneratedArtefact- Returns:
- a
Stringobject.
-
getPath
public java.lang.String getPath()
Returns the relative path where the artefact must be stored on the filesystem.- Specified by:
getPathin classGeneratedArtefact- Returns:
- a
Stringobject.
-
setPath
public void setPath(java.lang.String path)
Setter for the field
path.- Parameters:
path- aStringobject.
-
getBody
public java.lang.StringBuilder getBody()
Returns the body of the generated artefact.- Specified by:
getBodyin classGeneratedArtefact- Returns:
- a
StringBuilderobject.
-
setPackage
public void setPackage(java.lang.String aPackage)
setPackage.
- Parameters:
aPackage- aStringobject.
-
-