Interface IStreamViewMapping
- All Superinterfaces:
IMapEntry
- All Known Implementing Classes:
Stream.StreamViewMapping
<path_type> <view_path> [<depot_path>]
where <path_type> is a single keyword, <view_path> is a file path with no
leading slashes, and the optional <depot_path> is a file path beginning with
'//'. Both <view_path> and <depot_path> may contain trailing wildcards, but
no leading or embedded wildcards. Lines in the Paths field may appear in any
order. A duplicated <view_path> overrides its preceding entry.
Paths are inherited by child stream views. A child stream's paths can
downgrade the inherited view, but not upgrade it. (For instance, a child
stream can downgrade a shared path to an isolated path, but it can't upgrade
an isolated path to a shared path.) Note that <depot_path> is relevant only
when <path_type> is 'import' or 'import+'.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumDefines the possible path types.Nested classes/interfaces inherited from interface com.perforce.p4java.core.IMapEntry
IMapEntry.EntryType -
Field Summary
Fields inherited from interface com.perforce.p4java.core.IMapEntry
ORDER_UNKNOWN -
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 interface com.perforce.p4java.core.IMapEntry
getComment, getComment, getLeft, getLeft, getOrder, getRight, getRight, getType, setComment, setLeft, setOrder, setRight, setType, toString
-
Method Details
-
getPathType
IStreamViewMapping.PathType getPathType()Get the stream view path type- Returns:
- path type
-
setPathType
Set a stream view path type- Parameters:
pathType- path type
-
getViewPath
String getViewPath()Get a stream view entry's view path; this corresponds to the left entry of the associated mapping.- Returns:
- view path
-
setViewPath
Set a stream view entry's view path; this corresponds to the left entry of the associated mapping.- Parameters:
viewPath- view path
-
getDepotPath
String getDepotPath()Get a stream view entry's optional depot path; this corresponds to the right entry of the associated mapping.- Returns:
- depot path
-
setDepotPath
Set a stream view entry's optional depot path; this corresponds to the right entry of the associated mapping.- Parameters:
depotPath- depot path
-
toString
Return 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/...".
-