Class RpcPacketFieldRangeRule
- java.lang.Object
-
- com.perforce.p4java.impl.mapbased.rpc.packet.helper.RpcPacketFieldRule
-
- com.perforce.p4java.impl.mapbased.rpc.packet.helper.RpcPacketFieldRangeRule
-
public class RpcPacketFieldRangeRule extends RpcPacketFieldRule
Defines the rule for a range of fields with a start field (inclusive) and a stop field (non-inclusive).
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringstartFieldThe start field (inclusive) marking the beginning of a series of fields which the field values (bytes) will not be converted to strings.protected java.lang.StringstopFieldThe stop field (non-inclusive) marking the end of a series of fields which the field values (bytes) will not be converted to strings.-
Fields inherited from class com.perforce.p4java.impl.mapbased.rpc.packet.helper.RpcPacketFieldRule
FIELD_PATTERN, skipConversion, START_FIELD, STOP_FIELD
-
-
Constructor Summary
Constructors Constructor Description RpcPacketFieldRangeRule(java.lang.String startField, java.lang.String stopField)Constructor for creating a field range rule.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetStartField()Gets the start field.java.lang.StringgetStopField()Gets the stop field.voidupdate(java.lang.String fieldName)Updates the conversion rule.-
Methods inherited from class com.perforce.p4java.impl.mapbased.rpc.packet.helper.RpcPacketFieldRule
getInstance, isSkipConversion
-
-
-
-
Field Detail
-
startField
protected java.lang.String startField
The start field (inclusive) marking the beginning of a series of fields which the field values (bytes) will not be converted to strings.Note: this applies to the "RANGE" rule type only.
-
stopField
protected java.lang.String stopField
The stop field (non-inclusive) marking the end of a series of fields which the field values (bytes) will not be converted to strings.Note: this applies to the "RANGE" rule type only.
-
-
Method Detail
-
update
public void update(java.lang.String fieldName)
Updates the conversion rule.- Specified by:
updatein classRpcPacketFieldRule- Parameters:
fieldName- the field name
-
getStartField
public java.lang.String getStartField()
Gets the start field.- Returns:
- the start field
-
getStopField
public java.lang.String getStopField()
Gets the stop field.- Returns:
- the stop field
-
-