Package net.anotheria.asg.generator
Class GeneratedArtefact
- java.lang.Object
-
- net.anotheria.asg.generator.GeneratedArtefact
-
- Direct Known Subclasses:
GeneratedClass,GeneratedJSPFile,GeneratedSQLFile,GeneratedXMLFile
public abstract class GeneratedArtefact extends java.lang.ObjectBase class for artefacts generated by the ASG.- Version:
- $Id: $Id
- Author:
- lrosenberg
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCRLFConstant for line separator (CR + LF).
-
Constructor Summary
Constructors Constructor Description GeneratedArtefact()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.StringcreateFileContent()Creates the content of the file.abstract java.lang.StringBuildergetBody()Returns the body of the generated artefact.abstract java.lang.StringgetFileType()Returns the file type (i.e.java.lang.StringgetName()Returns the name of the artefact.abstract java.lang.StringgetPath()Returns the relative path where the artefact must be stored on the filesystem.voidsetName(java.lang.String aName)Sets the name of the artefact.
-
-
-
Field Detail
-
CRLF
public static final java.lang.String CRLF
Constant for line separator (CR + LF).- See Also:
- Constant Field Values
-
-
Method Detail
-
createFileContent
public abstract java.lang.String createFileContent()
Creates the content of the file.- Returns:
- a
Stringobject.
-
getFileType
public abstract java.lang.String getFileType()
Returns the file type (i.e. .java or .jsp).- Returns:
- a
Stringobject.
-
getPath
public abstract java.lang.String getPath()
Returns the relative path where the artefact must be stored on the filesystem.- Returns:
- a
Stringobject.
-
getBody
public abstract java.lang.StringBuilder getBody()
Returns the body of the generated artefact.- Returns:
- a
StringBuilderobject.
-
getName
public java.lang.String getName()
Returns the name of the artefact.- Returns:
- a
Stringobject.
-
setName
public void setName(java.lang.String aName)
Sets the name of the artefact.- Parameters:
aName- aStringobject.
-
-