C# Class Apache.NMS.Util.PrimitiveMap

A default implementation of IPrimitiveMap
Inheritance: IPrimitiveMap
Afficher le fichier Open project: ThorTech/apache-nms Class Usage Examples

Méthodes publiques

Méthode Description
Clear ( ) : void
Contains ( Object key ) : bool
GetBool ( String key ) : bool
GetByte ( String key ) : byte
GetBytes ( string key ) : byte[]
GetChar ( String key ) : char
GetDictionary ( String key ) : IDictionary
GetDouble ( String key ) : double
GetFloat ( String key ) : float
GetInt ( String key ) : int
GetList ( String key ) : IList
GetLong ( String key ) : long
GetShort ( String key ) : short
GetString ( string key ) : string
Marshal ( ) : byte[]
Marshal ( Stream destination ) : void

Marshals a PrimitiveMap directly to a Stream object. This allows a client to write a PrimitiveMap in a compressed or otherwise encoded form without this class needing to know about it.

MarshalPrimitive ( BinaryWriter dataOut, Object value ) : void
MarshalPrimitiveList ( IList list, BinaryWriter dataOut ) : void
MarshalPrimitiveMap ( IDictionary map ) : byte[]

Marshals the primitive type map to a byte array

MarshalPrimitiveMap ( IDictionary map, BinaryWriter dataOut ) : void
MarshalPrimitiveMap ( IDictionary map, Stream stream ) : void
Remove ( Object key ) : void
SetBool ( String key, bool value ) : void
SetByte ( String key, byte value ) : void
SetBytes ( String key, byte value ) : void
SetBytes ( String key, byte value, int offset, int length ) : void
SetChar ( String key, char value ) : void
SetDictionary ( String key, IDictionary value ) : void
SetDouble ( String key, double value ) : void
SetFloat ( String key, float value ) : void
SetInt ( String key, int value ) : void
SetList ( String key, IList value ) : void
SetLong ( String key, long value ) : void
SetShort ( String key, short value ) : void
SetString ( string key, string value ) : void
ToString ( ) : String

Method ToString

Unmarshal ( Stream source ) : PrimitiveMap

Unmarshals a PrimitiveMap directly from a Stream object. This allows for clients to read PrimitiveMaps from Compressed or other wise encoded streams without this class needing to know about it.

Unmarshal ( byte data ) : PrimitiveMap

Unmarshalls the map from the given data or if the data is null just return an empty map

UnmarshalPrimitive ( BinaryReader dataIn ) : Object
UnmarshalPrimitiveList ( BinaryReader dataIn ) : IList
UnmarshalPrimitiveMap ( BinaryReader dataIn ) : IDictionary
UnmarshalPrimitiveMap ( Stream source ) : IDictionary
UnmarshalPrimitiveMap ( byte data ) : IDictionary

Unmarshals the primitive type map from the given byte array

this ( string key ) : object

Méthodes protégées

Méthode Description
CheckValidType ( Object value ) : void
CheckValueType ( Object value, Type type ) : void
GetValue ( String key ) : Object
SetValue ( String key, Object value ) : void

Method Details

CheckValidType() protected méthode

protected CheckValidType ( Object value ) : void
value Object
Résultat void

CheckValueType() protected méthode

protected CheckValueType ( Object value, Type type ) : void
value Object
type System.Type
Résultat void

Clear() public méthode

public Clear ( ) : void
Résultat void

Contains() public méthode

public Contains ( Object key ) : bool
key Object
Résultat bool

GetBool() public méthode

public GetBool ( String key ) : bool
key String
Résultat bool

GetByte() public méthode

public GetByte ( String key ) : byte
key String
Résultat byte

GetBytes() public méthode

public GetBytes ( string key ) : byte[]
key string
Résultat byte[]

GetChar() public méthode

public GetChar ( String key ) : char
key String
Résultat char

GetDictionary() public méthode

public GetDictionary ( String key ) : IDictionary
key String
Résultat IDictionary

GetDouble() public méthode

public GetDouble ( String key ) : double
key String
Résultat double

GetFloat() public méthode

public GetFloat ( String key ) : float
key String
Résultat float

GetInt() public méthode

public GetInt ( String key ) : int
key String
Résultat int

GetList() public méthode

public GetList ( String key ) : IList
key String
Résultat IList

GetLong() public méthode

public GetLong ( String key ) : long
key String
Résultat long

GetShort() public méthode

public GetShort ( String key ) : short
key String
Résultat short

GetString() public méthode

public GetString ( string key ) : string
key string
Résultat string

GetValue() protected méthode

protected GetValue ( String key ) : Object
key String
Résultat Object

Marshal() public méthode

public Marshal ( ) : byte[]
Résultat byte[]

Marshal() public méthode

Marshals a PrimitiveMap directly to a Stream object. This allows a client to write a PrimitiveMap in a compressed or otherwise encoded form without this class needing to know about it.
public Marshal ( Stream destination ) : void
destination Stream /// A ///
Résultat void

MarshalPrimitive() public static méthode

public static MarshalPrimitive ( BinaryWriter dataOut, Object value ) : void
dataOut System.IO.BinaryWriter
value Object
Résultat void

MarshalPrimitiveList() public static méthode

public static MarshalPrimitiveList ( IList list, BinaryWriter dataOut ) : void
list IList
dataOut System.IO.BinaryWriter
Résultat void

MarshalPrimitiveMap() public static méthode

Marshals the primitive type map to a byte array
public static MarshalPrimitiveMap ( IDictionary map ) : byte[]
map IDictionary
Résultat byte[]

MarshalPrimitiveMap() public static méthode

public static MarshalPrimitiveMap ( IDictionary map, BinaryWriter dataOut ) : void
map IDictionary
dataOut System.IO.BinaryWriter
Résultat void

MarshalPrimitiveMap() public static méthode

public static MarshalPrimitiveMap ( IDictionary map, Stream stream ) : void
map IDictionary
stream Stream
Résultat void

Remove() public méthode

public Remove ( Object key ) : void
key Object
Résultat void

SetBool() public méthode

public SetBool ( String key, bool value ) : void
key String
value bool
Résultat void

SetByte() public méthode

public SetByte ( String key, byte value ) : void
key String
value byte
Résultat void

SetBytes() public méthode

public SetBytes ( String key, byte value ) : void
key String
value byte
Résultat void

SetBytes() public méthode

public SetBytes ( String key, byte value, int offset, int length ) : void
key String
value byte
offset int
length int
Résultat void

SetChar() public méthode

public SetChar ( String key, char value ) : void
key String
value char
Résultat void

SetDictionary() public méthode

public SetDictionary ( String key, IDictionary value ) : void
key String
value IDictionary
Résultat void

SetDouble() public méthode

public SetDouble ( String key, double value ) : void
key String
value double
Résultat void

SetFloat() public méthode

public SetFloat ( String key, float value ) : void
key String
value float
Résultat void

SetInt() public méthode

public SetInt ( String key, int value ) : void
key String
value int
Résultat void

SetList() public méthode

public SetList ( String key, IList value ) : void
key String
value IList
Résultat void

SetLong() public méthode

public SetLong ( String key, long value ) : void
key String
value long
Résultat void

SetShort() public méthode

public SetShort ( String key, short value ) : void
key String
value short
Résultat void

SetString() public méthode

public SetString ( string key, string value ) : void
key string
value string
Résultat void

SetValue() protected méthode

protected SetValue ( String key, Object value ) : void
key String
value Object
Résultat void

ToString() public méthode

Method ToString
public ToString ( ) : String
Résultat String

Unmarshal() public static méthode

Unmarshals a PrimitiveMap directly from a Stream object. This allows for clients to read PrimitiveMaps from Compressed or other wise encoded streams without this class needing to know about it.
public static Unmarshal ( Stream source ) : PrimitiveMap
source Stream /// A ///
Résultat PrimitiveMap

Unmarshal() public static méthode

Unmarshalls the map from the given data or if the data is null just return an empty map
public static Unmarshal ( byte data ) : PrimitiveMap
data byte
Résultat PrimitiveMap

UnmarshalPrimitive() public static méthode

public static UnmarshalPrimitive ( BinaryReader dataIn ) : Object
dataIn System.IO.BinaryReader
Résultat Object

UnmarshalPrimitiveList() public static méthode

public static UnmarshalPrimitiveList ( BinaryReader dataIn ) : IList
dataIn System.IO.BinaryReader
Résultat IList

UnmarshalPrimitiveMap() public static méthode

public static UnmarshalPrimitiveMap ( BinaryReader dataIn ) : IDictionary
dataIn System.IO.BinaryReader
Résultat IDictionary

UnmarshalPrimitiveMap() public static méthode

public static UnmarshalPrimitiveMap ( Stream source ) : IDictionary
source Stream
Résultat IDictionary

UnmarshalPrimitiveMap() public static méthode

Unmarshals the primitive type map from the given byte array
public static UnmarshalPrimitiveMap ( byte data ) : IDictionary
data byte
Résultat IDictionary

this() public méthode

public this ( string key ) : object
key string
Résultat object