# **********************************************************************
#
# Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# **********************************************************************
#
# Ice version 3.4.2
#
# <auto-generated>
#
# Generated from file `State.ice'
#
# Warning: do not edit this file.
#
# </auto-generated>
#

import Ice, IcePy, __builtin__
import omero_model_IObject_ice
import omero_RTypes_ice
import omero_System_ice
import omero_Collections_ice
import omero_model_Location_ice

# Included module omero
_M_omero = Ice.openModule('omero')

# Included module omero.model
_M_omero.model = Ice.openModule('omero.model')

# Included module Ice
_M_Ice = Ice.openModule('Ice')

# Included module omero.sys
_M_omero.sys = Ice.openModule('omero.sys')

# Included module omero.api
_M_omero.api = Ice.openModule('omero.api')

# Start of module omero
__name__ = 'omero'

# Start of module omero.model
__name__ = 'omero.model'

if not _M_omero.model.__dict__.has_key('Details'):
    _M_omero.model._t_Details = IcePy.declareClass('::omero::model::Details')
    _M_omero.model._t_DetailsPrx = IcePy.declareProxy('::omero::model::Details')

if not _M_omero.model.__dict__.has_key('State'):
    _M_omero.model.State = Ice.createTempClass()
    class State(_M_omero.model.Location):
        def __init__(self, _id=None, _details=None, _loaded=False, _version=None, _vid=None, _name=None, _istatCode=None, _lastUpdate=None, _ceaseDate=None, _landRegisterCode=None):
            if __builtin__.type(self) == _M_omero.model.State:
                raise RuntimeError('omero.model.State is an abstract class')
            _M_omero.model.Location.__init__(self, _id, _details, _loaded, _version, _vid, _name, _istatCode, _lastUpdate, _ceaseDate)
            self._landRegisterCode = _landRegisterCode

        def ice_ids(self, current=None):
            return ('::Ice::Object', '::omero::model::IObject', '::omero::model::Location', '::omero::model::State')

        def ice_id(self, current=None):
            return '::omero::model::State'

        def ice_staticId():
            return '::omero::model::State'
        ice_staticId = staticmethod(ice_staticId)

        def getLandRegisterCode(self, current=None):
            pass

        def setLandRegisterCode(self, theLandRegisterCode, current=None):
            pass

        def __str__(self):
            return IcePy.stringify(self, _M_omero.model._t_State)

        __repr__ = __str__

    _M_omero.model.StatePrx = Ice.createTempClass()
    class StatePrx(_M_omero.model.LocationPrx):

        def getLandRegisterCode(self, _ctx=None):
            return _M_omero.model.State._op_getLandRegisterCode.invoke(self, ((), _ctx))

        def begin_getLandRegisterCode(self, _response=None, _ex=None, _sent=None, _ctx=None):
            return _M_omero.model.State._op_getLandRegisterCode.begin(self, ((), _response, _ex, _sent, _ctx))

        def end_getLandRegisterCode(self, _r):
            return _M_omero.model.State._op_getLandRegisterCode.end(self, _r)

        def setLandRegisterCode(self, theLandRegisterCode, _ctx=None):
            return _M_omero.model.State._op_setLandRegisterCode.invoke(self, ((theLandRegisterCode, ), _ctx))

        def begin_setLandRegisterCode(self, theLandRegisterCode, _response=None, _ex=None, _sent=None, _ctx=None):
            return _M_omero.model.State._op_setLandRegisterCode.begin(self, ((theLandRegisterCode, ), _response, _ex, _sent, _ctx))

        def end_setLandRegisterCode(self, _r):
            return _M_omero.model.State._op_setLandRegisterCode.end(self, _r)

        def checkedCast(proxy, facetOrCtx=None, _ctx=None):
            return _M_omero.model.StatePrx.ice_checkedCast(proxy, '::omero::model::State', facetOrCtx, _ctx)
        checkedCast = staticmethod(checkedCast)

        def uncheckedCast(proxy, facet=None):
            return _M_omero.model.StatePrx.ice_uncheckedCast(proxy, facet)
        uncheckedCast = staticmethod(uncheckedCast)

    _M_omero.model._t_StatePrx = IcePy.defineProxy('::omero::model::State', StatePrx)

    _M_omero.model._t_State = IcePy.declareClass('::omero::model::State')

    _M_omero.model._t_State = IcePy.defineClass('::omero::model::State', State, (), True, _M_omero.model._t_Location, (), (('_landRegisterCode', (), _M_omero._t_RString),))
    State._ice_type = _M_omero.model._t_State

    State._op_getLandRegisterCode = IcePy.Operation('getLandRegisterCode', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (), (), _M_omero._t_RString, ())
    State._op_setLandRegisterCode = IcePy.Operation('setLandRegisterCode', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), _M_omero._t_RString),), (), None, ())

    _M_omero.model.State = State
    del State

    _M_omero.model.StatePrx = StatePrx
    del StatePrx

# End of module omero.model

__name__ = 'omero'

# End of module omero
