eric3.Project.ProjectHandler

Module implementing the handler class for reading an XML project file.

Classes

ProjectHandler Class implementing a sax handler to read an XML project file.

Functions

None

ProjectHandler

Class implementing a sax handler to read an XML project file.

Derived from

XMLSAXHandler

Methods

ProjectHandler Constructor
buildPath Private method to assemble a path.
characters Handler called for ordinary text.
defaultStartElement Handler method for common start tags.
endAuthor Handler method for the "Author" end tag.
endDescription Handler method for the "Description" end tag.
endDir Handler method for the "Dir" end tag.
endElement Handler called, when an ending tag is found.
endEmail Handler method for the "Email" end tag.
endEric3DocParams Handler method for the "Eric3DocParams" end tag.
endForm Handler method for the "Form" end tag.
endHappyDocParams Handler method for the "HappyDocParams" end tag.
endInterface Handler method for the "Interface" end tag.
endMainScript Handler method for the "MainScript" end tag.
endName Handler method for the "Name" end tag.
endOther Handler method for the "Other" end tag.
endSource Handler method for the "Source" end tag.
endTranslation Handler method for the "Translation" end tag.
endVcsOptions Handler method for the "VcsOptions" end tag.
endVcsType Handler method for the "VcsType" end tag.
endVersion Handler method for the "Version" end tag.
startDocument Handler called, when the document parsing is started.
startElement Handler called, when a starting tag is found.
startForm Handler method for the "Form" start tag.
startInterface Handler method for the "Interface" start tag.
startMainScript Handler method for the "MainScript" start tag.
startOther Handler method for the "Other" start tag.
startSource Handler method for the "Source" start tag.
startTranslation Handler method for the "Translation" start tag.
utf8_to_code Private method to convert a string to unicode and encode it for XML.

ProjectHandler (Constructor)

ProjectHandler(project)

Constructor

project
Reference to the project object to store the information into.

ProjectHandler.buildPath

buildPath()

Private method to assemble a path.

Returns:
The ready assembled path. (string)

ProjectHandler.characters

characters(chars)

Handler called for ordinary text.

chars
the scanned text (string)

ProjectHandler.defaultStartElement

defaultStartElement(attrs)

Handler method for common start tags.

attrs
list of tag attributes

ProjectHandler.endAuthor

endAuthor()

Handler method for the "Author" end tag.

ProjectHandler.endDescription

endDescription()

Handler method for the "Description" end tag.

ProjectHandler.endDir

endDir()

Handler method for the "Dir" end tag.

ProjectHandler.endElement

endElement(name)

Handler called, when an ending tag is found.

name
name of the tag (string)

ProjectHandler.endEmail

endEmail()

Handler method for the "Email" end tag.

ProjectHandler.endEric3DocParams

endEric3DocParams()

Handler method for the "Eric3DocParams" end tag.

ProjectHandler.endForm

endForm()

Handler method for the "Form" end tag.

ProjectHandler.endHappyDocParams

endHappyDocParams()

Handler method for the "HappyDocParams" end tag.

ProjectHandler.endInterface

endInterface()

Handler method for the "Interface" end tag.

ProjectHandler.endMainScript

endMainScript()

Handler method for the "MainScript" end tag.

ProjectHandler.endName

endName()

Handler method for the "Name" end tag.

ProjectHandler.endOther

endOther()

Handler method for the "Other" end tag.

ProjectHandler.endSource

endSource()

Handler method for the "Source" end tag.

ProjectHandler.endTranslation

endTranslation()

Handler method for the "Translation" end tag.

ProjectHandler.endVcsOptions

endVcsOptions()

Handler method for the "VcsOptions" end tag.

ProjectHandler.endVcsType

endVcsType()

Handler method for the "VcsType" end tag.

ProjectHandler.endVersion

endVersion()

Handler method for the "Version" end tag.

ProjectHandler.startDocument

startDocument()

Handler called, when the document parsing is started.

ProjectHandler.startElement

startElement(name, attrs)

Handler called, when a starting tag is found.

attrs
list of tag attributes
name
name of the tag (string)

ProjectHandler.startForm

startForm(attrs)

Handler method for the "Form" start tag.

attrs
list of tag attributes

ProjectHandler.startInterface

startInterface(attrs)

Handler method for the "Interface" start tag.

attrs
list of tag attributes

ProjectHandler.startMainScript

startMainScript(attrs)

Handler method for the "MainScript" start tag.

attrs
list of tag attributes

ProjectHandler.startOther

startOther(attrs)

Handler method for the "Other" start tag.

attrs
list of tag attributes

ProjectHandler.startSource

startSource(attrs)

Handler method for the "Source" start tag.

attrs
list of tag attributes

ProjectHandler.startTranslation

startTranslation(attrs)

Handler method for the "Translation" start tag.

attrs
list of tag attributes

ProjectHandler.utf8_to_code

utf8_to_code(text)

Private method to convert a string to unicode and encode it for XML.

text
the text to encode (string)

Up