de.ls5.jlearn.util
Class AutomatonXMLUtil

java.lang.Object
  extended by de.ls5.jlearn.util.AutomatonXMLUtil

public class AutomatonXMLUtil
extends Object

Author:
fh

Constructor Summary
AutomatonXMLUtil()
           
 
Method Summary
static void exportAutomaton(Automaton a, File f, XmlSerializationHelper helper)
           
static String exportAutomaton(Automaton a, XmlSerializationHelper helper)
           
static Automaton fromXml(AutomatonType in, XmlSerializationHelper helper)
           
static Word fromXml(WordType w, XmlSerializationHelper helper)
           
static Automaton importAutomaton(File f, XmlSerializationHelper helper)
           
static Automaton importAutomaton(String xml, XmlSerializationHelper helper)
           
static AutomatonType toXml(Automaton in, ObjectFactory factory, XmlSerializationHelper helper)
           
static WordType toXml(Word w, ObjectFactory factory, XmlSerializationHelper helper)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutomatonXMLUtil

public AutomatonXMLUtil()
Method Detail

exportAutomaton

public static void exportAutomaton(Automaton a,
                                   File f,
                                   XmlSerializationHelper helper)
                            throws JAXBException,
                                   XmlSerializationException
Throws:
JAXBException
XmlSerializationException

importAutomaton

public static Automaton importAutomaton(File f,
                                        XmlSerializationHelper helper)
                                 throws JAXBException,
                                        XmlSerializationException
Throws:
JAXBException
XmlSerializationException

exportAutomaton

public static String exportAutomaton(Automaton a,
                                     XmlSerializationHelper helper)
                              throws JAXBException,
                                     XmlSerializationException
Throws:
JAXBException
XmlSerializationException

importAutomaton

public static Automaton importAutomaton(String xml,
                                        XmlSerializationHelper helper)
                                 throws JAXBException,
                                        XmlSerializationException
Throws:
JAXBException
XmlSerializationException

toXml

public static AutomatonType toXml(Automaton in,
                                  ObjectFactory factory,
                                  XmlSerializationHelper helper)
                           throws XmlSerializationException
Throws:
XmlSerializationException

fromXml

public static Automaton fromXml(AutomatonType in,
                                XmlSerializationHelper helper)
                         throws XmlSerializationException
Throws:
XmlSerializationException

fromXml

public static Word fromXml(WordType w,
                           XmlSerializationHelper helper)
                    throws XmlSerializationException
Throws:
XmlSerializationException

toXml

public static WordType toXml(Word w,
                             ObjectFactory factory,
                             XmlSerializationHelper helper)
                      throws XmlSerializationException
Throws:
XmlSerializationException


Copyright © 2011. All Rights Reserved.