Class RpcPacketFieldPatternRule
java.lang.Object
com.perforce.p4java.impl.mapbased.rpc.packet.helper.RpcPacketFieldRule
com.perforce.p4java.impl.mapbased.rpc.packet.helper.RpcPacketFieldPatternRule
Defines the rule for pattern matching the field names.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PatternThe regex pattern for matching 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
ConstructorsConstructorDescriptionRpcPacketFieldPatternRule(String fieldRegex) Constructor for creating a field pattern rule. -
Method Summary
Modifier and TypeMethodDescriptionGets the field pattern.voidUpdates the conversion rule.Methods inherited from class com.perforce.p4java.impl.mapbased.rpc.packet.helper.RpcPacketFieldRule
getInstance, isSkipConversion
-
Field Details
-
fieldPattern
The regex pattern for matching fields which the field values (bytes) will not be converted to strings.Pattern object to be compiled with the passed-in field pattern parameter. It is reusable and thus better performance overall.
-
-
Constructor Details
-
RpcPacketFieldPatternRule
Constructor for creating a field pattern rule.- Parameters:
fieldRegex- the field regex, not null
-
-
Method Details
-
update
Updates the conversion rule.- Specified by:
updatein classRpcPacketFieldRule- Parameters:
fieldName- the field name
-
getFieldPattern
Gets the field pattern.- Returns:
- the field pattern
-