################################################## 
# MetaEditAPI_services_types.py 
# generated by ZSI.generate.wsdl2python
##################################################


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

##############################
# targetNamespace
# http://metacase.com/type
##############################

class ns0:
    targetNamespace = "http://metacase.com/type"

    class MEOop_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://metacase.com/type"
        type = (schema, "MEOop")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns0.MEOop_Def.schema
            TClist = [ZSI.TCnumbers.Iint(pname="areaID", aname="_areaID", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCnumbers.Iint(pname="objectID", aname="_objectID", 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:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._areaID = None
                    self._objectID = None
                    return
            Holder.__name__ = "MEOop_Holder"
            self.pyclass = Holder

    class MEAny_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://metacase.com/type"
        type = (schema, "MEAny")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns0.MEAny_Def.schema
            TClist = [ZSI.TC.String(pname="meType", aname="_meType", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="meValue", aname="_meValue", 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:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._meType = None
                    self._meValue = None
                    return
            Holder.__name__ = "MEAny_Holder"
            self.pyclass = Holder

    class METype_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://metacase.com/type"
        type = (schema, "METype")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns0.METype_Def.schema
            TClist = [ZSI.TC.String(pname="name", aname="_name", 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:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._name = None
                    return
            Holder.__name__ = "METype_Holder"
            self.pyclass = Holder

    class Text_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://metacase.com/type"
        type = (schema, "Text")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns0.Text_Def.schema
            TClist = [ZSI.TC.String(pname="string", aname="_string", 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:
                typecode = self
                def __init__(self):
                    # pyclass
                    self._string = None
                    return
            Holder.__name__ = "Text_Holder"
            self.pyclass = Holder

    class MENull_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
        schema = "http://metacase.com/type"
        type = (schema, "MENull")
        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
            ns = ns0.MENull_Def.schema
            TClist = []
            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:
                typecode = self
                def __init__(self):
                    # pyclass
                    return
            Holder.__name__ = "MENull_Holder"
            self.pyclass = Holder

    class MEOopArray_Def(ZSI.TC.Array, TypeDefinition):
        #complexType/complexContent base="SOAP-ENC:Array"
        schema = "http://metacase.com/type"
        type = (schema, "MEOopArray")
        def __init__(self, pname, ofwhat=(), extend=False, restrict=False, attributes=None, **kw):
            ofwhat = ns0.MEOop_Def(None, typed=False)
            atype = (u'http://metacase.com/type', u'MEOop[]')
            ZSI.TCcompound.Array.__init__(self, atype, ofwhat, pname=pname, childnames='item', **kw)

    class MEAnyArray_Def(ZSI.TC.Array, TypeDefinition):
        #complexType/complexContent base="SOAP-ENC:Array"
        schema = "http://metacase.com/type"
        type = (schema, "MEAnyArray")
        def __init__(self, pname, ofwhat=(), extend=False, restrict=False, attributes=None, **kw):
            ofwhat = ns0.MEAny_Def(None, typed=False)
            atype = (u'http://metacase.com/type', u'MEAny[]')
            ZSI.TCcompound.Array.__init__(self, atype, ofwhat, pname=pname, childnames='item', **kw)

    class METypeArray_Def(ZSI.TC.Array, TypeDefinition):
        #complexType/complexContent base="SOAP-ENC:Array"
        schema = "http://metacase.com/type"
        type = (schema, "METypeArray")
        def __init__(self, pname, ofwhat=(), extend=False, restrict=False, attributes=None, **kw):
            ofwhat = ns0.METype_Def(None, typed=False)
            atype = (u'http://metacase.com/type', u'METype[]')
            ZSI.TCcompound.Array.__init__(self, atype, ofwhat, pname=pname, childnames='item', **kw)

# end class ns0 (tns: http://metacase.com/type)
