|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.dk.core.EscObject
org.eclipse.soda.dk.parameter.BaseParameter
public class BaseParameter
| Field Summary | |
|---|---|
static int[] |
BIT_MASKS
Define the bit masks (int[]) constant. |
static int[] |
MASKS
Define the masks (int[]) constant. |
static int[] |
SET_MASKS
Define the set masks (int[]) constant. |
static int[] |
SET_TOP_MASKS
Define the set top masks (int[]) constant. |
| Fields inherited from interface org.eclipse.soda.dk.parameter.service.ParameterService |
|---|
ARRAY, ASCII, ASCIIZ, BOOLEAN, BYTE, BYTES, DOUBLE, FLOAT, HEXASCII, HEXSTRING, INSERT, INTEGER, LITTLEENDIAN, LONG, NASCII, NSTRING, NULL, SERVICE_NAME, SHORT, STRING, UNLIMITED, UNSIGNED, USE_CURSOR, USE_CURSOR_INSERT |
| Constructor Summary | |
|---|---|
BaseParameter()
Constructs an instance of this class. |
|
| Method Summary | |
|---|---|
ParameterCursorService |
createCursorChild(ParameterCursorService parent)
Create cursor child with the specified parent parameter and return the ParameterCursorService result. |
java.lang.Object |
decode(java.lang.Object container)
Decode with the specified container parameter and return the Object result. |
java.lang.Object |
decodeBytes(byte[] container,
ParameterCursorService cursor)
Decode bytes with the specified container parameter and return the Object result. |
java.lang.Object |
decodeEnd(java.lang.Object object)
Decode end with the specified object parameter and return the Object result. |
java.lang.Object |
decodeString(java.lang.String container,
ParameterCursorService cursor)
Decode string with the specified container parameter and return the Object result. |
java.lang.Object |
decodeValue(MessageService message)
Decode value with the specified message parameter and return the Object result. |
java.lang.Object |
decodeValue(MessageService message,
ParameterCursorService cursor)
Decode value with the specified message and cursor parameters and return the Object result. |
java.lang.Object |
encode(java.lang.Object container,
java.lang.Object data)
Encode with the specified container and data parameters and return the Object result. |
byte[] |
encodeBytes(byte[] bytes,
java.lang.Object data,
ParameterCursorService cursor)
Encode bytes with the specified container and data parameters and return the Object result. |
java.lang.Object |
encodeData(java.lang.Object data)
Encode data with the specified data parameter and return the Object result. |
java.lang.Object |
encodeString(java.lang.String container,
java.lang.Object data,
ParameterCursorService cursor)
Encode string with the specified container and data parameters and return the Object result. |
MessageService |
encodeValue(MessageService message,
java.lang.Object value)
Encode value with the specified message and value parameters and return the MessageService result. |
MessageService |
encodeValue(MessageService message,
java.lang.Object value,
ParameterCursorService cursor)
Encode value with the specified message, value and cursor parameters and return the MessageService result. |
static byte[] |
expand(byte[] bytes,
int offset,
int length)
Expand with the specified bytes, offset and length parameters and return the byte[] result. |
static byte[] |
expand(byte[] bytes,
int bytesLength,
int offset,
int length)
Expand with the specified bytes, bytes length, offset and length parameters and return the byte[] result. |
static int |
getAbsoluteOffset(int offset)
Get absolute offset with the specified offset parameter and return the int result. |
static byte[] |
getBytes(byte[] bytes,
int offset,
int length)
Get bytes with the specified bytes, offset and length parameters and return the byte[] result. |
static short |
getDefaultStyle()
Gets the default style (short) value. |
java.lang.String |
getKey()
Gets the key (String) value. |
int |
getLength()
Gets the length (int) value. |
protected int |
getLength(ParameterCursorService cursor)
Get length with the specified cursor parameter and return the int result. |
static long |
getLittleEndianLong(byte[] bytes,
int offset,
int length)
Get little endian long with the specified bytes, offset and length parameters and return the long result. |
static long |
getLong(byte[] bytes,
int offset,
int length)
Get long with the specified bytes, offset and length parameters and return the long result. |
int |
getOffset()
Gets the offset (int) value. |
protected int |
getOffsetAbsolute(ParameterCursorService cursor)
Get offset with the specified cursor parameter and return the int result. |
int |
getOffsetDefault()
Gets the offset default (int) value. |
int |
getOffsetLength()
Gets the offset length (int) value. |
protected int |
getOffsetValue(ParameterCursorService cursor)
Get offset value with the specified cursor parameter and return the int result. |
static int |
getUnsignedInteger(byte[] bytes,
int offset,
int length)
Get unsigned integer with the specified bytes, offset and length parameters and return the long result. |
static long |
getUnsignedLittleEndianLong(byte[] bytes,
int offset,
int length)
Get unsigned little endian long with the specified bytes, offset and length parameters and return the long result. |
static long |
getUnsignedLittleEngianLong(byte[] bytes,
int offset,
int length)
Deprecated. #getUnsignedLittleEndianLong |
static long |
getUnsignedLong(byte[] bytes,
int offset,
int length)
Get unsigned long with the specified bytes, offset and length parameters and return the long result. |
boolean |
isConstantParameter()
Gets the constant parameter (boolean) value. |
boolean |
isInsert()
Gets the insert (boolean) value. |
boolean |
isInsert(ParameterCursorService cursor)
Is insert with the specified cursor parameter and return the boolean result. |
boolean |
needsCursor()
Needs cursor and return the boolean result. |
static byte[] |
setBits(byte[] bytes,
int bytesLength,
int offset,
int length,
long value,
boolean insert)
Set bits with the specified bytes, bytes length, offset, length, value and insert parameters and return the byte[] result. |
static byte[] |
setBits(byte[] bytes,
int offset,
int length,
long value)
Set bits with the specified bytes, offset, length and value parameters. |
static byte[] |
setBits(byte[] bytes,
int offset,
int length,
long value,
boolean insert)
Set bits with the specified bytes, offset, length, value and insert parameters and return the byte[] result. |
static byte[] |
setBitsLittleEngian(byte[] bytes,
int bytesLength,
int offset,
int length,
long value,
boolean insert)
Set bits little engian with the specified bytes, bytes length, offset, length, value and insert parameters and return the byte[] result. |
static byte[] |
setBytes(byte[] bytes,
int offset,
int length,
byte[] data)
Get bytes with the specified bytes, offset and length parameters and return the byte[] result. |
static byte[] |
setBytes(byte[] bytes,
int offset,
int length,
byte[] data,
boolean insert)
Set bytes with the specified bytes, offset, length, data and insert parameters and return the byte[] result. |
static byte[] |
setBytes(byte[] bytes,
int bytesLength,
int offset,
int length,
byte[] data,
boolean insert)
Set bytes with the specified bytes, bytes length, offset, length, data and insert parameters and return the byte[] result. |
static byte[] |
setBytesLittleEndian(byte[] bytes,
int bytesLength,
int offset,
int length,
byte[] data,
boolean insert)
Set bytes little endian with the specified bytes, bytes length, offset, length, data and insert parameters and return the byte[] result. |
protected void |
updateCursor(ParameterCursorService cursor)
Update cursor with the specified cursor parameter. |
protected void |
updateCursor(ParameterCursorService cursor,
int length)
Update cursor with the specified cursor and length parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int[] BIT_MASKS
public static final int[] MASKS
public static final int[] SET_MASKS
public static final int[] SET_TOP_MASKS
| Constructor Detail |
|---|
public BaseParameter()
| Method Detail |
|---|
public static byte[] expand(byte[] bytes,
int offset,
int length)
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
byte[]) value.expand(byte[],int,int,int)
public static byte[] expand(byte[] bytes,
int bytesLength,
int offset,
int length)
bytes - The bytes (byte[]) parameter.bytesLength - The bytes length (int) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
byte[]) value.expand(byte[],int,int)public static final int getAbsoluteOffset(int offset)
offset - The offset (int) parameter.
int) value.
public static byte[] getBytes(byte[] bytes,
int offset,
int length)
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
byte[]) value.setBytes(byte[],int,int,byte[]),
setBytes(byte[],int,int,byte[],boolean),
setBytes(byte[],int,int,int,byte[],boolean),
decodeBytes(byte[],ParameterCursorService),
encodeBytes(byte[],Object,ParameterCursorService)public static short getDefaultStyle()
short) value.
public static long getLittleEndianLong(byte[] bytes,
int offset,
int length)
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
long) value.getUnsignedLittleEndianLong(byte[],int,int)
public static long getLong(byte[] bytes,
int offset,
int length)
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
long) value.getLittleEndianLong(byte[],int,int),
getUnsignedLittleEndianLong(byte[],int,int),
getUnsignedLittleEngianLong(byte[],int,int),
getUnsignedLong(byte[],int,int)
public static int getUnsignedInteger(byte[] bytes,
int offset,
int length)
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
long) value.
public static long getUnsignedLittleEndianLong(byte[] bytes,
int offset,
int length)
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
long) value.
public static long getUnsignedLittleEngianLong(byte[] bytes,
int offset,
int length)
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
long) value.
public static long getUnsignedLong(byte[] bytes,
int offset,
int length)
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
long) value.
public static byte[] setBits(byte[] bytes,
int bytesLength,
int offset,
int length,
long value,
boolean insert)
bytes - The bytes (byte[]) parameter.bytesLength - The bytes length (int) parameter.offset - The offset (int) parameter.length - The length (int) parameter.value - The value (long) parameter.insert - The insert (boolean) parameter.
byte[]) value.setBits(byte[],int,int,long),
setBits(byte[],int,int,long,boolean)
public static byte[] setBits(byte[] bytes,
int offset,
int length,
long value)
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.value - The value (long) parameter.
byte[]) value.setBits(byte[],int,int,int,long,boolean),
setBits(byte[],int,int,long,boolean)
public static byte[] setBits(byte[] bytes,
int offset,
int length,
long value,
boolean insert)
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.value - The value (long) parameter.insert - The insert (boolean) parameter.
byte[]) value.setBits(byte[],int,int,int,long,boolean),
setBits(byte[],int,int,long)
public static byte[] setBitsLittleEngian(byte[] bytes,
int bytesLength,
int offset,
int length,
long value,
boolean insert)
bytes - The bytes (byte[]) parameter.bytesLength - The bytes length (int) parameter.offset - The offset (int) parameter.length - The length (int) parameter.value - The value (long) parameter.insert - The insert (boolean) parameter.
byte[]) value.
public static byte[] setBytes(byte[] bytes,
int offset,
int length,
byte[] data)
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.data - The data (byte[]) parameter.
byte[]) value.getBytes(byte[],int,int),
setBytes(byte[],int,int,byte[],boolean),
setBytes(byte[],int,int,int,byte[],boolean),
decodeBytes(byte[],ParameterCursorService),
encodeBytes(byte[],Object,ParameterCursorService)
public static byte[] setBytes(byte[] bytes,
int offset,
int length,
byte[] data,
boolean insert)
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.data - The data (byte[]) parameter.insert - The insert (boolean) parameter.
byte[]) value.getBytes(byte[],int,int),
setBytes(byte[],int,int,byte[]),
setBytes(byte[],int,int,int,byte[],boolean),
decodeBytes(byte[],ParameterCursorService),
encodeBytes(byte[],Object,ParameterCursorService)
public static byte[] setBytes(byte[] bytes,
int bytesLength,
int offset,
int length,
byte[] data,
boolean insert)
bytes - The bytes (byte[]) parameter.bytesLength - The bytes length (int) parameter.offset - The offset (int) parameter.length - The length (int) parameter.data - The data (byte[]) parameter.insert - The insert (boolean) parameter.
byte[]) value.getBytes(byte[],int,int),
setBytes(byte[],int,int,byte[]),
setBytes(byte[],int,int,byte[],boolean),
decodeBytes(byte[],ParameterCursorService),
encodeBytes(byte[],Object,ParameterCursorService)
public static byte[] setBytesLittleEndian(byte[] bytes,
int bytesLength,
int offset,
int length,
byte[] data,
boolean insert)
bytes - The bytes (byte[]) parameter.bytesLength - The bytes length (int) parameter.offset - The offset (int) parameter.length - The length (int) parameter.data - The data (byte[]) parameter.insert - The insert (boolean) parameter.
byte[]) value.public ParameterCursorService createCursorChild(ParameterCursorService parent)
parent - The parent (ParameterCursorService) parameter.
ParameterCursorService) value.public java.lang.Object decode(java.lang.Object container)
decode in interface DataParameterServicecontainer - The container (Object) parameter.
Object) value.
public java.lang.Object decodeBytes(byte[] container,
ParameterCursorService cursor)
container - The container (byte[]) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.getBytes(byte[],int,int),
setBytes(byte[],int,int,byte[]),
setBytes(byte[],int,int,byte[],boolean),
setBytes(byte[],int,int,int,byte[],boolean),
encodeBytes(byte[],Object,ParameterCursorService)public java.lang.Object decodeEnd(java.lang.Object object)
object - The object (Object) parameter.
Object) value.
public java.lang.Object decodeString(java.lang.String container,
ParameterCursorService cursor)
container - The container (String) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.encodeString(String,Object,ParameterCursorService)public java.lang.Object decodeValue(MessageService message)
decodeValue in interface ParameterServicemessage - The message (MessageService) parameter.
Object) value.decodeValue(MessageService,ParameterCursorService),
encodeValue(MessageService,Object),
encodeValue(MessageService,Object,ParameterCursorService),
getOffsetValue(ParameterCursorService)
public java.lang.Object decodeValue(MessageService message,
ParameterCursorService cursor)
decodeValue in interface ParameterServicemessage - The message (MessageService) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.decodeValue(MessageService),
encodeValue(MessageService,Object),
encodeValue(MessageService,Object,ParameterCursorService),
getOffsetValue(ParameterCursorService)
public java.lang.Object encode(java.lang.Object container,
java.lang.Object data)
encode in interface DataParameterServicecontainer - The container (Object) parameter.data - The data (Object) parameter.
Object) value.
public byte[] encodeBytes(byte[] bytes,
java.lang.Object data,
ParameterCursorService cursor)
bytes - The bytes (byte[]) parameter.data - The data (Object) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.getBytes(byte[],int,int),
setBytes(byte[],int,int,byte[]),
setBytes(byte[],int,int,byte[],boolean),
setBytes(byte[],int,int,int,byte[],boolean),
decodeBytes(byte[],ParameterCursorService)public java.lang.Object encodeData(java.lang.Object data)
data - The data (Object) parameter.
Object) value.
public java.lang.Object encodeString(java.lang.String container,
java.lang.Object data,
ParameterCursorService cursor)
container - The container (String) parameter.data - The data (Object) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.decodeString(String,ParameterCursorService)
public MessageService encodeValue(MessageService message,
java.lang.Object value)
encodeValue in interface ParameterServicemessage - The message (MessageService) parameter.value - The value (Object) parameter.
MessageService) value.decodeValue(MessageService),
decodeValue(MessageService,ParameterCursorService),
encodeValue(MessageService,Object,ParameterCursorService),
getOffsetValue(ParameterCursorService)
public MessageService encodeValue(MessageService message,
java.lang.Object value,
ParameterCursorService cursor)
encodeValue in interface ParameterServicemessage - The message (MessageService) parameter.value - The value (Object) parameter.cursor - The cursor (ParameterCursorService) parameter.
MessageService) value.decodeValue(MessageService),
decodeValue(MessageService,ParameterCursorService),
encodeValue(MessageService,Object),
getOffsetValue(ParameterCursorService)public java.lang.String getKey()
getKey in interface ParameterServiceString) value.public int getLength()
int) value.getLength(ParameterCursorService),
getOffsetLength()protected int getLength(ParameterCursorService cursor)
cursor - The cursor (ParameterCursorService) parameter.
int) value.getLength(),
getOffsetLength()public int getOffset()
int) value.getAbsoluteOffset(int)protected int getOffsetAbsolute(ParameterCursorService cursor)
cursor - The cursor (ParameterCursorService) parameter.
int) value.public int getOffsetDefault()
int) value.public int getOffsetLength()
int) value.protected int getOffsetValue(ParameterCursorService cursor)
cursor - The cursor (ParameterCursorService) parameter.
int) value.public boolean isConstantParameter()
isConstantParameter in interface ParameterServiceboolean) value.public boolean isInsert()
boolean) value.isInsert(ParameterCursorService)public boolean isInsert(ParameterCursorService cursor)
cursor - The cursor (ParameterCursorService) parameter.
boolean) value.isInsert()public boolean needsCursor()
boolean) value.updateCursor(ParameterCursorService),
updateCursor(ParameterCursorService,int)protected void updateCursor(ParameterCursorService cursor)
cursor - The cursor (ParameterCursorService) parameter.needsCursor(),
updateCursor(ParameterCursorService,int)
protected void updateCursor(ParameterCursorService cursor,
int length)
cursor - The cursor (ParameterCursorService) parameter.length - The length (int) parameter.needsCursor(),
updateCursor(ParameterCursorService)
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||