Class Stream.StreamViewMapping
java.lang.Object
com.perforce.p4java.impl.generic.core.MapEntry
com.perforce.p4java.impl.generic.core.Stream.StreamViewMapping
- All Implemented Interfaces:
IMapEntry,IStreamViewMapping
- Enclosing class:
- Stream
Simple default implementation of the IStreamViewMapping interface.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.perforce.p4java.core.IMapEntry
IMapEntry.EntryTypeNested classes/interfaces inherited from interface com.perforce.p4java.core.IStreamViewMapping
IStreamViewMapping.PathType -
Field Summary
FieldsFields 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.StreamViewMapping(int order, IStreamViewMapping.PathType pathType, String viewPath, String depotPath) Explicit value constructor -- calls super(order, target, targetSpec).StreamViewMapping(int order, String rawViewString) Construct a mapping from the passed-in string, which is assumed to be in the format. -
Method Summary
Modifier and TypeMethodDescriptionGet a stream view entry's optional depot path; this corresponds to the right entry of the associated mapping.Get the stream view path typeGet a stream view entry's view path; this corresponds to the left entry of the associated mapping.voidsetDepotPath(String depotPath) Set a stream view entry's optional depot path; this corresponds to the right entry of the associated mapping.voidsetPathType(IStreamViewMapping.PathType pathType) Set a stream view path typevoidsetViewPath(String viewPath) Set a stream view entry's view path; this corresponds to the left entry of the associated mapping.Return a canonical String representation of this entry.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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.perforce.p4java.core.IMapEntry
getComment, getComment, getLeft, getLeft, getOrder, getRight, getRight, getType, setComment, setLeft, setOrder, setRight, setType, toString
-
Field Details
-
pathType
-
-
Constructor Details
-
StreamViewMapping
public StreamViewMapping()Default constructor -- calls super() only. -
StreamViewMapping
public StreamViewMapping(int order, IStreamViewMapping.PathType pathType, String viewPath, String depotPath) Explicit value constructor -- calls super(order, target, targetSpec).- Parameters:
order- orderpathType- path typeviewPath- view pathdepotPath- depot path
-
StreamViewMapping
Construct a mapping from the passed-in string, which is assumed to be in the format.- Parameters:
order- orderrawViewString- raw view string
-
-
Method Details
-
getPathType
Description copied from interface:IStreamViewMappingGet the stream view path type- Specified by:
getPathTypein interfaceIStreamViewMapping- Returns:
- path type
- See Also:
-
setPathType
Description copied from interface:IStreamViewMappingSet a stream view path type- Specified by:
setPathTypein interfaceIStreamViewMapping- Parameters:
pathType- path type- See Also:
-
getViewPath
Description copied from interface:IStreamViewMappingGet a stream view entry's view path; this corresponds to the left entry of the associated mapping.- Specified by:
getViewPathin interfaceIStreamViewMapping- Returns:
- view path
- See Also:
-
setViewPath
Description copied from interface:IStreamViewMappingSet a stream view entry's view path; this corresponds to the left entry of the associated mapping.- Specified by:
setViewPathin interfaceIStreamViewMapping- Parameters:
viewPath- view path- See Also:
-
getDepotPath
Description copied from interface:IStreamViewMappingGet a stream view entry's optional depot path; this corresponds to the right entry of the associated mapping.- Specified by:
getDepotPathin interfaceIStreamViewMapping- Returns:
- depot path
- See Also:
-
setDepotPath
Description copied from interface:IStreamViewMappingSet a stream view entry's optional depot path; this corresponds to the right entry of the associated mapping.- Specified by:
setDepotPathin interfaceIStreamViewMapping- Parameters:
depotPath- depot path- See Also:
-
toString
Description copied from interface:IMapEntryReturn a canonical String representation of this entry. This is in the form [type prefix]leftpath[specstring]rightpath, e.g. "-//depot/dev/test/... //clientname/newpath/..."If the passed-in string is null, the left and right strings (if they exist) will be concatenated into one long separator-less string.
If the quoteBlanks parameter is true, if either or both the left or right entries contain spaces, the entries are quoted in full, i.e. the mapping //depot/test/space test 01/... //depot/test/space test 02/... becomes "//depot/test/space test 01/..." "//depot/test/space test 02/...".
-