ch.sahits.codegen.ui.input
Class GeneralXMLSerializerFactory

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

public class GeneralXMLSerializerFactory
extends GeneralHeadlessXMLSerializerFactory
implements IXMLSerializerFactory

Serializer factory for the serializer of a general Code generation. This implementation overrides all member functions of the super class to provide a UI specific implementation.

Since:
1.2.0
Author:
Andi Hotz

Constructor Summary
protected GeneralXMLSerializerFactory()
          Default constructor may only be called from within the class hierarchy
 
Method Summary
static GeneralXMLSerializerFactory getInstance()
          Retrieve an instance of this factory The instance may only be called from XMLSerializerFactroryFactory
 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

GeneralXMLSerializerFactory

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

Method Detail

getInstance

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

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
Overrides:
getXMLDeSerializer in class GeneralHeadlessXMLSerializerFactory
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
Overrides:
getXMLSerializer in class GeneralHeadlessXMLSerializerFactory
Parameters:
inputFile - path to the XML file
Returns:
Serializing instance
Throws:
JDOMException
java.io.IOException