/usr/share/pyshared/Ice_Properties_ice.py is in python-zeroc-ice 3.4.2-8.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 | # **********************************************************************
#
# 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 `Properties.ice'
#
# Warning: do not edit this file.
#
# </auto-generated>
#
import Ice, IcePy, __builtin__
import Ice_BuiltinSequences_ice
# Included module Ice
_M_Ice = Ice.openModule('Ice')
# Start of module Ice
__name__ = 'Ice'
if not _M_Ice.__dict__.has_key('_t_PropertyDict'):
_M_Ice._t_PropertyDict = IcePy.defineDictionary('::Ice::PropertyDict', (), IcePy._t_string, IcePy._t_string)
if not _M_Ice.__dict__.has_key('Properties'):
_M_Ice.Properties = Ice.createTempClass()
class Properties(object):
'''A property set used to configure Ice and Ice applications.
Properties are key/value pairs, with both keys and values
being strings. By convention, property keys should have the form
application-name\[.category\[.sub-category]].name.'''
def __init__(self):
if __builtin__.type(self) == _M_Ice.Properties:
raise RuntimeError('Ice.Properties is an abstract class')
def getProperty(self, key):
'''Get a property by key. If the property is not set, an empty
string is returned.
Arguments:
key The property key.
Returns:
The property value.'''
pass
def getPropertyWithDefault(self, key, value):
'''Get a property by key. If the property is not set, the
given default value is returned.
Arguments:
key The property key.
value The default value to use if the property does not
exist.
Returns:
The property value or the default value.'''
pass
def getPropertyAsInt(self, key):
'''Get a property as an integer. If the property is not set, 0
is returned.
Arguments:
key The property key.
Returns:
The property value interpreted as an integer.'''
pass
def getPropertyAsIntWithDefault(self, key, value):
'''Get a property as an integer. If the property is not set, the
given default value is returned.
Arguments:
key The property key.
value The default value to use if the property does not
exist.
Returns:
The property value interpreted as an integer, or the
default value.'''
pass
def getPropertyAsList(self, key):
'''Get a property as a list of strings. If the property is not set,
an empty list is returned. The strings in the list can contain
whitespace if they are enclosed in single or double quotes.
If quotes are mismatched, an empty list is returned.
Within single quotes or double-quotes, you can escape the
quote in question with \, e.g. O'Reilly can be written as
O'Reilly, "O'Reilly" or 'O\'Reilly'.
Arguments:
key The property key.
Returns:
The property value interpreted as a list of strings.'''
pass
def getPropertyAsListWithDefault(self, key, value):
'''Get a property as a list of strings. If the property is not set,
the default list is returned. The strings in the list can contain
whitespace if they are enclosed in single or double quotes.
If quotes are mismatched, the default list is returned.
Within single quotes or double-quotes, you can escape the
quote in question with \, e.g. O'Reilly can be written as
O'Reilly, "O'Reilly" or 'O\'Reilly'.
Arguments:
key The property key.
value The default value to use if the property is not set.
Returns:
The property value interpreted as list of strings, or the
default value.'''
pass
def getPropertiesForPrefix(self, prefix):
'''Get all properties whose keys begins with
prefix. If
prefix is an empty string,
then all properties are returned.
Arguments:
prefix The prefix to search for (empty string if none).
Returns:
The matching property set.'''
pass
def setProperty(self, key, value):
'''Set a property. To unset a property, set it to
the empty string.
Arguments:
key The property key.
value The property value.'''
pass
def getCommandLineOptions(self):
'''Get a sequence of command-line options that is equivalent to
this property set. Each element of the returned sequence is
a command-line option of the form
--key=value.
Returns:
The command line options for this property set.'''
pass
def parseCommandLineOptions(self, prefix, options):
'''Convert a sequence of command-line options into properties.
All options that begin with
--prefix. are
converted into properties. If the prefix is empty, all options
that begin with -- are converted to properties.
Arguments:
prefix The property prefix, or an empty string to
convert all options starting with --.
options The command-line options.
Returns:
The command-line options that do not start with the specified
prefix, in their original order.'''
pass
def parseIceCommandLineOptions(self, options):
'''Convert a sequence of command-line options into properties.
All options that begin with one of the following prefixes
are converted into properties: --Ice, --IceBox, --IceGrid,
--IcePatch2, --IceSSL, --IceStorm, --Freeze, and --Glacier2.
Arguments:
options The command-line options.
Returns:
The command-line options that do not start with one of
the listed prefixes, in their original order.'''
pass
def load(self, file):
'''Load properties from a file.
Arguments:
file The property file.'''
pass
def clone(self):
'''Create a copy of this property set.
Returns:
A copy of this property set.'''
pass
def __str__(self):
return IcePy.stringify(self, _M_Ice._t_Properties)
__repr__ = __str__
_M_Ice._t_Properties = IcePy.defineClass('::Ice::Properties', Properties, (), True, None, (), ())
Properties._ice_type = _M_Ice._t_Properties
_M_Ice.Properties = Properties
del Properties
if not _M_Ice.__dict__.has_key('PropertiesAdmin'):
_M_Ice.PropertiesAdmin = Ice.createTempClass()
class PropertiesAdmin(Ice.Object):
'''The PropertiesAdmin interface provides remote access to the properties
of a communicator.'''
def __init__(self):
if __builtin__.type(self) == _M_Ice.PropertiesAdmin:
raise RuntimeError('Ice.PropertiesAdmin is an abstract class')
def ice_ids(self, current=None):
return ('::Ice::Object', '::Ice::PropertiesAdmin')
def ice_id(self, current=None):
return '::Ice::PropertiesAdmin'
def ice_staticId():
return '::Ice::PropertiesAdmin'
ice_staticId = staticmethod(ice_staticId)
def getProperty(self, key, current=None):
'''Get a property by key. If the property is not set, an empty
string is returned.
Arguments:
key The property key.
Returns:
The property value.'''
pass
def getPropertiesForPrefix(self, prefix, current=None):
'''Get all properties whose keys begins with
prefix. If
prefix is an empty string,
then all properties are returned.
Arguments:
prefix The prefix to search for (empty string if none).
Returns:
The matching property set.'''
pass
def __str__(self):
return IcePy.stringify(self, _M_Ice._t_PropertiesAdmin)
__repr__ = __str__
_M_Ice.PropertiesAdminPrx = Ice.createTempClass()
class PropertiesAdminPrx(Ice.ObjectPrx):
'''Get a property by key. If the property is not set, an empty
string is returned.
Arguments:
key The property key.
Returns:
The property value.'''
def getProperty(self, key, _ctx=None):
return _M_Ice.PropertiesAdmin._op_getProperty.invoke(self, ((key, ), _ctx))
'''Get a property by key. If the property is not set, an empty
string is returned.
Arguments:
key The property key.
Returns:
The property value.'''
def begin_getProperty(self, key, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_Ice.PropertiesAdmin._op_getProperty.begin(self, ((key, ), _response, _ex, _sent, _ctx))
'''Get a property by key. If the property is not set, an empty
string is returned.
Arguments:
key The property key.
Returns:
The property value.'''
def end_getProperty(self, _r):
return _M_Ice.PropertiesAdmin._op_getProperty.end(self, _r)
'''Get a property by key. If the property is not set, an empty
string is returned.
Arguments:
key The property key.
Returns:
The property value.'''
def getProperty_async(self, _cb, key, _ctx=None):
return _M_Ice.PropertiesAdmin._op_getProperty.invokeAsync(self, (_cb, (key, ), _ctx))
'''Get all properties whose keys begins with
prefix. If
prefix is an empty string,
then all properties are returned.
Arguments:
prefix The prefix to search for (empty string if none).
Returns:
The matching property set.'''
def getPropertiesForPrefix(self, prefix, _ctx=None):
return _M_Ice.PropertiesAdmin._op_getPropertiesForPrefix.invoke(self, ((prefix, ), _ctx))
'''Get all properties whose keys begins with
prefix. If
prefix is an empty string,
then all properties are returned.
Arguments:
prefix The prefix to search for (empty string if none).
Returns:
The matching property set.'''
def begin_getPropertiesForPrefix(self, prefix, _response=None, _ex=None, _sent=None, _ctx=None):
return _M_Ice.PropertiesAdmin._op_getPropertiesForPrefix.begin(self, ((prefix, ), _response, _ex, _sent, _ctx))
'''Get all properties whose keys begins with
prefix. If
prefix is an empty string,
then all properties are returned.
Arguments:
prefix The prefix to search for (empty string if none).
Returns:
The matching property set.'''
def end_getPropertiesForPrefix(self, _r):
return _M_Ice.PropertiesAdmin._op_getPropertiesForPrefix.end(self, _r)
'''Get all properties whose keys begins with
prefix. If
prefix is an empty string,
then all properties are returned.
Arguments:
prefix The prefix to search for (empty string if none).
Returns:
The matching property set.'''
def getPropertiesForPrefix_async(self, _cb, prefix, _ctx=None):
return _M_Ice.PropertiesAdmin._op_getPropertiesForPrefix.invokeAsync(self, (_cb, (prefix, ), _ctx))
def checkedCast(proxy, facetOrCtx=None, _ctx=None):
return _M_Ice.PropertiesAdminPrx.ice_checkedCast(proxy, '::Ice::PropertiesAdmin', facetOrCtx, _ctx)
checkedCast = staticmethod(checkedCast)
def uncheckedCast(proxy, facet=None):
return _M_Ice.PropertiesAdminPrx.ice_uncheckedCast(proxy, facet)
uncheckedCast = staticmethod(uncheckedCast)
_M_Ice._t_PropertiesAdminPrx = IcePy.defineProxy('::Ice::PropertiesAdmin', PropertiesAdminPrx)
_M_Ice._t_PropertiesAdmin = IcePy.defineClass('::Ice::PropertiesAdmin', PropertiesAdmin, (), True, None, (), ())
PropertiesAdmin._ice_type = _M_Ice._t_PropertiesAdmin
PropertiesAdmin._op_getProperty = IcePy.Operation('getProperty', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), IcePy._t_string),), (), IcePy._t_string, ())
PropertiesAdmin._op_getPropertiesForPrefix = IcePy.Operation('getPropertiesForPrefix', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (((), IcePy._t_string),), (), _M_Ice._t_PropertyDict, ())
_M_Ice.PropertiesAdmin = PropertiesAdmin
del PropertiesAdmin
_M_Ice.PropertiesAdminPrx = PropertiesAdminPrx
del PropertiesAdminPrx
# End of module Ice
|