public interface IStreamViewMapping extends IMapEntry
<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+'.
Modifier and Type | Interface and Description |
---|---|
static class |
IStreamViewMapping.PathType
Defines the possible path types.
|
IMapEntry.EntryType
ORDER_UNKNOWN
Modifier and Type | Method and 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 type
|
java.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 type
|
void |
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.
|
getComment, getComment, getLeft, getLeft, getOrder, getRight, getRight, getType, setComment, setLeft, setOrder, setRight, setType, toString
IStreamViewMapping.PathType getPathType()
void setPathType(IStreamViewMapping.PathType pathType)
pathType
- path typejava.lang.String getViewPath()
void setViewPath(java.lang.String viewPath)
viewPath
- view pathjava.lang.String getDepotPath()
void setDepotPath(java.lang.String depotPath)
depotPath
- depot pathjava.lang.String toString(java.lang.String sepString, boolean quoteBlanks)
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/...".