|
void | SetValue (string key, Type type, object value) |
|
void | SetValue (string key, object value) |
|
void | SetValue (string key, bool value) |
|
void | SetValue (string key, byte value) |
|
void | SetValue (string key, short value) |
|
void | SetValue (string key, int value) |
|
void | SetValue (string key, long value) |
|
void | SetValue (string key, float value) |
|
void | SetValue (string key, double value) |
|
void | SetValue (string key, string value) |
|
|
Type | GraphType [get, private set] |
|
IEnumerable< KeyValuePair< string, KeyValuePair< Type, object > > > | Values [get] |
|
|
readonly Dictionary< string, KeyValuePair< Type, object > > | values |
|
Definition at line 21 of file SerializeData.cs.
Deveel.Data.Serialization.SerializeData.SerializeData |
( |
Type |
graphType | ) |
|
|
inlinepackage |
Definition at line 24 of file SerializeData.cs.
26 values =
new Dictionary<string, KeyValuePair<Type, object>>();
readonly Dictionary< string, KeyValuePair< Type, object > > values
static bool Deveel.Data.Serialization.SerializeData.IsSupported |
( |
Type |
type | ) |
|
|
inlinestaticprivate |
Definition at line 55 of file SerializeData.cs.
56 return type.IsPrimitive ||
57 type == typeof (
string) ||
void Deveel.Data.Serialization.SerializeData.SetValue |
( |
string |
key, |
|
|
Type |
type, |
|
|
object |
value |
|
) |
| |
|
inline |
Definition at line 35 of file SerializeData.cs.
36 if (
String.IsNullOrEmpty(key))
37 throw new ArgumentNullException(
"key");
39 throw new ArgumentNullException(
"type");
43 throw new NotSupportedException(
String.Format(
"The element type '{0}' of the array is not supported.",
44 type.GetElementType()));
46 throw new NotSupportedException(
String.Format(
"The type '{0}' is not supported.", type));
48 if (value != null && !type.IsInstanceOfType(value))
49 throw new ArgumentException(
50 String.Format(
"The specified object value is not assignable from the type '{0}' specified.", type));
52 values[key] =
new KeyValuePair<Type, object>(type, value);
A long string in the system.
static bool IsSupported(Type type)
readonly Dictionary< string, KeyValuePair< Type, object > > values
void Deveel.Data.Serialization.SerializeData.SetValue |
( |
string |
key, |
|
|
object |
value |
|
) |
| |
|
inline |
Definition at line 61 of file SerializeData.cs.
65 var type = value.GetType();
void SetValue(string key, Type type, object value)
void Deveel.Data.Serialization.SerializeData.SetValue |
( |
string |
key, |
|
|
bool |
value |
|
) |
| |
|
inline |
Definition at line 69 of file SerializeData.cs.
void SetValue(string key, Type type, object value)
void Deveel.Data.Serialization.SerializeData.SetValue |
( |
string |
key, |
|
|
byte |
value |
|
) |
| |
|
inline |
Definition at line 73 of file SerializeData.cs.
void SetValue(string key, Type type, object value)
void Deveel.Data.Serialization.SerializeData.SetValue |
( |
string |
key, |
|
|
short |
value |
|
) |
| |
|
inline |
Definition at line 77 of file SerializeData.cs.
void SetValue(string key, Type type, object value)
void Deveel.Data.Serialization.SerializeData.SetValue |
( |
string |
key, |
|
|
int |
value |
|
) |
| |
|
inline |
Definition at line 81 of file SerializeData.cs.
void SetValue(string key, Type type, object value)
void Deveel.Data.Serialization.SerializeData.SetValue |
( |
string |
key, |
|
|
long |
value |
|
) |
| |
|
inline |
Definition at line 85 of file SerializeData.cs.
void SetValue(string key, Type type, object value)
void Deveel.Data.Serialization.SerializeData.SetValue |
( |
string |
key, |
|
|
float |
value |
|
) |
| |
|
inline |
Definition at line 89 of file SerializeData.cs.
void SetValue(string key, Type type, object value)
void Deveel.Data.Serialization.SerializeData.SetValue |
( |
string |
key, |
|
|
double |
value |
|
) |
| |
|
inline |
Definition at line 93 of file SerializeData.cs.
94 SetValue(key, typeof(
double), value);
void SetValue(string key, Type type, object value)
void Deveel.Data.Serialization.SerializeData.SetValue |
( |
string |
key, |
|
|
string |
value |
|
) |
| |
|
inline |
Definition at line 97 of file SerializeData.cs.
98 SetValue(key, typeof(
string), value);
void SetValue(string key, Type type, object value)
readonly Dictionary<string, KeyValuePair<Type, object> > Deveel.Data.Serialization.SerializeData.values |
|
private |
Type Deveel.Data.Serialization.SerializeData.GraphType |
|
getprivate set |
IEnumerable<KeyValuePair<string, KeyValuePair<Type, object> > > Deveel.Data.Serialization.SerializeData.Values |
|
getpackage |
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Serialization/SerializeData.cs