org.jboss.narayana.blacktie.jatmibroker.xatmi
Class X_COMMON

java.lang.Object
  extended by org.jboss.narayana.blacktie.jatmibroker.xatmi.Buffer
      extended by org.jboss.narayana.blacktie.jatmibroker.xatmi.X_COMMON
All Implemented Interfaces:
Serializable

public class X_COMMON
extends Buffer

The X_COMMON buffer type supports a subset of the types provided by the X_C_TYPE buffer in order to support more language portable data exchange.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.narayana.blacktie.jatmibroker.xatmi.Buffer
BYTE_SIZE, DOUBLE_SIZE, FLOAT_SIZE, INT_SIZE, LONG_SIZE, SHORT_SIZE
 
Method Summary
 byte getByte(String key)
           
 byte[] getByteArray(String key)
           
 long getLong(String key)
           
 long[] getLongArray(String key)
           
 short getShort(String key)
          Get the short value identified by the key.
 short[] getShortArray(String key)
           
 void setByte(String key, byte value)
           
 void setByteArray(String key, byte[] value)
           
 void setLong(String key, long value)
           
 void setLongArray(String key, long[] value)
           
 void setShort(String key, short value)
          Set the short value
 void setShortArray(String key, short[] value)
           
 
Methods inherited from class org.jboss.narayana.blacktie.jatmibroker.xatmi.Buffer
clear, getAttributeValue, getFormat, getLen, getRawData, getSubtype, getType, setAttributeValue, setRawData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getShort

public short getShort(String key)
               throws ConnectionException
Get the short value identified by the key.

Parameters:
key - The key to use
Returns:
The short value
Throws:
ConnectionException - In case the key is not part of the structure.

setShort

public void setShort(String key,
                     short value)
              throws ConnectionException
Set the short value

Parameters:
key - The value to set
value - The value to use
Throws:
ConnectionException - In case the key is unknown.

getLong

public long getLong(String key)
             throws ConnectionException
Throws:
ConnectionException

setLong

public void setLong(String key,
                    long value)
             throws ConnectionException
Throws:
ConnectionException

getByte

public byte getByte(String key)
             throws ConnectionException
Throws:
ConnectionException

setByte

public void setByte(String key,
                    byte value)
             throws ConnectionException
Throws:
ConnectionException

getShortArray

public short[] getShortArray(String key)
                      throws ConnectionException
Throws:
ConnectionException

setShortArray

public void setShortArray(String key,
                          short[] value)
                   throws ConnectionException
Throws:
ConnectionException

getLongArray

public long[] getLongArray(String key)
                    throws ConnectionException
Throws:
ConnectionException

setLongArray

public void setLongArray(String key,
                         long[] value)
                  throws ConnectionException
Throws:
ConnectionException

getByteArray

public byte[] getByteArray(String key)
                    throws ConnectionException
Throws:
ConnectionException

setByteArray

public void setByteArray(String key,
                         byte[] value)
                  throws ConnectionException
Throws:
ConnectionException


Copyright © 2011. All Rights Reserved.