public abstract class RpcPacketFieldRule
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FIELD_PATTERN
The key for storing the field pattern in a command map.
|
protected boolean |
skipConversion
If true, skip charset conversion; leave the value as is in bytes.
|
static java.lang.String |
START_FIELD
The key for storing the start field name in a command map.
|
static java.lang.String |
STOP_FIELD
The key for storing the stop field name in a command map.
|
Constructor and Description |
---|
RpcPacketFieldRule() |
Modifier and Type | Method and Description |
---|---|
static RpcPacketFieldRule |
getInstance(java.util.Map<java.lang.String,java.lang.Object> cmdMap)
Factory static method to create an instance of a subclass based on the
content of a command map.
|
boolean |
isSkipConversion()
Checks if is skip conversion.
|
abstract void |
update(java.lang.String fieldName)
Updates the conversion rule.
|
public static final java.lang.String FIELD_PATTERN
public static final java.lang.String START_FIELD
public static final java.lang.String STOP_FIELD
protected boolean skipConversion
public static RpcPacketFieldRule getInstance(java.util.Map<java.lang.String,java.lang.Object> cmdMap)
The existing of a FIELD_PATTERN key with a string value will create a RpcPacketFieldPatternRule object.
The existing of both the START_FIELD and STOP_FIELD keys with string values will create a RpcPacketFieldRangeRule object.
cmdMap
- cmdMappublic abstract void update(java.lang.String fieldName)
fieldName
- the field namepublic boolean isSkipConversion()