Interface IStreamViewMapping
-
- All Superinterfaces:
IMapEntry
- All Known Implementing Classes:
Stream.StreamViewMapping
public interface IStreamViewMapping extends IMapEntry
Defines an individual file path in the stream view. Each view mapping is of the form:<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 Classes Modifier and Type Interface Description static class
IStreamViewMapping.PathType
Defines 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getDepotPath()
Get a stream view entry's optional depot path; this corresponds to the right entry of the associated mapping.IStreamViewMapping.PathType
getPathType()
Get the stream view path typejava.lang.String
getViewPath()
Get a stream view entry's view path; this corresponds to the left entry of the associated mapping.void
setDepotPath(java.lang.String depotPath)
Set a stream view entry's optional depot path; this corresponds to the right entry of the associated mapping.void
setPathType(IStreamViewMapping.PathType pathType)
Set a stream view path typevoid
setViewPath(java.lang.String viewPath)
Set a stream view entry's view path; this corresponds to the left entry of the associated mapping.java.lang.String
toString(java.lang.String sepString, boolean quoteBlanks)
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 Detail
-
getPathType
IStreamViewMapping.PathType getPathType()
Get the stream view path type- Returns:
- path type
-
setPathType
void setPathType(IStreamViewMapping.PathType pathType)
Set a stream view path type- Parameters:
pathType
- path type
-
getViewPath
java.lang.String getViewPath()
Get a stream view entry's view path; this corresponds to the left entry of the associated mapping.- Returns:
- view path
-
setViewPath
void setViewPath(java.lang.String viewPath)
Set a stream view entry's view path; this corresponds to the left entry of the associated mapping.- Parameters:
viewPath
- view path
-
getDepotPath
java.lang.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
void setDepotPath(java.lang.String depotPath)
Set a stream view entry's optional depot path; this corresponds to the right entry of the associated mapping.- Parameters:
depotPath
- depot path
-
toString
java.lang.String toString(java.lang.String sepString, boolean quoteBlanks)
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/...".
-
-