org.xlattice.protocol.xl
Class ValueAttr

java.lang.Object
  extended by org.xlattice.protocol.TLV
      extended by org.xlattice.protocol.TLV16
          extended by org.xlattice.protocol.xl.XLAttr
              extended by org.xlattice.protocol.xl.ValueAttr
All Implemented Interfaces:
XLConst
Direct Known Subclasses:
NodeIDAttr

public abstract class ValueAttr
extends XLAttr

Superclass for simple attributes that just carry byte arrays whose size must be a multiple of four.

Author:
Jim Dixon

Field Summary
 
Fields inherited from class org.xlattice.protocol.TLV
fieldSize, type, value
 
Fields inherited from interface org.xlattice.protocol.xl.XLConst
BOTTOM_MASK, DESTINATION, EXP_MASK, HEADER_LENGTH, LABEL, MSG_ID_LENGTH, PING, PONG, SOURCE, TTL_MASK
 
Constructor Summary
ValueAttr(int type, byte[] value)
           
 
Method Summary
protected static ValueAttr readValue(int type, int length, byte[] message, int offset)
          Type and length have already been decoded.
 
Methods inherited from class org.xlattice.protocol.xl.XLAttr
decode
 
Methods inherited from class org.xlattice.protocol.TLV
decode, encode, length
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueAttr

public ValueAttr(int type,
                 byte[] value)
Method Detail

readValue

protected static ValueAttr readValue(int type,
                                     int length,
                                     byte[] message,
                                     int offset)
Type and length have already been decoded. The offset is to the data structure depicted above.