ch.sahits.codegen.xml
Class WebserviceParser

java.lang.Object
  extended by ch.sahits.codegen.input.XMLJDomParser
      extended by ch.sahits.codegen.xml.WebserviceParser
All Implemented Interfaces:
IInputParser, IXMLGeneralInputFileParser, IXMLInputFileParser

public final class WebserviceParser
extends XMLJDomParser
implements IXMLGeneralInputFileParser

This XML parser can create a webservice model parsed on the http://xsd.sahits.ch/codegen/webservice.xsd XML Schema definition

Since:
1.2.0
Author:
Andi Hotz, Sathis GmbH

Field Summary
 
Fields inherited from class ch.sahits.codegen.input.XMLJDomParser
document, root
 
Constructor Summary
WebserviceParser()
          Default constructor calling the super constructor
 
Method Summary
 IWebservice generateModel()
          Create a IWebservice model
 int getWorkload()
          Defines how complex the generation of the model is
 void init(java.lang.String path2XML)
          Initialize the XML file for parsing
 boolean isInitialized()
          Check whether the the object is properly initialized
 EDBConnectionData needsDataBaseInformationForCompleetion()
          Indicate if the input file is self contained or if for compleetion of the model information from the second page is needed.
 
Methods inherited from class ch.sahits.codegen.input.XMLJDomParser
getAllAttributes, getAllElements, getAttributeValue, getFileExtension, getFirstElement, getParserName, getPredecessor, getRanking, hasChild, hasChild, hasText, lookup, parse, setNamespace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ch.sahits.codegen.input.IXMLGeneralInputFileParser
parse
 
Methods inherited from interface ch.sahits.codegen.input.IInputParser
getFileExtension, getRanking
 

Constructor Detail

WebserviceParser

public WebserviceParser()
Default constructor calling the super constructor

Method Detail

isInitialized

public boolean isInitialized()
Check whether the the object is properly initialized

Specified by:
isInitialized in interface IXMLInputFileParser
Returns:
true if initialization occurred with the constructor

init

public void init(java.lang.String path2XML)
Initialize the XML file for parsing

Specified by:
init in interface IInputParser
Overrides:
init in class XMLJDomParser
Parameters:
path2XML - absolute path to the XML file

getWorkload

public int getWorkload()
Defines how complex the generation of the model is

Specified by:
getWorkload in interface IInputParser
Returns:
Number of work steps

generateModel

public IWebservice generateModel()
Create a IWebservice model

Specified by:
generateModel in interface IXMLGeneralInputFileParser
Returns:
Instance of a webservice model

needsDataBaseInformationForCompleetion

public EDBConnectionData needsDataBaseInformationForCompleetion()
Indicate if the input file is self contained or if for compleetion of the model information from the second page is needed.

Specified by:
needsDataBaseInformationForCompleetion in interface IInputParser
Returns: