How to use the nyoka.PMML44.xmlbehavior.SaxStackElement function in nyoka

To help you get started, we’ve selected a few nyoka examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nyoka-pmml / nyoka / nyoka / PMML44 / xmlbehavior.py View on Github external
elif name == 'arg':
            obj = arg.factory()
            stackObj = SaxStackElement('arg', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'data-type':
            stackObj = SaxStackElement('data_type', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'ancillary':
            obj = arg.factory()
            stackObj = SaxStackElement('ancillary', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'role':
            stackObj = SaxStackElement('role', None)
            self.stack.append(stackObj)
            done = 1
        if not done:
            self.reportError('"%s" element not allowed here.' % name)
github nyoka-pmml / nyoka / nyoka / PMML44 / xmlbehavior.py View on Github external
elif name == 'base-impl-url':
            stackObj = SaxStackElement('base_impl_url', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'behaviors':
            obj = behaviors.factory()
            stackObj = SaxStackElement('behaviors', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'behavior':
            obj = behavior.factory()
            stackObj = SaxStackElement('behavior', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'class':
            stackObj = SaxStackElement('klass', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'name':
            stackObj = SaxStackElement('name', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'return-type':
            stackObj = SaxStackElement('return_type', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'args':
            obj = args.factory()
            stackObj = SaxStackElement('args', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'impl-url':
github nyoka-pmml / nyoka / nyoka / PMML44 / xmlbehavior.py View on Github external
def startElement(self, name, attrs):
        done = 0
        if name == 'xml-behavior':
            obj = xml-behavior.factory()
            stackObj = SaxStackElement('xml-behavior', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'base-impl-url':
            stackObj = SaxStackElement('base_impl_url', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'behaviors':
            obj = behaviors.factory()
            stackObj = SaxStackElement('behaviors', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'behavior':
            obj = behavior.factory()
            stackObj = SaxStackElement('behavior', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'class':
            stackObj = SaxStackElement('klass', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'name':
            stackObj = SaxStackElement('name', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'return-type':
github nyoka-pmml / nyoka / nyoka / PMML44 / xmlbehavior.py View on Github external
obj = xml-behavior.factory()
            stackObj = SaxStackElement('xml-behavior', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'base-impl-url':
            stackObj = SaxStackElement('base_impl_url', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'behaviors':
            obj = behaviors.factory()
            stackObj = SaxStackElement('behaviors', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'behavior':
            obj = behavior.factory()
            stackObj = SaxStackElement('behavior', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'class':
            stackObj = SaxStackElement('klass', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'name':
            stackObj = SaxStackElement('name', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'return-type':
            stackObj = SaxStackElement('return_type', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'args':
            obj = args.factory()
github nyoka-pmml / nyoka / nyoka / PMML44 / xmlbehavior.py View on Github external
done = 1
        elif name == 'name':
            stackObj = SaxStackElement('name', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'return-type':
            stackObj = SaxStackElement('return_type', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'args':
            obj = args.factory()
            stackObj = SaxStackElement('args', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'impl-url':
            stackObj = SaxStackElement('impl_url', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'ancillaries':
            obj = ancillaries.factory()
            stackObj = SaxStackElement('ancillaries', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'arg':
            obj = arg.factory()
            stackObj = SaxStackElement('arg', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'data-type':
            stackObj = SaxStackElement('data_type', None)
            self.stack.append(stackObj)
            done = 1
github nyoka-pmml / nyoka / nyoka / PMML44 / xmlbehavior.py View on Github external
elif name == 'return-type':
            stackObj = SaxStackElement('return_type', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'args':
            obj = args.factory()
            stackObj = SaxStackElement('args', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'impl-url':
            stackObj = SaxStackElement('impl_url', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'ancillaries':
            obj = ancillaries.factory()
            stackObj = SaxStackElement('ancillaries', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'arg':
            obj = arg.factory()
            stackObj = SaxStackElement('arg', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'data-type':
            stackObj = SaxStackElement('data_type', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'ancillary':
            obj = arg.factory()
            stackObj = SaxStackElement('ancillary', obj)
            self.stack.append(stackObj)
            done = 1
github nyoka-pmml / nyoka / nyoka / PMML44 / xmlbehavior.py View on Github external
def startElement(self, name, attrs):
        done = 0
        if name == 'xml-behavior':
            obj = xml-behavior.factory()
            stackObj = SaxStackElement('xml-behavior', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'base-impl-url':
            stackObj = SaxStackElement('base_impl_url', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'behaviors':
            obj = behaviors.factory()
            stackObj = SaxStackElement('behaviors', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'behavior':
            obj = behavior.factory()
            stackObj = SaxStackElement('behavior', obj)
            self.stack.append(stackObj)
            done = 1
github nyoka-pmml / nyoka / nyoka / PMML44 / xmlbehavior.py View on Github external
obj = ancillaries.factory()
            stackObj = SaxStackElement('ancillaries', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'arg':
            obj = arg.factory()
            stackObj = SaxStackElement('arg', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'data-type':
            stackObj = SaxStackElement('data_type', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'ancillary':
            obj = arg.factory()
            stackObj = SaxStackElement('ancillary', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'role':
            stackObj = SaxStackElement('role', None)
            self.stack.append(stackObj)
            done = 1
        if not done:
            self.reportError('"%s" element not allowed here.' % name)
github nyoka-pmml / nyoka / nyoka / PMML44 / xmlbehavior.py View on Github external
done = 1
        elif name == 'class':
            stackObj = SaxStackElement('klass', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'name':
            stackObj = SaxStackElement('name', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'return-type':
            stackObj = SaxStackElement('return_type', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'args':
            obj = args.factory()
            stackObj = SaxStackElement('args', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'impl-url':
            stackObj = SaxStackElement('impl_url', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'ancillaries':
            obj = ancillaries.factory()
            stackObj = SaxStackElement('ancillaries', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'arg':
            obj = arg.factory()
            stackObj = SaxStackElement('arg', obj)
            self.stack.append(stackObj)
            done = 1
github nyoka-pmml / nyoka / nyoka / PMML44 / xmlbehavior.py View on Github external
obj = args.factory()
            stackObj = SaxStackElement('args', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'impl-url':
            stackObj = SaxStackElement('impl_url', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'ancillaries':
            obj = ancillaries.factory()
            stackObj = SaxStackElement('ancillaries', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'arg':
            obj = arg.factory()
            stackObj = SaxStackElement('arg', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'data-type':
            stackObj = SaxStackElement('data_type', None)
            self.stack.append(stackObj)
            done = 1
        elif name == 'ancillary':
            obj = arg.factory()
            stackObj = SaxStackElement('ancillary', obj)
            self.stack.append(stackObj)
            done = 1
        elif name == 'role':
            stackObj = SaxStackElement('role', None)
            self.stack.append(stackObj)
            done = 1
        if not done: