|
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
org.eclipse.soda.dk.parameter.BaseKeyParameter
org.eclipse.soda.dk.segment.SimpleSegment
public class SimpleSegment
| Field Summary | |
|---|---|
static java.lang.String |
SEGMENT_NAME
Define the segment name (String) constant. |
| Fields inherited from class org.eclipse.soda.dk.parameter.BaseKeyParameter |
|---|
key |
| Fields inherited from class org.eclipse.soda.dk.parameter.BaseParameter |
|---|
BIT_MASKS, MASKS, SET_MASKS, SET_TOP_MASKS |
| Fields inherited from interface org.eclipse.soda.dk.parameter.service.SegmentService |
|---|
SERVICE_NAME |
| 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, SHORT, STRING, UNLIMITED, UNSIGNED, USE_CURSOR, USE_CURSOR_INSERT |
| Constructor Summary | |
|---|---|
SimpleSegment()
Constructs an instance of this class. |
|
SimpleSegment(byte[] bytes,
FilterService filter,
ParameterService parameter)
Constructs an instance of this class from the specified bytes, filter and parameter parameters. |
|
SimpleSegment(java.lang.String key)
Constructs an instance of this class from the specified key parameter. |
|
SimpleSegment(java.lang.String key,
byte[] bytes,
FilterService filter,
ParameterService parameter)
Constructs an instance of this class from the specified key, bytes, filter and parameter parameters. |
|
| Method Summary | |
|---|---|
boolean |
checkMatches(MessageService message,
ParameterCursorService cursor)
Check matches with the specified container and cursor parameters and return the boolean result. |
java.lang.Object |
decodeValue(MessageService message,
ParameterCursorService cursor)
Decode value with the specified message and cursor parameters and return the Object 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. |
byte[] |
getBytes()
Gets the bytes (byte[]) value. |
void |
getDidNotMatch(MessageService message,
byte[] compareBytes,
ParameterCursorService cursor)
Get did not match with the specified message parameter. |
FilterService |
getFilter()
Gets the filter (FilterService) value. |
ParameterService |
getParameter()
Gets the parameter (ParameterService) value. |
boolean |
needsCursor()
Needs cursor and return the boolean result. |
void |
setBytes(byte[] bytes)
Sets the bytes value. |
void |
setFilter(FilterService filter)
Sets the filter value. |
void |
setParameter(ParameterService parameter)
Sets the parameter value. |
| Methods inherited from class org.eclipse.soda.dk.parameter.BaseKeyParameter |
|---|
getKey, setKey |
| Methods inherited from class org.eclipse.soda.dk.parameter.BaseParameter |
|---|
createCursorChild, decode, decodeBytes, decodeEnd, decodeString, decodeValue, encode, encodeBytes, encodeData, encodeString, encodeValue, expand, expand, getAbsoluteOffset, getBytes, getDefaultStyle, getLength, getLength, getLittleEndianLong, getLong, getOffset, getOffsetAbsolute, getOffsetDefault, getOffsetLength, getOffsetValue, getUnsignedInteger, getUnsignedLittleEndianLong, getUnsignedLittleEngianLong, getUnsignedLong, isConstantParameter, isInsert, isInsert, setBits, setBits, setBits, setBitsLittleEngian, setBytes, setBytes, setBytes, setBytesLittleEndian, updateCursor, updateCursor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.soda.dk.parameter.service.ParameterService |
|---|
decodeValue, encodeValue, getKey, isConstantParameter |
| Methods inherited from interface org.eclipse.soda.dk.data.parameter.service.DataParameterService |
|---|
decode, encode |
| Field Detail |
|---|
public static final java.lang.String SEGMENT_NAME
| Constructor Detail |
|---|
public SimpleSegment()
SimpleSegment(byte[],FilterService,ParameterService),
SimpleSegment(String),
SimpleSegment(String,byte[],FilterService,ParameterService)
public SimpleSegment(byte[] bytes,
FilterService filter,
ParameterService parameter)
bytes - The bytes (byte[]) parameter.filter - The filter (FilterService) parameter.parameter - The parameter (ParameterService) parameter.SimpleSegment(),
SimpleSegment(String),
SimpleSegment(String,byte[],FilterService,ParameterService)public SimpleSegment(java.lang.String key)
key - The key (String) parameter.SimpleSegment(),
SimpleSegment(byte[],FilterService,ParameterService),
SimpleSegment(String,byte[],FilterService,ParameterService)
public SimpleSegment(java.lang.String key,
byte[] bytes,
FilterService filter,
ParameterService parameter)
key - The key (String) parameter.bytes - The bytes (byte[]) parameter.filter - The filter (FilterService) parameter.parameter - The parameter (ParameterService) parameter.SimpleSegment(),
SimpleSegment(byte[],FilterService,ParameterService),
SimpleSegment(String)| Method Detail |
|---|
public boolean checkMatches(MessageService message,
ParameterCursorService cursor)
checkMatches in interface SegmentServicemessage - The message (MessageService) parameter.cursor - The cursor (ParameterCursorService) parameter.
boolean) value.
public java.lang.Object decodeValue(MessageService message,
ParameterCursorService cursor)
decodeValue in interface ParameterServicedecodeValue in class BaseParametermessage - The message (MessageService) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.encodeValue(MessageService,Object,ParameterCursorService)
public MessageService encodeValue(MessageService message,
java.lang.Object value,
ParameterCursorService cursor)
encodeValue in interface ParameterServiceencodeValue in class BaseParametermessage - The message (MessageService) parameter.value - The value (Object) parameter.cursor - The cursor (ParameterCursorService) parameter.
MessageService) value.decodeValue(MessageService,ParameterCursorService)public byte[] getBytes()
byte[]) value.setBytes(byte[])
public void getDidNotMatch(MessageService message,
byte[] compareBytes,
ParameterCursorService cursor)
message - The message (MessageService) parameter.compareBytes - The compare bytes (byte[]) parameter.cursor - The cursor (ParameterCursorService) parameter.public FilterService getFilter()
FilterService) value.setFilter(FilterService)public ParameterService getParameter()
ParameterService) value.setParameter(ParameterService)public boolean needsCursor()
needsCursor in class BaseParameterboolean) value.BaseParameter.updateCursor(ParameterCursorService),
BaseParameter.updateCursor(ParameterCursorService,int)public void setBytes(byte[] bytes)
bytes - The bytes (byte[]) parameter.getBytes()public void setFilter(FilterService filter)
filter - The filter (FilterService) parameter.getFilter()public void setParameter(ParameterService parameter)
parameter - The parameter (ParameterService) parameter.getParameter()
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||