""" Module: IDL:omg.org/CosNaming:1.0

Automagically generated by:-

The ORB called Fnorb v1.0.Threads.R.Us

"""

_FNORB_ID = "IDL:omg.org/CosNaming:1.0"

# Fnorb modules.
import Fnorb.orb.CORBA
import Fnorb.orb.TypeManager
import Fnorb.orb.Util

# Alias: IDL:omg.org/CosNaming/Istring:1.0
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNaming/Istring:1.0", "000000000000001200000000", None)

class NameComponent:
    """ Struct: IDL:omg.org/CosNaming/NameComponent:1.0 """

    _FNORB_ID = "IDL:omg.org/CosNaming/NameComponent:1.0"

    def __init__(self, _id, _kind):
        """ Constructor. """

        self.id = _id
        self.kind = _kind
        return

    def __getinitargs__(self):
        """ Return the constructor arguments for unpickling. """

        return (self.id, self.kind)

Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNaming/NameComponent:1.0", "000000000000000F000000EC000000000000002849444C3A6F6D672E6F72672F436F734E616D696E672F4E616D65436F6D706F6E656E743A312E30000000000E4E616D65436F6D706F6E656E740000000000000200000003696400000000001500000040000000000000002249444C3A6F6D672E6F72672F436F734E616D696E672F49737472696E673A312E300000000000000849737472696E67000000001200000000000000056B696E64000000000000001500000040000000000000002249444C3A6F6D672E6F72672F436F734E616D696E672F49737472696E673A312E300000000000000849737472696E67000000001200000000", NameComponent)

# Alias: IDL:omg.org/CosNaming/Name:1.0
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNaming/Name:1.0", "0000000000000013000000FC000000000000000F000000EC000000000000002849444C3A6F6D672E6F72672F436F734E616D696E672F4E616D65436F6D706F6E656E743A312E30000000000E4E616D65436F6D706F6E656E740000000000000200000003696400000000001500000040000000000000002249444C3A6F6D672E6F72672F436F734E616D696E672F49737472696E673A312E300000000000000849737472696E67000000001200000000000000056B696E64000000000000001500000040000000000000002249444C3A6F6D672E6F72672F436F734E616D696E672F49737472696E673A312E300000000000000849737472696E6700000000120000000000000000", None)

# Enum: IDL:omg.org/CosNaming/BindingType:1.0
nobject = Fnorb.orb.Util.EnumMember("nobject", 0)
ncontext = Fnorb.orb.Util.EnumMember("ncontext", 1)
BindingType = Fnorb.orb.Util.Enum("IDL:omg.org/CosNaming/BindingType:1.0", [nobject, ncontext])

Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNaming/BindingType:1.0", "00000000000000110000005D000000000000002649444C3A6F6D672E6F72672F436F734E616D696E672F42696E64696E67547970653A312E300000000000000C42696E64696E67547970650000000002000000086E6F626A65637400000000096E636F6E7465787400", BindingType)

class Binding:
    """ Struct: IDL:omg.org/CosNaming/Binding:1.0 """

    _FNORB_ID = "IDL:omg.org/CosNaming/Binding:1.0"

    def __init__(self, _binding_name, _binding_type):
        """ Constructor. """

        self.binding_name = _binding_name
        self.binding_type = _binding_type
        return

    def __getinitargs__(self):
        """ Return the constructor arguments for unpickling. """

        return (self.binding_name, self.binding_type)

Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNaming/Binding:1.0", "000000000000000F00000209000000000000002249444C3A6F6D672E6F72672F436F734E616D696E672F42696E64696E673A312E300000000000000842696E64696E6700000000020000000D62696E64696E675F6E616D65000000000000001500000138000000000000001F49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D653A312E300000000000054E616D650000000000000013000000FC000000000000000F000000EC000000000000002849444C3A6F6D672E6F72672F436F734E616D696E672F4E616D65436F6D706F6E656E743A312E30000000000E4E616D65436F6D706F6E656E740000000000000200000003696400000000001500000040000000000000002249444C3A6F6D672E6F72672F436F734E616D696E672F49737472696E673A312E300000000000000849737472696E67000000001200000000000000056B696E64000000000000001500000040000000000000002249444C3A6F6D672E6F72672F436F734E616D696E672F49737472696E673A312E300000000000000849737472696E67000000001200000000000000000000000D62696E64696E675F7479706500000000000000110000005D000000000000002649444C3A6F6D672E6F72672F436F734E616D696E672F42696E64696E67547970653A312E300000000000000C42696E64696E67547970650000000002000000086E6F626A65637400000000096E636F6E7465787400", Binding)

# Alias: IDL:omg.org/CosNaming/BindingList:1.0
Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNaming/BindingList:1.0", "00000000000000130000021C000000000000000F00000209000000000000002249444C3A6F6D672E6F72672F436F734E616D696E672F42696E64696E673A312E300000000000000842696E64696E6700000000020000000D62696E64696E675F6E616D65000000000000001500000138000000000000001F49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D653A312E300000000000054E616D650000000000000013000000FC000000000000000F000000EC000000000000002849444C3A6F6D672E6F72672F436F734E616D696E672F4E616D65436F6D706F6E656E743A312E30000000000E4E616D65436F6D706F6E656E740000000000000200000003696400000000001500000040000000000000002249444C3A6F6D672E6F72672F436F734E616D696E672F49737472696E673A312E300000000000000849737472696E67000000001200000000000000056B696E64000000000000001500000040000000000000002249444C3A6F6D672E6F72672F436F734E616D696E672F49737472696E673A312E300000000000000849737472696E67000000001200000000000000000000000D62696E64696E675F7479706500000000000000110000005D000000000000002649444C3A6F6D672E6F72672F436F734E616D696E672F42696E64696E67547970653A312E300000000000000C42696E64696E67547970650000000002000000086E6F626A65637400000000096E636F6E746578740000000000000000", None)

class NamingContext(Fnorb.orb.CORBA.Object):
    """ Interface: IDL:omg.org/CosNaming/NamingContext:1.0 """

    _FNORB_ID = "IDL:omg.org/CosNaming/NamingContext:1.0"

    # Enum: IDL:omg.org/CosNaming/NamingContext/NotFoundReason:1.0
    missing_node = Fnorb.orb.Util.EnumMember("missing_node", 0)
    not_context = Fnorb.orb.Util.EnumMember("not_context", 1)
    not_object = Fnorb.orb.Util.EnumMember("not_object", 2)
    NotFoundReason = Fnorb.orb.Util.Enum("IDL:omg.org/CosNaming/NamingContext/NotFoundReason:1.0", [missing_node, not_context, not_object])

    Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNaming/NamingContext/NotFoundReason:1.0", "00000000000000110000008B000000000000003749444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578742F4E6F74466F756E64526561736F6E3A312E3000000000000F4E6F74466F756E64526561736F6E0000000000030000000D6D697373696E675F6E6F6465000000000000000C6E6F745F636F6E74657874000000000B6E6F745F6F626A65637400", NotFoundReason)

    class NotFound(Fnorb.orb.CORBA.UserException):
        """ Exception: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0 """

        _FNORB_ID = "IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"

        def __init__(self, _why, _rest_of_name):
            """ Constructor. """

            self.why = _why
            self.rest_of_name = _rest_of_name
            return

        def __getinitargs__(self):
            """ Return the constructor arguments for unpickling. """

            return (self.why, self.rest_of_name)

    Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0", "000000000000001600000240000000000000003149444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578742F4E6F74466F756E643A312E3000000000000000094E6F74466F756E6400000000000000020000000477687900000000110000008B000000000000003749444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578742F4E6F74466F756E64526561736F6E3A312E3000000000000F4E6F74466F756E64526561736F6E0000000000030000000D6D697373696E675F6E6F6465000000000000000C6E6F745F636F6E74657874000000000B6E6F745F6F626A65637400000000000D726573745F6F665F6E616D65000000000000001500000138000000000000001F49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D653A312E300000000000054E616D650000000000000013000000FC000000000000000F000000EC000000000000002849444C3A6F6D672E6F72672F436F734E616D696E672F4E616D65436F6D706F6E656E743A312E30000000000E4E616D65436F6D706F6E656E740000000000000200000003696400000000001500000040000000000000002249444C3A6F6D672E6F72672F436F734E616D696E672F49737472696E673A312E300000000000000849737472696E67000000001200000000000000056B696E64000000000000001500000040000000000000002249444C3A6F6D672E6F72672F436F734E616D696E672F49737472696E673A312E300000000000000849737472696E6700000000120000000000000000", NotFound)

    class CannotProceed(Fnorb.orb.CORBA.UserException):
        """ Exception: IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0 """

        _FNORB_ID = "IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"

        def __init__(self, _cxt, _rest_of_name):
            """ Constructor. """

            self.cxt = _cxt
            self.rest_of_name = _rest_of_name
            return

        def __getinitargs__(self):
            """ Return the constructor arguments for unpickling. """

            return (self.cxt, self.rest_of_name)

    Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0", "000000000000001600000200000000000000003649444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578742F43616E6E6F7450726F636565643A312E300000000000000E43616E6E6F7450726F636565640000000000000200000004637874000000000E00000042000000000000002849444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578743A312E30000000000E4E616D696E67436F6E746578740000000000000D726573745F6F665F6E616D65000000000000001500000138000000000000001F49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D653A312E300000000000054E616D650000000000000013000000FC000000000000000F000000EC000000000000002849444C3A6F6D672E6F72672F436F734E616D696E672F4E616D65436F6D706F6E656E743A312E30000000000E4E616D65436F6D706F6E656E740000000000000200000003696400000000001500000040000000000000002249444C3A6F6D672E6F72672F436F734E616D696E672F49737472696E673A312E300000000000000849737472696E67000000001200000000000000056B696E64000000000000001500000040000000000000002249444C3A6F6D672E6F72672F436F734E616D696E672F49737472696E673A312E300000000000000849737472696E6700000000120000000000000000", CannotProceed)

    class InvalidName(Fnorb.orb.CORBA.UserException):
        """ Exception: IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0 """

        _FNORB_ID = "IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"

        def __init__(self):
            """ Constructor. """

            return

    Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0", "000000000000001600000050000000000000003449444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578742F496E76616C69644E616D653A312E30000000000C496E76616C69644E616D650000000000", InvalidName)

    class AlreadyBound(Fnorb.orb.CORBA.UserException):
        """ Exception: IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0 """

        _FNORB_ID = "IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0"

        def __init__(self):
            """ Constructor. """

            return

    Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0", "000000000000001600000058000000000000003549444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578742F416C7265616479426F756E643A312E30000000000000000D416C7265616479426F756E640000000000000000", AlreadyBound)

    class NotEmpty(Fnorb.orb.CORBA.UserException):
        """ Exception: IDL:omg.org/CosNaming/NamingContext/NotEmpty:1.0 """

        _FNORB_ID = "IDL:omg.org/CosNaming/NamingContext/NotEmpty:1.0"

        def __init__(self):
            """ Constructor. """

            return

    Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNaming/NamingContext/NotEmpty:1.0", "000000000000001600000050000000000000003149444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578742F4E6F74456D7074793A312E3000000000000000094E6F74456D7074790000000000000000", NotEmpty)

    def bind(self, *args, **kw):
        """ Operation: IDL:omg.org/CosNaming/NamingContext/bind:1.0 """

        # Typecodes for 'in' and 'inout' parameters.
        inputs = []
        inputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/Name:1.0"))
        inputs.append(Fnorb.orb.CORBA.TC_Object)

        # Typecodes for the result, 'inout' and 'out' parameters.
        outputs = []

        # Typecodes for user exceptions.
        exceptions = []
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0"))

        # Create a request object.
        request = self._create_request("bind", inputs, outputs, exceptions)

        # Make the request!
        apply(request.invoke, args, kw)

        # Return the results.
        return request.results()

    def rebind(self, *args, **kw):
        """ Operation: IDL:omg.org/CosNaming/NamingContext/rebind:1.0 """

        # Typecodes for 'in' and 'inout' parameters.
        inputs = []
        inputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/Name:1.0"))
        inputs.append(Fnorb.orb.CORBA.TC_Object)

        # Typecodes for the result, 'inout' and 'out' parameters.
        outputs = []

        # Typecodes for user exceptions.
        exceptions = []
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))

        # Create a request object.
        request = self._create_request("rebind", inputs, outputs, exceptions)

        # Make the request!
        apply(request.invoke, args, kw)

        # Return the results.
        return request.results()

    def bind_context(self, *args, **kw):
        """ Operation: IDL:omg.org/CosNaming/NamingContext/bind_context:1.0 """

        # Typecodes for 'in' and 'inout' parameters.
        inputs = []
        inputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/Name:1.0"))
        inputs.append(Fnorb.orb.CORBA.TC_Object)

        # Typecodes for the result, 'inout' and 'out' parameters.
        outputs = []

        # Typecodes for user exceptions.
        exceptions = []
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0"))

        # Create a request object.
        request = self._create_request("bind_context", inputs, outputs, exceptions)

        # Make the request!
        apply(request.invoke, args, kw)

        # Return the results.
        return request.results()

    def rebind_context(self, *args, **kw):
        """ Operation: IDL:omg.org/CosNaming/NamingContext/rebind_context:1.0 """

        # Typecodes for 'in' and 'inout' parameters.
        inputs = []
        inputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/Name:1.0"))
        inputs.append(Fnorb.orb.CORBA.TC_Object)

        # Typecodes for the result, 'inout' and 'out' parameters.
        outputs = []

        # Typecodes for user exceptions.
        exceptions = []
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))

        # Create a request object.
        request = self._create_request("rebind_context", inputs, outputs, exceptions)

        # Make the request!
        apply(request.invoke, args, kw)

        # Return the results.
        return request.results()

    def resolve(self, *args, **kw):
        """ Operation: IDL:omg.org/CosNaming/NamingContext/resolve:1.0 """

        # Typecodes for 'in' and 'inout' parameters.
        inputs = []
        inputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/Name:1.0"))

        # Typecodes for the result, 'inout' and 'out' parameters.
        outputs = []
        outputs.append(Fnorb.orb.CORBA.TC_Object)

        # Typecodes for user exceptions.
        exceptions = []
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))

        # Create a request object.
        request = self._create_request("resolve", inputs, outputs, exceptions)

        # Make the request!
        apply(request.invoke, args, kw)

        # Return the results.
        return request.results()

    def unbind(self, *args, **kw):
        """ Operation: IDL:omg.org/CosNaming/NamingContext/unbind:1.0 """

        # Typecodes for 'in' and 'inout' parameters.
        inputs = []
        inputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/Name:1.0"))

        # Typecodes for the result, 'inout' and 'out' parameters.
        outputs = []

        # Typecodes for user exceptions.
        exceptions = []
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))

        # Create a request object.
        request = self._create_request("unbind", inputs, outputs, exceptions)

        # Make the request!
        apply(request.invoke, args, kw)

        # Return the results.
        return request.results()

    def new_context(self, *args, **kw):
        """ Operation: IDL:omg.org/CosNaming/NamingContext/new_context:1.0 """

        # Typecodes for 'in' and 'inout' parameters.
        inputs = []

        # Typecodes for the result, 'inout' and 'out' parameters.
        outputs = []
        outputs.append(Fnorb.orb.CORBA.TC_Object)

        # Typecodes for user exceptions.
        exceptions = []

        # Create a request object.
        request = self._create_request("new_context", inputs, outputs, exceptions)

        # Make the request!
        apply(request.invoke, args, kw)

        # Return the results.
        return request.results()

    def bind_new_context(self, *args, **kw):
        """ Operation: IDL:omg.org/CosNaming/NamingContext/bind_new_context:1.0 """

        # Typecodes for 'in' and 'inout' parameters.
        inputs = []
        inputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/Name:1.0"))

        # Typecodes for the result, 'inout' and 'out' parameters.
        outputs = []
        outputs.append(Fnorb.orb.CORBA.TC_Object)

        # Typecodes for user exceptions.
        exceptions = []
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0"))
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))

        # Create a request object.
        request = self._create_request("bind_new_context", inputs, outputs, exceptions)

        # Make the request!
        apply(request.invoke, args, kw)

        # Return the results.
        return request.results()

    def destroy(self, *args, **kw):
        """ Operation: IDL:omg.org/CosNaming/NamingContext/destroy:1.0 """

        # Typecodes for 'in' and 'inout' parameters.
        inputs = []

        # Typecodes for the result, 'inout' and 'out' parameters.
        outputs = []

        # Typecodes for user exceptions.
        exceptions = []
        exceptions.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/NamingContext/NotEmpty:1.0"))

        # Create a request object.
        request = self._create_request("destroy", inputs, outputs, exceptions)

        # Make the request!
        apply(request.invoke, args, kw)

        # Return the results.
        return request.results()

    def list(self, *args, **kw):
        """ Operation: IDL:omg.org/CosNaming/NamingContext/list:1.0 """

        # Typecodes for 'in' and 'inout' parameters.
        inputs = []
        inputs.append(Fnorb.orb.CORBA.TC_ulong)

        # Typecodes for the result, 'inout' and 'out' parameters.
        outputs = []
        outputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/BindingList:1.0"))
        outputs.append(Fnorb.orb.CORBA.TC_Object)

        # Typecodes for user exceptions.
        exceptions = []

        # Create a request object.
        request = self._create_request("list", inputs, outputs, exceptions)

        # Make the request!
        apply(request.invoke, args, kw)

        # Return the results.
        return request.results()

Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNaming/NamingContext:1.0", "000000000000000E00000042000000000000002849444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578743A312E30000000000E4E616D696E67436F6E7465787400", NamingContext)

class BindingIterator(Fnorb.orb.CORBA.Object):
    """ Interface: IDL:omg.org/CosNaming/BindingIterator:1.0 """

    _FNORB_ID = "IDL:omg.org/CosNaming/BindingIterator:1.0"

    def next_one(self, *args, **kw):
        """ Operation: IDL:omg.org/CosNaming/BindingIterator/next_one:1.0 """

        # Typecodes for 'in' and 'inout' parameters.
        inputs = []

        # Typecodes for the result, 'inout' and 'out' parameters.
        outputs = []
        outputs.append(Fnorb.orb.CORBA.TC_boolean)
        outputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/Binding:1.0"))

        # Typecodes for user exceptions.
        exceptions = []

        # Create a request object.
        request = self._create_request("next_one", inputs, outputs, exceptions)

        # Make the request!
        apply(request.invoke, args, kw)

        # Return the results.
        return request.results()

    def next_n(self, *args, **kw):
        """ Operation: IDL:omg.org/CosNaming/BindingIterator/next_n:1.0 """

        # Typecodes for 'in' and 'inout' parameters.
        inputs = []
        inputs.append(Fnorb.orb.CORBA.TC_ulong)

        # Typecodes for the result, 'inout' and 'out' parameters.
        outputs = []
        outputs.append(Fnorb.orb.CORBA.TC_boolean)
        outputs.append(Fnorb.orb.CORBA.typecode("IDL:omg.org/CosNaming/BindingList:1.0"))

        # Typecodes for user exceptions.
        exceptions = []

        # Create a request object.
        request = self._create_request("next_n", inputs, outputs, exceptions)

        # Make the request!
        apply(request.invoke, args, kw)

        # Return the results.
        return request.results()

    def destroy(self, *args, **kw):
        """ Operation: IDL:omg.org/CosNaming/BindingIterator/destroy:1.0 """

        # Typecodes for 'in' and 'inout' parameters.
        inputs = []

        # Typecodes for the result, 'inout' and 'out' parameters.
        outputs = []

        # Typecodes for user exceptions.
        exceptions = []

        # Create a request object.
        request = self._create_request("destroy", inputs, outputs, exceptions)

        # Make the request!
        apply(request.invoke, args, kw)

        # Return the results.
        return request.results()

Fnorb.orb.TypeManager.TypeManager_init().add_type("IDL:omg.org/CosNaming/BindingIterator:1.0", "000000000000000E00000048000000000000002A49444C3A6F6D672E6F72672F436F734E616D696E672F42696E64696E674974657261746F723A312E300000000000001042696E64696E674974657261746F7200", BindingIterator)

#############################################################################
