javaclass

java/util.py

87:964002d174b7
2004-12-10 Paul Boddie Added the start of java.security.
     1 #!/usr/bin/env python     2      3 class EventObject(object):     4     def __init__(self, source):     5         self.source = source     6     def getSource(self):     7         return self.source     8     def toString(self):     9         # NOTE: Use Python conventions.    10         return str(self)    11     12 class Hashtable(object):    13     def __init__(self, *args):    14         # NOTE: To be implemented.    15         pass    16     17 setattr(Hashtable, "__init_____", Hashtable.__init__)    18     19 class ResourceBundle(object):    20     def __init__(self, *args):    21         # NOTE: To be implemented.    22         pass    23     24     def getBundle(self, *args):    25         # getBundle(self, baseName)    26         # getBundle(self, baseName, locale)    27         # getBundle(self, baseName, locale, loader)    28         # NOTE: Obviously not the correct implementation.    29         return ResourceBundle(args)    30     getBundle = staticmethod(getBundle)    31     getBundle___java__lang__String = getBundle    32     getBundle___java__lang__String___java__util__Locale = getBundle    33     getBundle___java__lang__String___java__util__Locale___java__lang__ClassLoader = getBundle    34     35     def getObject(self, key):    36         # NOTE: To be implemented.    37         return None    38     getObject___java__lang__String = getObject    39     40     def getString(self, key):    41         # NOTE: To be implemented.    42         return None    43     getString___java__lang__String = getString    44     45     def getStringArray(self, key):    46         # NOTE: To be implemented.    47         return None    48     getStringArray___java__lang__String = getStringArray    49     50     def getLocale(self, key):    51         # NOTE: To be implemented.    52         return None    53     getLocale___ = getLocale    54     55 # vim: tabstop=4 expandtab shiftwidth=4