cz.zcu.fav.kiv.editor.beans
Class OpenFile

java.lang.Object
  extended by cz.zcu.fav.kiv.editor.beans.OpenFile

public class OpenFile
extends java.lang.Object

The OpenFile class represents an open XSL stylesheet file.

Version:
1.0, 05/2007
Author:
Marta Vaclavikova

Constructor Summary
OpenFile()
          Initializes a newly created empty OpenFile.
 
Method Summary
 java.lang.String getOpenFilePath()
           
 org.w3c.dom.Document getWholeFile()
           
 boolean isFileChanged()
           
 void setFileChanged(boolean fileChanged)
          Sets if the opened file is changed or not.
 void setOpenFilePath(java.lang.String openFilePath)
          Sets the new openFilePath of the opened file.
 void setWholeFile(org.w3c.dom.Document wholeFile)
          Sets the new DOM structure wholeFile of newly opened file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenFile

public OpenFile()
Initializes a newly created empty OpenFile. Assignes the wholeFile to the new empty DOM XSL stylesheet structure. Sets the newly created file as not changed (fileChanged).

Method Detail

getWholeFile

public org.w3c.dom.Document getWholeFile()

setWholeFile

public void setWholeFile(org.w3c.dom.Document wholeFile)
Sets the new DOM structure wholeFile of newly opened file. Sets the opened file as not changed.

Parameters:
wholeFile - DOM structure of the opened file.

getOpenFilePath

public java.lang.String getOpenFilePath()

setOpenFilePath

public void setOpenFilePath(java.lang.String openFilePath)
Sets the new openFilePath of the opened file. If the file hasn't the extension XSL, then the extension is added.

Parameters:
openFilePath - a new path to the opened file.

isFileChanged

public boolean isFileChanged()

setFileChanged

public void setFileChanged(boolean fileChanged)
Sets if the opened file is changed or not. According to changes sets the status information about the file.

Parameters:
fileChanged - true, if the file has changed.