|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
ch.sahits.codegen.php.PHPXMLInputParser
public class PHPXMLInputParser
XML Parser vor the PHP input file that conforms to http://sahits.ch/xsd/phpClassTemplate.xsd
| Constructor Summary | |
|---|---|
PHPXMLInputParser()
Initialize the Parser and do the work |
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Handle the text according to the parent tag |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
|
IGeneratedObject |
generateModel()
Generate the IPHPModel |
java.lang.String |
getFileExtension()
This parser parses XML files |
int |
getRanking()
The ranking for xml input parsers is ignored since each xml file must specify the parser |
int |
getWorkload()
Retrieve the workload of the parsing |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Pass throught to characters(char[], int, int) to ensure no
whitespaces are ignored |
void |
init(java.lang.String path2xml)
Initialize the parser |
boolean |
isInitialized()
Check if the parser is 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. |
IGeneratedObject |
parse()
This method is depricated use the appropriate generateModel method instead. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
Event for starting tag |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endDocument, endPrefixMapping, error, fatalError, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PHPXMLInputParser()
| Method Detail |
|---|
public void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionDefaultHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionDefaultHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionDefaultHandler.characters(char[], int, int)
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters(char[], int, int) to ensure no
whitespaces are ignored
ignorableWhitespace in interface org.xml.sax.ContentHandlerignorableWhitespace in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionDefaultHandler.ignorableWhitespace(char[], int, int)public int getWorkload()
getWorkload in interface IInputParserpublic void init(java.lang.String path2xml)
init in interface IInputParserpath2xml - path to the XML filepublic boolean isInitialized()
isInitialized in interface IXMLInputFileParserpublic IGeneratedObject generateModel()
generateModel in interface IXMLGeneralInputFileParserpublic java.lang.String getFileExtension()
getFileExtension in interface IInputParserpublic IGeneratedObject parse()
parse in interface IInputParserparse in interface IXMLGeneralInputFileParserpublic int getRanking()
getRanking in interface IInputParserpublic EDBConnectionData needsDataBaseInformationForCompleetion()
needsDataBaseInformationForCompleetion in interface IInputParser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||