public abstract class RpcPacketFieldRule extends Object
Modifier and Type | Field and Description |
---|---|
static 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 String |
START_FIELD
The key for storing the start field name in a command map.
|
static 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(Map<String,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(String fieldName)
Updates the conversion rule.
|
public static final String FIELD_PATTERN
public static final String START_FIELD
public static final String STOP_FIELD
protected boolean skipConversion
public static RpcPacketFieldRule getInstance(Map<String,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.
public abstract void update(String fieldName)
fieldName
- the field namepublic boolean isSkipConversion()
Copyright © 2017 Perforce Software. All Rights Reserved.