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
- Author:
- Ben Fortuna
$Id$
Created on 6/05/2006
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 -
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.