se.kth.cid.metadata.xml
Class XmlMetaDataHandler
java.lang.Object
|
+--se.kth.cid.xml.XmlLoaderHelper
|
+--se.kth.cid.metadata.xml.XmlMetaDataHandler
- public class XmlMetaDataHandler
- extends XmlLoaderHelper
Loads metadata from an XML-doc.
- Version:
- $Revision: 1.1.1.1 $
- Author:
- Mikael Nilsson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
load
public static void load(MetaData metaData,
XmlElement root)
throws ReadOnlyException,
XmlStructureException
- Loads metadata from an XML tree.
- Parameters:
metaData
- the MetaData to load all meta-data into.root
- the MetaData element.- Throws:
ReadOnlyException
- if the MetaData was read-only.
buildXmlTree
public static XmlElement buildXmlTree(MetaData metaData)
throws XmlElementException
- Builds a MetaData tree from the given MetaData.
- Parameters:
MetaData
- the MetaData to get all meta-data from.- Returns:
- a MetaData XmlElement.
- Throws:
XmlElementException
- if something went wrong.
Centre for user-oriented IT -design