Class RpcPacketFieldRangeRule
java.lang.Object
com.perforce.p4java.impl.mapbased.rpc.packet.helper.RpcPacketFieldRule
com.perforce.p4java.impl.mapbased.rpc.packet.helper.RpcPacketFieldRangeRule
Defines the rule for a range of fields with a start field (inclusive) and a stop
field (non-inclusive).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe start field (inclusive) marking the beginning of a series of fields which the field values (bytes) will not be converted to strings.protected StringThe 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
ConstructorsConstructorDescriptionRpcPacketFieldRangeRule(String startField, String stopField) Constructor for creating a field range rule. -
Method Summary
Modifier and TypeMethodDescriptionGets the start field.Gets the stop field.voidUpdates the conversion rule.Methods inherited from class com.perforce.p4java.impl.mapbased.rpc.packet.helper.RpcPacketFieldRule
getInstance, isSkipConversion
-
Field Details
-
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
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.
-
-
Constructor Details
-
RpcPacketFieldRangeRule
Constructor for creating a field range rule.- Parameters:
startField- the start field, not null.stopField- the stop field, not null.
-
-
Method Details
-
update
Updates the conversion rule.- Specified by:
updatein classRpcPacketFieldRule- Parameters:
fieldName- the field name
-
getStartField
Gets the start field.- Returns:
- the start field
-
getStopField
Gets the stop field.- Returns:
- the stop field
-