1 |
758 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __java_util_prefs_AbstractPreferences__
|
5 |
|
|
#define __java_util_prefs_AbstractPreferences__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/util/prefs/Preferences.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
|
13 |
|
|
class java::util::prefs::AbstractPreferences : public ::java::util::prefs::Preferences
|
14 |
|
|
{
|
15 |
|
|
|
16 |
|
|
public: // actually protected
|
17 |
|
|
AbstractPreferences(::java::util::prefs::AbstractPreferences *, ::java::lang::String *);
|
18 |
|
|
public:
|
19 |
|
|
virtual ::java::lang::String * absolutePath();
|
20 |
|
|
private:
|
21 |
|
|
::java::lang::String * path();
|
22 |
|
|
public:
|
23 |
|
|
virtual jboolean isUserNode();
|
24 |
|
|
virtual ::java::lang::String * name();
|
25 |
|
|
virtual ::java::lang::String * toString();
|
26 |
|
|
public: // actually protected
|
27 |
|
|
virtual JArray< ::java::util::prefs::AbstractPreferences * > * cachedChildren();
|
28 |
|
|
public:
|
29 |
|
|
virtual JArray< ::java::lang::String * > * childrenNames();
|
30 |
|
|
virtual ::java::util::prefs::Preferences * node(::java::lang::String *);
|
31 |
|
|
private:
|
32 |
|
|
::java::util::prefs::Preferences * getNode(::java::lang::String *);
|
33 |
|
|
public:
|
34 |
|
|
virtual jboolean nodeExists(::java::lang::String *);
|
35 |
|
|
private:
|
36 |
|
|
jboolean existsNode(::java::lang::String *);
|
37 |
|
|
public: // actually protected
|
38 |
|
|
virtual ::java::util::prefs::AbstractPreferences * getChild(::java::lang::String *);
|
39 |
|
|
virtual jboolean isRemoved();
|
40 |
|
|
public:
|
41 |
|
|
virtual ::java::util::prefs::Preferences * parent();
|
42 |
|
|
virtual void exportNode(::java::io::OutputStream *);
|
43 |
|
|
virtual void exportSubtree(::java::io::OutputStream *);
|
44 |
|
|
virtual JArray< ::java::lang::String * > * keys();
|
45 |
|
|
virtual ::java::lang::String * get(::java::lang::String *, ::java::lang::String *);
|
46 |
|
|
virtual jboolean getBoolean(::java::lang::String *, jboolean);
|
47 |
|
|
virtual JArray< jbyte > * getByteArray(::java::lang::String *, JArray< jbyte > *);
|
48 |
|
|
private:
|
49 |
|
|
static JArray< jbyte > * decode64(::java::lang::String *);
|
50 |
|
|
public:
|
51 |
|
|
virtual jdouble getDouble(::java::lang::String *, jdouble);
|
52 |
|
|
virtual jfloat getFloat(::java::lang::String *, jfloat);
|
53 |
|
|
virtual jint getInt(::java::lang::String *, jint);
|
54 |
|
|
virtual jlong getLong(::java::lang::String *, jlong);
|
55 |
|
|
virtual void put(::java::lang::String *, ::java::lang::String *);
|
56 |
|
|
virtual void putBoolean(::java::lang::String *, jboolean);
|
57 |
|
|
virtual void putByteArray(::java::lang::String *, JArray< jbyte > *);
|
58 |
|
|
private:
|
59 |
|
|
static ::java::lang::String * encode64(JArray< jbyte > *);
|
60 |
|
|
public:
|
61 |
|
|
virtual void putDouble(::java::lang::String *, jdouble);
|
62 |
|
|
virtual void putFloat(::java::lang::String *, jfloat);
|
63 |
|
|
virtual void putInt(::java::lang::String *, jint);
|
64 |
|
|
virtual void putLong(::java::lang::String *, jlong);
|
65 |
|
|
virtual void remove(::java::lang::String *);
|
66 |
|
|
virtual void clear();
|
67 |
|
|
virtual void flush();
|
68 |
|
|
virtual void sync();
|
69 |
|
|
private:
|
70 |
|
|
void flushNode(jboolean);
|
71 |
|
|
public:
|
72 |
|
|
virtual void removeNode();
|
73 |
|
|
private:
|
74 |
|
|
void purge();
|
75 |
|
|
public:
|
76 |
|
|
virtual void addNodeChangeListener(::java::util::prefs::NodeChangeListener *);
|
77 |
|
|
virtual void addPreferenceChangeListener(::java::util::prefs::PreferenceChangeListener *);
|
78 |
|
|
virtual void removeNodeChangeListener(::java::util::prefs::NodeChangeListener *);
|
79 |
|
|
virtual void removePreferenceChangeListener(::java::util::prefs::PreferenceChangeListener *);
|
80 |
|
|
private:
|
81 |
|
|
void fire(::java::util::prefs::PreferenceChangeEvent *);
|
82 |
|
|
void fire(::java::util::prefs::NodeChangeEvent *, jboolean);
|
83 |
|
|
public: // actually protected
|
84 |
|
|
virtual JArray< ::java::lang::String * > * childrenNamesSpi() = 0;
|
85 |
|
|
virtual ::java::util::prefs::AbstractPreferences * childSpi(::java::lang::String *) = 0;
|
86 |
|
|
virtual JArray< ::java::lang::String * > * keysSpi() = 0;
|
87 |
|
|
virtual ::java::lang::String * getSpi(::java::lang::String *) = 0;
|
88 |
|
|
virtual void putSpi(::java::lang::String *, ::java::lang::String *) = 0;
|
89 |
|
|
virtual void removeSpi(::java::lang::String *) = 0;
|
90 |
|
|
virtual void flushSpi() = 0;
|
91 |
|
|
virtual void syncSpi() = 0;
|
92 |
|
|
virtual void removeNodeSpi() = 0;
|
93 |
|
|
::java::lang::Object * __attribute__((aligned(__alignof__( ::java::util::prefs::Preferences)))) lock;
|
94 |
|
|
jboolean newNode;
|
95 |
|
|
private:
|
96 |
|
|
::java::util::prefs::AbstractPreferences * parent__;
|
97 |
|
|
::java::lang::String * name__;
|
98 |
|
|
jboolean removed;
|
99 |
|
|
::java::util::HashMap * childCache;
|
100 |
|
|
::java::util::ArrayList * nodeListeners;
|
101 |
|
|
::java::util::ArrayList * preferenceListeners;
|
102 |
|
|
public:
|
103 |
|
|
static ::java::lang::Class class$;
|
104 |
|
|
};
|
105 |
|
|
|
106 |
|
|
#endif // __java_util_prefs_AbstractPreferences__
|