00001 #ifndef xmogInc_javautilProperties
00002 #define xmogInc_javautilProperties
00003
00004 # if !defined(JMS_DECLSPEC )
00005 # if defined(_MSC_VER)
00006 # pragma message( "Relying on default definition of JMS_DECLSPEC " )
00007 # endif
00008
00009
00010 # define JMS_DECLSPEC
00011 # endif
00012
00013 namespace java
00014 {
00015 namespace io
00016 {
00017 class InputStream;
00018 class OutputStream;
00019 class PrintStream;
00020 class PrintWriter;
00021 }
00022 namespace lang
00023 {
00024 class Object;
00025 class String;
00026 }
00027 namespace util
00028 {
00029 class Enumeration;
00030 class Properties;
00031 }
00032 }
00033
00034 # include "java_util_Hashtable.h"
00035
00036
00037 # if (XMOG_UNDEFINE_MEM_OPERATORS==1)
00038 # if defined(new)
00039 # undef new
00040 # endif
00041 # if defined(delete)
00042 # undef delete
00043 # endif
00044 # endif
00045
00083 class JMS_DECLSPEC java::util::Properties :
00084 public ::java::util::Hashtable
00085 {
00086 public:
00087 enum
00088 {
00089 xmogDefaultFlags = xmog_base::GLOBAL,
00090 xmogMajorVersion = 3,
00091 xmogMinorVersion = 2,
00092 xmogPatchVersion = 9,
00093 xmogBuildNumber = 2047
00094 };
00095
00096 public:
00097
00098 typedef ::xmog_java_array_template< ::java::util::Properties > array1D;
00099
00100 typedef ::xmog_java_array_template< ::xmog_java_array_template< ::java::util::Properties > > array2D;
00101
00103
00120 Properties( );
00121
00134 Properties( const ::java::util::Properties & _rhs );
00135
00148 Properties( jobject _local, xmog_flags f_xflags );
00149
00162 Properties( const ::xmog_null & _null_instance );
00163
00174 Properties( ::xmog_java_array * _arr, jint _index );
00175
00189 Properties( const ::java::util::Properties & _rhs, ::xmog_localenv * p_lxenv );
00190
00202 XMOG_EXPLICIT Properties( ::xmog_base * _delegate, bool _owns_delegate = true );
00203
00217 Properties( ::xmog_java_ref * _cra, ::xmog_java_dynamic * _dynamic, xmog_flags f_xflags = xmogDefaultFlags );
00218
00220
00230 Properties( ::xmog_dummy _use_java_ctor, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00231
00242 Properties( const ::java::util::Properties & defaults, ::xmog_dummy _use_java_ctor, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00243
00245
00252 ~Properties( );
00253
00266 java::util::Properties operator =( const java::util::Properties & _rhs );
00267
00282 void operator delete( void * _ptr );
00283
00284 # if (XMOG_SUPPORTS_PLACEMENT_DELETE==1)
00300 void operator delete( void * ptr, void * loc );
00301 # endif
00302
00317 void * operator new( size_t _size );
00318
00319 # if (XMOG_SUPPORTS_PLACEMENT_NEW==1)
00337 void * operator new( size_t _size, void * _ptr );
00338 # endif
00339
00360 static ::java::util::Properties dyna_cast( const ::xmog_base & _rhs, ::xmog_localenv * p_lxenv = NULL, xmog_flags flags = xmogDefaultFlags );
00361
00363
00381 virtual ::java::lang::String getProperty( const ::java::lang::String & key, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00382
00401 virtual ::java::lang::String getProperty( const ::java::lang::String & key, const ::java::lang::String & defaultValue, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00402
00404
00418 static ::xmog_java_class * get_class( );
00419
00428 static ::xmog_java_class * get_element_class( );
00429
00431
00446 virtual void list( const ::java::io::PrintStream & out, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00447
00462 virtual void list( const ::java::io::PrintWriter & out, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00463
00619 virtual void load( const ::java::io::InputStream & inStream, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00620
00635 virtual ::java::util::Enumeration propertyNames( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00636
00650 virtual void save( const ::java::io::OutputStream & out, const ::java::lang::String & header, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00651
00670 virtual ::java::lang::Object setProperty( const ::java::lang::String & key, const ::java::lang::String & value, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00671
00726 virtual void store( const ::java::io::OutputStream & out, const ::java::lang::String & header, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00727
00729
00748 virtual ::xmog_java_class * xmog_get_java_peer( ::xmog_localenv * p_lxenv = NULL );
00750
00751 };
00752 #endif
00753