##################################################
# file: VanHelsing_types.py
#
# schema types generated by "ZSI.generate.wsdl2python.WriteServiceModule"
#    /usr/bin/wsdl2py -b VanHelsing.wsdl
#
##################################################

import ZSI
import ZSI.TCcompound
from ZSI.schema import LocalElementDeclaration, ElementDeclaration, TypeDefinition, GTD, GED
from ZSI.generate.pyclass import pyclass_type

##############################
# targetNamespace
# http://www.dass-it.de/VanHelsing/
##############################

class ns0:
    targetNamespace = "http://www.dass-it.de/VanHelsing/"

    class listResourcesType_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.dass-it.de/VanHelsing/"
        type = (schema, "listResourcesType")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns0.listResourcesType_Def.schema
            TClist = [ZSI.TC.String(pname="resourceType", aname="_resourceType", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="director", aname="_director", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                __metaclass__ = pyclass_type
                typecode = self
                def __init__(self):
                    # pyclass
                    self._resourceType = None
                    self._director = None
                    return
            Holder.__name__ = "listResourcesType_Holder"
            self.pyclass = Holder

    class resourceListType_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.dass-it.de/VanHelsing/"
        type = (schema, "resourceListType")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns0.resourceListType_Def.schema
            TClist = [GTD("http://www.dass-it.de/VanHelsing/","ResourceInfo",lazy=False)(pname="resource", aname="_resource", minOccurs=0, maxOccurs="unbounded", nillable=False, typed=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                __metaclass__ = pyclass_type
                typecode = self
                def __init__(self):
                    # pyclass
                    self._resource = []
                    return
            Holder.__name__ = "resourceListType_Holder"
            self.pyclass = Holder

    class ResourceInfo_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.dass-it.de/VanHelsing/"
        type = (schema, "ResourceInfo")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns0.ResourceInfo_Def.schema
            TClist = [ZSI.TCnumbers.Iint(pname="resId", aname="_resId", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="resType", aname="_resType", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="resName", aname="_resName", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="director", aname="_director", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                __metaclass__ = pyclass_type
                typecode = self
                def __init__(self):
                    # pyclass
                    self._resId = None
                    self._resType = None
                    self._resName = None
                    self._director = None
                    return
            Holder.__name__ = "ResourceInfo_Holder"
            self.pyclass = Holder

    class ResourceAttributeType_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.dass-it.de/VanHelsing/"
        type = (schema, "ResourceAttributeType")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns0.ResourceAttributeType_Def.schema
            TClist = [ZSI.TC.String(pname="key", aname="_key", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="value", aname="_value", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                __metaclass__ = pyclass_type
                typecode = self
                def __init__(self):
                    # pyclass
                    self._key = None
                    self._value = None
                    return
            Holder.__name__ = "ResourceAttributeType_Holder"
            self.pyclass = Holder

    class getResourceType_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://www.dass-it.de/VanHelsing/"
        type = (schema, "getResourceType")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns0.getResourceType_Def.schema
            TClist = [ZSI.TCnumbers.Iint(pname="resId", aname="_resId", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="director", aname="_director", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
            self.attribute_typecode_dict = attributes or {}
            if extend: TClist += ofwhat
            if restrict: TClist = ofwhat
            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
            class Holder:
                __metaclass__ = pyclass_type
                typecode = self
                def __init__(self):
                    # pyclass
                    self._resId = None
                    self._director = None
                    return
            Holder.__name__ = "getResourceType_Holder"
            self.pyclass = Holder

    class listResources_Dec(ElementDeclaration):
        literal = "listResources"
        schema = "http://www.dass-it.de/VanHelsing/"
        substitutionGroup = None
        def __init__(self, **kw):
            kw["pname"] = ("http://www.dass-it.de/VanHelsing/","listResources")
            kw["aname"] = "_listResources"
            if ns0.listResourcesType_Def not in ns0.listResources_Dec.__bases__:
                bases = list(ns0.listResources_Dec.__bases__)
                bases.insert(0, ns0.listResourcesType_Def)
                ns0.listResources_Dec.__bases__ = tuple(bases)

            ns0.listResourcesType_Def.__init__(self, **kw)
            if self.pyclass is not None: self.pyclass.__name__ = "listResources_Dec_Holder"

    class listResourcesResponse_Dec(ElementDeclaration):
        literal = "listResourcesResponse"
        schema = "http://www.dass-it.de/VanHelsing/"
        substitutionGroup = None
        def __init__(self, **kw):
            kw["pname"] = ("http://www.dass-it.de/VanHelsing/","listResourcesResponse")
            kw["aname"] = "_listResourcesResponse"
            if ns0.resourceListType_Def not in ns0.listResourcesResponse_Dec.__bases__:
                bases = list(ns0.listResourcesResponse_Dec.__bases__)
                bases.insert(0, ns0.resourceListType_Def)
                ns0.listResourcesResponse_Dec.__bases__ = tuple(bases)

            ns0.resourceListType_Def.__init__(self, **kw)
            if self.pyclass is not None: self.pyclass.__name__ = "listResourcesResponse_Dec_Holder"

    class getSimpleResource_Dec(ElementDeclaration):
        literal = "getSimpleResource"
        schema = "http://www.dass-it.de/VanHelsing/"
        substitutionGroup = None
        def __init__(self, **kw):
            kw["pname"] = ("http://www.dass-it.de/VanHelsing/","getSimpleResource")
            kw["aname"] = "_getSimpleResource"
            if ns0.getResourceType_Def not in ns0.getSimpleResource_Dec.__bases__:
                bases = list(ns0.getSimpleResource_Dec.__bases__)
                bases.insert(0, ns0.getResourceType_Def)
                ns0.getSimpleResource_Dec.__bases__ = tuple(bases)

            ns0.getResourceType_Def.__init__(self, **kw)
            if self.pyclass is not None: self.pyclass.__name__ = "getSimpleResource_Dec_Holder"

    class getSimpleResourceResponse_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
        literal = "getSimpleResourceResponse"
        schema = "http://www.dass-it.de/VanHelsing/"
        def __init__(self, **kw):
            ns = ns0.getSimpleResourceResponse_Dec.schema
            TClist = [GTD("http://www.dass-it.de/VanHelsing/","ResourceInfo",lazy=False)(pname="resInfo", aname="_resInfo", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.dass-it.de/VanHelsing/","ResourceAttributeType",lazy=False)(pname="resAttribute", aname="_resAttribute", minOccurs=0, maxOccurs="unbounded", nillable=False, typed=False, encoded=kw.get("encoded"))]
            kw["pname"] = ("http://www.dass-it.de/VanHelsing/","getSimpleResourceResponse")
            kw["aname"] = "_getSimpleResourceResponse"
            self.attribute_typecode_dict = {}
            ZSI.TCcompound.ComplexType.__init__(self,None,TClist,inorder=0,**kw)
            class Holder:
                __metaclass__ = pyclass_type
                typecode = self
                def __init__(self):
                    # pyclass
                    self._resInfo = None
                    self._resAttribute = []
                    return
            Holder.__name__ = "getSimpleResourceResponse_Holder"
            self.pyclass = Holder

# end class ns0 (tns: http://www.dass-it.de/VanHelsing/)
