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
public static class Stream.StreamRemappedMapping extends MapEntry implements IStreamRemappedMapping
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, type
-
Fields inherited from interface com.perforce.p4java.core.IMapEntry
ORDER_UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description StreamRemappedMapping()
Default constructor -- calls super() only.StreamRemappedMapping(int order, java.lang.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, java.lang.String leftRemapPath, java.lang.String rightRemapPath)
Explicit value constructor -- calls super(order, target, targetSpec).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLeftRemapPath()
Get a stream remapped entry's left remap path; this corresponds to the left entry of the associated mapping.java.lang.String
getRightRemapPath()
Get a stream remapped entry's right remap path; this corresponds to the right entry of the associated mapping.void
setLeftRemapPath(java.lang.String leftRemapPath)
Set a stream remapped entry's left remap path; this corresponds to the left entry of the associated mapping.void
setRightRemapPath(java.lang.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 Detail
-
StreamRemappedMapping
public StreamRemappedMapping()
Default constructor -- calls super() only.
-
StreamRemappedMapping
public StreamRemappedMapping(int order, java.lang.String leftRemapPath, java.lang.String rightRemapPath)
Explicit value constructor -- calls super(order, target, targetSpec).- Parameters:
order
- orderleftRemapPath
- left remapped pathrightRemapPath
- right remapped path
-
StreamRemappedMapping
public StreamRemappedMapping(int order, java.lang.String viewString)
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 Detail
-
getLeftRemapPath
public java.lang.String getLeftRemapPath()
Description copied from interface:IStreamRemappedMapping
Get a stream remapped entry's left remap path; this corresponds to the left entry of the associated mapping.- Specified by:
getLeftRemapPath
in interfaceIStreamRemappedMapping
- Returns:
- left remapped path
- See Also:
IStreamRemappedMapping.getLeftRemapPath()
-
setLeftRemapPath
public void setLeftRemapPath(java.lang.String leftRemapPath)
Description copied from interface:IStreamRemappedMapping
Set a stream remapped entry's left remap path; this corresponds to the left entry of the associated mapping.- Specified by:
setLeftRemapPath
in interfaceIStreamRemappedMapping
- Parameters:
leftRemapPath
- left remapped path- See Also:
IStreamRemappedMapping.setLeftRemapPath(java.lang.String)
-
getRightRemapPath
public java.lang.String getRightRemapPath()
Description copied from interface:IStreamRemappedMapping
Get a stream remapped entry's right remap path; this corresponds to the right entry of the associated mapping.- Specified by:
getRightRemapPath
in interfaceIStreamRemappedMapping
- Returns:
- right remapped path
- See Also:
IStreamRemappedMapping.getRightRemapPath()
-
setRightRemapPath
public void setRightRemapPath(java.lang.String rightRemapPath)
Description copied from interface:IStreamRemappedMapping
Set a stream remapped entry's right remap path; this corresponds to the right entry of the associated mapping.- Specified by:
setRightRemapPath
in interfaceIStreamRemappedMapping
- Parameters:
rightRemapPath
- right remapped path- See Also:
IStreamRemappedMapping.setRightRemapPath(java.lang.String)
-
-