Package net.fortuna.mstor.data.xml
Class DocumentBinding
- java.lang.Object
-
- net.fortuna.mstor.data.xml.XmlBinding
-
- net.fortuna.mstor.data.xml.DocumentBinding
-
public class DocumentBinding extends XmlBinding
-
-
Field Summary
-
Fields inherited from class net.fortuna.mstor.data.xml.XmlBinding
namespace
-
-
Constructor Summary
Constructors Constructor Description DocumentBinding(File file, String rootElementName)
DocumentBinding(File file, org.jdom.Namespace namespace, String rootElementName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Method Detail
-
getDocument
public final org.jdom.Document getDocument()
Returns the JDOM document associated with this meta folder.- Returns:
- a JDOM document
- Throws:
org.jdom.JDOMException
- thrown if the specified file is not a valid XML documentIOException
- thrown if an error occurs reading the specified file
-
save
public final void save() throws IOException
- Throws:
IOException
-
-