ch.sahits.codegen.input
Interface IXMLJavaInputFileParser

All Superinterfaces:
IInputParser, IXMLInputFileParser

public interface IXMLJavaInputFileParser
extends IXMLInputFileParser

This interface denotes what an input parser for XML files must do. This interface defines the method needed to generate an input data model for Java classes

Since:
0.9.3 TODO Replace IGeneratedJavaDBClass with IGeneratedJavaDBClass2 and IGeneratedJavaClass with IGeneratedJavaClass2
Author:
Andi Hotz

Method Summary
 IGeneratedJavaClass generateModel(java.lang.String className, java.lang.String packageName, boolean isPublic, boolean isAbstract, boolean isFinal)
          Convert the XML file into a model object The previous signature of this class was augmented.
 IGeneratedObject parse()
          Deprecated. Use the generateModel(String, String, boolean, boolean, boolean) instead
 
Methods inherited from interface ch.sahits.codegen.input.IXMLInputFileParser
isInitialized
 
Methods inherited from interface ch.sahits.codegen.input.IInputParser
getFileExtension, getRanking, getWorkload, init, needsDataBaseInformationForCompleetion
 

Method Detail

generateModel

IGeneratedJavaClass generateModel(java.lang.String className,
                                  java.lang.String packageName,
                                  boolean isPublic,
                                  boolean isAbstract,
                                  boolean isFinal)
Convert the XML file into a model object The previous signature of this class was augmented. To achieve the same as before pass generateModel(className,"",true,false,false)

Parameters:
className - name of the class to be generated
packageName - Name of the package the class resides in
isPublic - is the class bublic
isAbstract - is the class abstract
isFinal - is the class final
Returns:
IGeneratedJavaDBClass model

parse

@Deprecated
IGeneratedObject parse()
Deprecated. Use the generateModel(String, String, boolean, boolean, boolean) instead

Parse the input file into an object that represents a database table.

Specified by:
parse in interface IInputParser
Returns:
IGeneratedJavaClass Bean with the data