net.fortuna.mstor.data.xml
Class DocumentBinding

java.lang.Object
  extended by net.fortuna.mstor.data.xml.XmlBinding
      extended by net.fortuna.mstor.data.xml.DocumentBinding

public class DocumentBinding
extends XmlBinding

Author:
Ben Fortuna
 $Id$

 Created on 6/05/2006
 

Field Summary
 
Fields inherited from class net.fortuna.mstor.data.xml.XmlBinding
namespace
 
Constructor Summary
DocumentBinding(java.io.File file, org.jdom.Namespace namespace, java.lang.String rootElementName)
           
DocumentBinding(java.io.File file, java.lang.String rootElementName)
           
 
Method Summary
 org.jdom.Document getDocument()
          Returns the JDOM document associated with this meta folder.
 void save()
           
 
Methods inherited from class net.fortuna.mstor.data.xml.XmlBinding
getNamespace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentBinding

public DocumentBinding(java.io.File file,
                       java.lang.String rootElementName)
Parameters:
file -

DocumentBinding

public DocumentBinding(java.io.File file,
                       org.jdom.Namespace namespace,
                       java.lang.String rootElementName)
Parameters:
file -
namespace -
Method Detail

getDocument

public final org.jdom.Document getDocument()
Returns the JDOM document associated with this meta folder.

Returns:
a JDOM document
Throws:
JDOMException - thrown if the specified file is not a valid XML document
java.io.IOException - thrown if an error occurs reading the specified file

save

public final void save()
                throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2004-2011 Micronode. All Rights Reserved.