Class Stream.StreamRemappedMapping
java.lang.Object
com.perforce.p4java.impl.generic.core.MapEntry
com.perforce.p4java.impl.generic.core.Stream.StreamRemappedMapping
- All Implemented Interfaces:
IMapEntry,IStreamRemappedMapping
- Enclosing class:
- Stream
Simple default implementation of the IStreamRemappedMapping interface.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.perforce.p4java.core.IMapEntry
IMapEntry.EntryType -
Field Summary
Fields inherited from class com.perforce.p4java.impl.generic.core.MapEntry
comment, elementPattern, elementPatternStr, left, order, right, typeFields inherited from interface com.perforce.p4java.core.IMapEntry
ORDER_UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor -- calls super() only.StreamRemappedMapping(int order, String viewString) Construct a mapping from the passed-in string, which is assumed to be in the format described in MapEntry.parseViewString(String).StreamRemappedMapping(int order, String leftRemapPath, String rightRemapPath) Explicit value constructor -- calls super(order, target, targetSpec). -
Method Summary
Modifier and TypeMethodDescriptionGet a stream remapped entry's left remap path; this corresponds to the left entry of the associated mapping.Get a stream remapped entry's right remap path; this corresponds to the right entry of the associated mapping.voidsetLeftRemapPath(String leftRemapPath) Set a stream remapped entry's left remap path; this corresponds to the left entry of the associated mapping.voidsetRightRemapPath(String rightRemapPath) Set a stream remapped entry's right remap path; this corresponds to the right entry of the associated mapping.Methods inherited from class com.perforce.p4java.impl.generic.core.MapEntry
getComment, getComment, getLeft, getLeft, getOrder, getRight, getRight, getType, parseComments, parseViewMappingString, quoteWhitespaceString, setComment, setLeft, setOrder, setRight, setType, stripComments, stripTypePrefix, toString, toString
-
Constructor Details
-
StreamRemappedMapping
public StreamRemappedMapping()Default constructor -- calls super() only. -
StreamRemappedMapping
Explicit value constructor -- calls super(order, target, targetSpec).- Parameters:
order- orderleftRemapPath- left remapped pathrightRemapPath- right remapped path
-
StreamRemappedMapping
Construct a mapping from the passed-in string, which is assumed to be in the format described in MapEntry.parseViewString(String).- Parameters:
order- orderviewString- view string
-
-
Method Details
-
getLeftRemapPath
Description copied from interface:IStreamRemappedMappingGet a stream remapped entry's left remap path; this corresponds to the left entry of the associated mapping.- Specified by:
getLeftRemapPathin interfaceIStreamRemappedMapping- Returns:
- left remapped path
- See Also:
-
setLeftRemapPath
Description copied from interface:IStreamRemappedMappingSet a stream remapped entry's left remap path; this corresponds to the left entry of the associated mapping.- Specified by:
setLeftRemapPathin interfaceIStreamRemappedMapping- Parameters:
leftRemapPath- left remapped path- See Also:
-
getRightRemapPath
Description copied from interface:IStreamRemappedMappingGet a stream remapped entry's right remap path; this corresponds to the right entry of the associated mapping.- Specified by:
getRightRemapPathin interfaceIStreamRemappedMapping- Returns:
- right remapped path
- See Also:
-
setRightRemapPath
Description copied from interface:IStreamRemappedMappingSet a stream remapped entry's right remap path; this corresponds to the right entry of the associated mapping.- Specified by:
setRightRemapPathin interfaceIStreamRemappedMapping- Parameters:
rightRemapPath- right remapped path- See Also:
-