Package net.anotheria.asg.generator
Class GeneratedXMLFile
- java.lang.Object
-
- net.anotheria.asg.generator.GeneratedArtefact
-
- net.anotheria.asg.generator.GeneratedXMLFile
-
public class GeneratedXMLFile extends GeneratedArtefact
Represents a generated XML file.- Version:
- $Id: $Id
- Author:
- lrosenberg
-
-
Field Summary
-
Fields inherited from class net.anotheria.asg.generator.GeneratedArtefact
CRLF
-
-
Constructor Summary
Constructors Constructor Description GeneratedXMLFile()Creates a new artefact.GeneratedXMLFile(java.lang.String aName, java.lang.String anEncoding)Creates a new artefact.
-
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()Getter for the fieldbody.java.lang.StringgetEncoding()Getter for the fieldencoding.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.voidsetEncoding(java.lang.String encoding)Setter for the fieldencoding.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()
Getter for the field
body.- Specified by:
getBodyin classGeneratedArtefact- Returns:
- a
StringBuilderobject.
-
getEncoding
public java.lang.String getEncoding()
Getter for the field
encoding.- Returns:
- a
Stringobject.
-
setEncoding
public void setEncoding(java.lang.String encoding)
Setter for the field
encoding.- Parameters:
encoding- aStringobject.
-
-