2 Copyright (C) 1997-2017 JDERobot Developers Team 4 This program is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation; either version 2 of the License, or 7 (at your option) any later version. 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU Library General Public License for more details. 14 You should have received a copy of the GNU General Public License 15 along with this program; if not, see <http://www.gnu.org/licenses/>. 17 Authors : Pushkal Katara (katarapushkal@gmail.com) 27 namespaceElement = doc.createElement(
'global_namespace')
29 namespaceElement = doc.createElement(
'namespace')
30 functionsElement = doc.createElement(
'functions')
31 functionsElement.appendChild(doc.createTextNode(self.
functions))
32 namespaceElement.appendChild(functionsElement)
33 variablesElement = doc.createElement(
'variables')
34 variablesElement.appendChild(doc.createTextNode(self.
variables))
35 namespaceElement.appendChild(variablesElement)
36 return namespaceElement
39 elements = parentElement.getElementsByTagName(elementName)
41 if len(elements[0].childNodes) > 0:
42 return elements[0].childNodes[0].nodeValue
45 def parse(self, namespaceElement):
72 for i
in range(len(string)):
def getAsText(self, string)
def parse(self, namespaceElement)
def setFunctions(self, functions)
def getVariablesAsText(self)
def getFunctionsAsText(self)
def addFunctions(self, functions)
def setVariables(self, variables)
def __init__(self, functions, variables)
def parseElement(self, elementName, parentElement)
def addVariables(self, variables)
def createNode(self, doc, globalNamespace=False)