Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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)
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':
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':
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()
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
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
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
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)
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
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: