Show / Hide Table of Contents

    Class 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
    System.Object
    PrimitiveMapInterceptor
    MessagePropertyIntercepter
    Implements
    IPrimitiveMap
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Apache.NMS.Util
    Assembly: Apache.NMS.dll
    Syntax
    public class PrimitiveMapInterceptor : IPrimitiveMap

    Constructors

    | Improve this Doc View Source

    PrimitiveMapInterceptor(IMessage, IPrimitiveMap)

    Declaration
    public PrimitiveMapInterceptor(IMessage message, IPrimitiveMap properties)
    Parameters
    Type Name Description
    IMessage message
    IPrimitiveMap properties
    | Improve this Doc View Source

    PrimitiveMapInterceptor(IMessage, IPrimitiveMap, Boolean)

    Declaration
    public PrimitiveMapInterceptor(IMessage message, IPrimitiveMap properties, bool readOnly)
    Parameters
    Type Name Description
    IMessage message
    IPrimitiveMap properties
    System.Boolean readOnly
    | Improve this Doc View Source

    PrimitiveMapInterceptor(IMessage, IPrimitiveMap, Boolean, Boolean)

    Declaration
    public PrimitiveMapInterceptor(IMessage message, IPrimitiveMap properties, bool readOnly, bool allowByteArrays)
    Parameters
    Type Name Description
    IMessage message
    IPrimitiveMap properties
    System.Boolean readOnly
    System.Boolean allowByteArrays

    Fields

    | Improve this Doc View Source

    message

    Declaration
    protected IMessage message
    Field Value
    Type Description
    IMessage
    | Improve this Doc View Source

    properties

    Declaration
    protected IPrimitiveMap properties
    Field Value
    Type Description
    IPrimitiveMap

    Properties

    | Improve this Doc View Source

    AllowByteArrays

    Declaration
    public bool AllowByteArrays { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Item[String]

    Declaration
    public object this[string key] { get; set; }
    Parameters
    Type Name Description
    System.String key
    Property Value
    Type Description
    System.Object
    | Improve this Doc View Source

    Keys

    Declaration
    public ICollection Keys { get; }
    Property Value
    Type Description
    System.Collections.ICollection
    | Improve this Doc View Source

    ReadOnly

    Declaration
    public bool ReadOnly { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Values

    Declaration
    public ICollection Values { get; }
    Property Value
    Type Description
    System.Collections.ICollection

    Methods

    | Improve this Doc View Source

    Clear()

    Declaration
    public void Clear()
    | Improve this Doc View Source

    Contains(Object)

    Declaration
    public bool Contains(object key)
    Parameters
    Type Name Description
    System.Object key
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    FailIfReadOnly()

    Declaration
    protected virtual void FailIfReadOnly()
    | Improve this Doc View Source

    GetBool(String)

    Declaration
    public bool GetBool(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    GetByte(String)

    Declaration
    public byte GetByte(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    System.Byte
    | Improve this Doc View Source

    GetBytes(String)

    Declaration
    public byte[] GetBytes(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    System.Byte[]
    | Improve this Doc View Source

    GetChar(String)

    Declaration
    public char GetChar(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    System.Char
    | Improve this Doc View Source

    GetDictionary(String)

    Declaration
    public IDictionary GetDictionary(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    System.Collections.IDictionary
    | Improve this Doc View Source

    GetDouble(String)

    Declaration
    public double GetDouble(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    System.Double
    | Improve this Doc View Source

    GetFloat(String)

    Declaration
    public float GetFloat(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    System.Single
    | Improve this Doc View Source

    GetInt(String)

    Declaration
    public int GetInt(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    GetList(String)

    Declaration
    public IList GetList(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    System.Collections.IList
    | Improve this Doc View Source

    GetLong(String)

    Declaration
    public long GetLong(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    System.Int64
    | Improve this Doc View Source

    GetObjectProperty(String)

    Declaration
    protected virtual object GetObjectProperty(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    System.Object
    | Improve this Doc View Source

    GetShort(String)

    Declaration
    public short GetShort(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    System.Int16
    | Improve this Doc View Source

    GetString(String)

    Declaration
    public string GetString(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    Remove(Object)

    Declaration
    public void Remove(object key)
    Parameters
    Type Name Description
    System.Object key
    | Improve this Doc View Source

    SetBool(String, Boolean)

    Declaration
    public void SetBool(string key, bool value)
    Parameters
    Type Name Description
    System.String key
    System.Boolean value
    | Improve this Doc View Source

    SetByte(String, Byte)

    Declaration
    public void SetByte(string key, byte value)
    Parameters
    Type Name Description
    System.String key
    System.Byte value
    | Improve this Doc View Source

    SetBytes(String, Byte[])

    Declaration
    public void SetBytes(string key, byte[] value)
    Parameters
    Type Name Description
    System.String key
    System.Byte[] value
    | Improve this Doc View Source

    SetBytes(String, Byte[], Int32, Int32)

    Declaration
    public void SetBytes(string key, byte[] value, int offset, int length)
    Parameters
    Type Name Description
    System.String key
    System.Byte[] value
    System.Int32 offset
    System.Int32 length
    | Improve this Doc View Source

    SetChar(String, Char)

    Declaration
    public void SetChar(string key, char value)
    Parameters
    Type Name Description
    System.String key
    System.Char value
    | Improve this Doc View Source

    SetDictionary(String, IDictionary)

    Declaration
    public void SetDictionary(string key, IDictionary dictionary)
    Parameters
    Type Name Description
    System.String key
    System.Collections.IDictionary dictionary
    | Improve this Doc View Source

    SetDouble(String, Double)

    Declaration
    public void SetDouble(string key, double value)
    Parameters
    Type Name Description
    System.String key
    System.Double value
    | Improve this Doc View Source

    SetFloat(String, Single)

    Declaration
    public void SetFloat(string key, float value)
    Parameters
    Type Name Description
    System.String key
    System.Single value
    | Improve this Doc View Source

    SetInt(String, Int32)

    Declaration
    public void SetInt(string key, int value)
    Parameters
    Type Name Description
    System.String key
    System.Int32 value
    | Improve this Doc View Source

    SetList(String, IList)

    Declaration
    public void SetList(string key, IList list)
    Parameters
    Type Name Description
    System.String key
    System.Collections.IList list
    | Improve this Doc View Source

    SetLong(String, Int64)

    Declaration
    public void SetLong(string key, long value)
    Parameters
    Type Name Description
    System.String key
    System.Int64 value
    | Improve this Doc View Source

    SetObjectProperty(String, Object)

    Declaration
    protected virtual void SetObjectProperty(string name, object value)
    Parameters
    Type Name Description
    System.String name
    System.Object value
    | Improve this Doc View Source

    SetShort(String, Int16)

    Declaration
    public void SetShort(string key, short value)
    Parameters
    Type Name Description
    System.String key
    System.Int16 value
    | Improve this Doc View Source

    SetString(String, String)

    Declaration
    public void SetString(string key, string value)
    Parameters
    Type Name Description
    System.String key
    System.String value

    Implements

    IPrimitiveMap
    • Improve this Doc
    • View Source
    Back to top Copyright © 2005-2023 Apache Software Foundation project
    Generated by DocFX