Class GeneratedXMLFile


  • public class GeneratedXMLFile
    extends GeneratedArtefact
    Represents a generated XML file.
    Version:
    $Id: $Id
    Author:
    lrosenberg
    • 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.String createFileContent()
      Creates the content of the file.
      java.lang.StringBuilder getBody()
      Getter for the field body.
      java.lang.String getEncoding()
      Getter for the field encoding.
      java.lang.String getFileType()
      Returns the file type (i.e.
      java.lang.String getPath()
      Returns the relative path where the artefact must be stored on the filesystem.
      void setEncoding​(java.lang.String encoding)
      Setter for the field encoding.
      void setPath​(java.lang.String path)
      Setter for the field path.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GeneratedXMLFile

        public GeneratedXMLFile()
        Creates a new artefact.
      • GeneratedXMLFile

        public GeneratedXMLFile​(java.lang.String aName,
                                java.lang.String anEncoding)
        Creates a new artefact.
        Parameters:
        aName - a String object.
        anEncoding - a String object.
    • Method Detail

      • createFileContent

        public java.lang.String createFileContent()
        Creates the content of the file.
        Specified by:
        createFileContent in class GeneratedArtefact
        Returns:
        a String object.
      • getFileType

        public java.lang.String getFileType()
        Returns the file type (i.e. .java or .jsp).
        Specified by:
        getFileType in class GeneratedArtefact
        Returns:
        a String object.
      • getPath

        public java.lang.String getPath()
        Returns the relative path where the artefact must be stored on the filesystem.
        Specified by:
        getPath in class GeneratedArtefact
        Returns:
        a String object.
      • setPath

        public void setPath​(java.lang.String path)

        Setter for the field path.

        Parameters:
        path - a String object.
      • getBody

        public java.lang.StringBuilder getBody()

        Getter for the field body.

        Specified by:
        getBody in class GeneratedArtefact
        Returns:
        a StringBuilder object.
      • getEncoding

        public java.lang.String getEncoding()

        Getter for the field encoding.

        Returns:
        a String object.
      • setEncoding

        public void setEncoding​(java.lang.String encoding)

        Setter for the field encoding.

        Parameters:
        encoding - a String object.