be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.topEdit.factory
Class XMLFactory

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.topEdit.factory.XMLFactory

public class XMLFactory
extends java.lang.Object

Creation date: 8/10/2007

Author:
Gaƫl Monfort (monfort@run.montefiore.ulg.ac.be)

Constructor Summary
XMLFactory()
           
 
Method Summary
static java.io.InputStream getInputStream(DomainDecorator domainDec)
           
static java.lang.String getXML(DomainDecorator domainDec)
           
static Domain loadDomain(java.lang.String filename)
           
static void saveDomain(Domain domain, java.lang.String filename)
           
static boolean validate(DomainDecorator domainDec)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLFactory

public XMLFactory()
Method Detail

getXML

public static java.lang.String getXML(DomainDecorator domainDec)

getInputStream

public static java.io.InputStream getInputStream(DomainDecorator domainDec)

validate

public static boolean validate(DomainDecorator domainDec)
                        throws java.lang.Exception
Throws:
java.lang.Exception

loadDomain

public static Domain loadDomain(java.lang.String filename)
                         throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException

saveDomain

public static void saveDomain(Domain domain,
                              java.lang.String filename)
                       throws javax.xml.bind.JAXBException,
                              java.io.FileNotFoundException
Throws:
javax.xml.bind.JAXBException
java.io.FileNotFoundException


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.