ch.sahits.codegen.java.wizards
Class XMLHeadlessSerializerFactory

java.lang.Object
  extended by ch.sahits.codegen.input.GeneralHeadlessXMLSerializerFactory
      extended by ch.sahits.codegen.java.wizards.XMLHeadlessSerializerFactory
All Implemented Interfaces:
IXMLSerializerFactory

public class XMLHeadlessSerializerFactory
extends GeneralHeadlessXMLSerializerFactory
implements IXMLSerializerFactory

This is a factory for XML serializers in the headless execution environment

Since:
2.1.0
Author:
Andi Hotz, Stahits GmbH

Constructor Summary
protected XMLHeadlessSerializerFactory()
          Default constructor may only be called from within the class hierarchy
 
Method Summary
static XMLHeadlessSerializerFactory 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

XMLHeadlessSerializerFactory

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

Method Detail

getInstance

public static XMLHeadlessSerializerFactory 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
Overrides:
getXMLDeSerializer in class GeneralHeadlessXMLSerializerFactory
Parameters:
inputFile - path to the XML file
Returns:
De-Serializing instance of IXMLSerializer
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