ch.sahits.codegen.input
Class GeneralHeadlessXMLSerializerFactory

java.lang.Object
  extended by ch.sahits.codegen.input.GeneralHeadlessXMLSerializerFactory
All Implemented Interfaces:
IXMLSerializerFactory
Direct Known Subclasses:
GeneralXMLSerializerFactory, XMLHeadlessSerializerFactory

public class GeneralHeadlessXMLSerializerFactory
extends java.lang.Object
implements IXMLSerializerFactory

This class provides a headless implementation for the XML Serializer. Any subclass for the UI should override all member methods.

Since:
2.1.0
Author:
Andi Hotz, Sahits GmbH

Constructor Summary
protected GeneralHeadlessXMLSerializerFactory()
          Default constructor may only be called from within the class hierarchy
 
Method Summary
static GeneralHeadlessXMLSerializerFactory getInstance()
          Retrieve an instance of this factory The instance may only be called from HeadlessXMLSerializerFactoryFactory
 GerneralHeadLessXMLSerializer getXMLDeSerializer(java.lang.String inputFile)
          Get instance of a serializer for deserializing a XML file for a general code generation
 GerneralHeadLessXMLSerializer getXMLSerializer(java.lang.String inputFile)
          Retrieve the XML serialisation instance that serializes the configuration for the current XML version for a general code generation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneralHeadlessXMLSerializerFactory

protected GeneralHeadlessXMLSerializerFactory()
Default constructor may only be called from within the class hierarchy

Method Detail

getInstance

public static GeneralHeadlessXMLSerializerFactory getInstance()
Retrieve an instance of this factory The instance may only be called from HeadlessXMLSerializerFactoryFactory

Returns:
instance of this type

getXMLDeSerializer

public GerneralHeadLessXMLSerializer getXMLDeSerializer(java.lang.String inputFile)
                                                 throws JDOMException,
                                                        java.io.IOException
Get instance of a serializer for deserializing a XML file for a general code generation

Specified by:
getXMLDeSerializer in interface IXMLSerializerFactory
Parameters:
inputFile - path to the XML file
Returns:
De-Serializing instance
Throws:
JDOMException
java.io.IOException

getXMLSerializer

public GerneralHeadLessXMLSerializer getXMLSerializer(java.lang.String inputFile)
                                               throws JDOMException,
                                                      java.io.IOException
Retrieve the XML serialisation instance that serializes the configuration for the current XML version for a general code generation

Specified by:
getXMLSerializer in interface IXMLSerializerFactory
Parameters:
inputFile - path to the XML file
Returns:
Serializing instance
Throws:
JDOMException
java.io.IOException