IMSEVimse 1.0
Draft

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

Method Summary
static XmlElement buildXmlTree(MetaData metaData)
          Builds a MetaData tree from the given MetaData.
static void load(MetaData metaData, XmlElement root)
          Loads metadata from an XML tree.
 
Methods inherited from class se.kth.cid.xml.XmlLoaderHelper
buildDataTags, buildDataTagStyles, getSubElement, loadAttribute, loadAttribute, loadBoolean, loadPositiveInteger, maybeGetSubElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.

IMSEVimse 1.0
Draft

Centre for user-oriented IT -design