|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.perforce.p4java.impl.mapbased.rpc.packet.helper.RpcPacketFieldRule
public abstract class RpcPacketFieldRule
Super class representing the rule for skipping the charset conversion of the RPC packet field values (bytes). Leave those field values as bytes instead of converting them to strings.
Field Summary | |
---|---|
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 Summary | |
---|---|
RpcPacketFieldRule()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FIELD_PATTERN
public static final String START_FIELD
public static final String STOP_FIELD
protected boolean skipConversion
Constructor Detail |
---|
public RpcPacketFieldRule()
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |