pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.util.xml
Class JDOMHandle

java.lang.Object
  extended by org.torweg.pulse.util.xml.JDOMHandle

public class JDOMHandle
extends java.lang.Object

a cache handle for JDOM Documents.

Version:
$Revision: 1418 $
Author:
Thomas Weber
See Also:
PoorMansCache

Constructor Summary
JDOMHandle(org.jdom.Document doc, java.io.File f)
          builds a new cache handle.
 
Method Summary
 org.jdom.Document getDocument()
          returns the Document.
 java.io.File getFile()
          returns the File the handle is built from.
 boolean isModified()
          returns true, if the XML document has been modified since the last check.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDOMHandle

public JDOMHandle(org.jdom.Document doc,
                  java.io.File f)
builds a new cache handle.

Parameters:
doc - the document
f - the file
Method Detail

getDocument

public final org.jdom.Document getDocument()
returns the Document.

Returns:
the Document

getFile

public final java.io.File getFile()
returns the File the handle is built from.

Returns:
the File the handle is built from

isModified

public final boolean isModified()
returns true, if the XML document has been modified since the last check.

Returns:
true, if the XML document has been modified since the last check