C# Class Apache.NMS.Util.PrimitiveMapInterceptor

This class provides a mechanism to intercept calls to a IPrimitiveMap instance and perform validation, handle type conversion, or some other function necessary to use the PrimitiveMap in a Message or other NMS object. Be default this class enforces the standard conversion policy for primitive types in NMS shown in the table below: | | boolean byte short char int long float double String byte[] |---------------------------------------------------------------------- |boolean | X X |byte | X X X X X |short | X X X X |char | X X |int | X X X |long | X X |float | X X X |double | X X |String | X X X X X X X X |byte[] | X |----------------------------------------------------------------------
Inheritance: IPrimitiveMap
Afficher le fichier Open project: ThorTech/apache-nms Class Usage Examples

Protected Properties

Свойство Type Description
message IMessage
properties IPrimitiveMap

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 ) : System.Collections.IDictionary
GetDouble ( string key ) : double
GetFloat ( string key ) : float
GetInt ( string key ) : int
GetList ( string key ) : System.Collections.IList
GetLong ( string key ) : long
GetShort ( string key ) : short
GetString ( string key ) : string
PrimitiveMapInterceptor ( IMessage message, IPrimitiveMap properties ) : System
PrimitiveMapInterceptor ( IMessage message, IPrimitiveMap properties, bool readOnly ) : System
PrimitiveMapInterceptor ( IMessage message, IPrimitiveMap properties, bool readOnly, bool allowByteArrays ) : System
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, System dictionary ) : void
SetDouble ( string key, double value ) : void
SetFloat ( string key, float value ) : void
SetInt ( string key, int value ) : void
SetList ( string key, System list ) : void
SetLong ( string key, long value ) : void
SetShort ( string key, short value ) : void
SetString ( string key, string value ) : void
this ( string key ) : object

Méthodes protégées

Méthode Description
FailIfReadOnly ( ) : void
GetObjectProperty ( string name ) : object
SetObjectProperty ( string name, object value ) : void

Method Details

Clear() public méthode

public Clear ( ) : void
Résultat void

Contains() public méthode

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

FailIfReadOnly() protected méthode

protected FailIfReadOnly ( ) : void
Résultat void

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 ) : System.Collections.IDictionary
key string
Résultat System.Collections.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 ) : System.Collections.IList
key string
Résultat System.Collections.IList

GetLong() public méthode

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

GetObjectProperty() protected méthode

protected GetObjectProperty ( string name ) : object
name string
Résultat object

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

PrimitiveMapInterceptor() public méthode

public PrimitiveMapInterceptor ( IMessage message, IPrimitiveMap properties ) : System
message IMessage
properties IPrimitiveMap
Résultat System

PrimitiveMapInterceptor() public méthode

public PrimitiveMapInterceptor ( IMessage message, IPrimitiveMap properties, bool readOnly ) : System
message IMessage
properties IPrimitiveMap
readOnly bool
Résultat System

PrimitiveMapInterceptor() public méthode

public PrimitiveMapInterceptor ( IMessage message, IPrimitiveMap properties, bool readOnly, bool allowByteArrays ) : System
message IMessage
properties IPrimitiveMap
readOnly bool
allowByteArrays bool
Résultat System

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, System dictionary ) : void
key string
dictionary System
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, System list ) : void
key string
list System
Résultat void

SetLong() public méthode

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

SetObjectProperty() protected méthode

protected SetObjectProperty ( string name, object value ) : void
name string
value object
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

this() public méthode

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

Property Details

message protected_oe property

protected IMessage message
Résultat IMessage

properties protected_oe property

protected IPrimitiveMap properties
Résultat IPrimitiveMap