public static class Stream.StreamViewMapping extends MapEntry implements IStreamViewMapping
IStreamViewMapping.PathTypeIMapEntry.EntryType| Modifier and Type | Field and Description |
|---|---|
protected IStreamViewMapping.PathType |
pathType |
comment, elementPattern, elementPatternStr, left, order, right, typeORDER_UNKNOWN| Constructor and Description |
|---|
StreamViewMapping()
Default constructor -- calls super() only.
|
StreamViewMapping(int order,
IStreamViewMapping.PathType pathType,
java.lang.String viewPath,
java.lang.String depotPath)
Explicit value constructor -- calls super(order, target, targetSpec).
|
StreamViewMapping(int order,
java.lang.String rawViewString)
Construct a mapping from the passed-in string, which is assumed to be
in the format.
|
| 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, parseComments, parseViewMappingString, quoteWhitespaceString, setComment, setLeft, setOrder, setRight, setType, stripComments, stripTypePrefix, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComment, getComment, getLeft, getLeft, getOrder, getRight, getRight, getType, setComment, setLeft, setOrder, setRight, setType, toStringprotected IStreamViewMapping.PathType pathType
public StreamViewMapping()
public StreamViewMapping(int order,
IStreamViewMapping.PathType pathType,
java.lang.String viewPath,
java.lang.String depotPath)
order - orderpathType - path typeviewPath - view pathdepotPath - depot pathpublic StreamViewMapping(int order,
java.lang.String rawViewString)
order - orderrawViewString - raw view stringpublic IStreamViewMapping.PathType getPathType()
IStreamViewMappinggetPathType in interface IStreamViewMappingIStreamViewMapping.getPathType()public void setPathType(IStreamViewMapping.PathType pathType)
IStreamViewMappingsetPathType in interface IStreamViewMappingpathType - path typeIStreamViewMapping.setPathType(com.perforce.p4java.core.IStreamViewMapping.PathType)public java.lang.String getViewPath()
IStreamViewMappinggetViewPath in interface IStreamViewMappingIStreamViewMapping.getViewPath()public void setViewPath(java.lang.String viewPath)
IStreamViewMappingsetViewPath in interface IStreamViewMappingviewPath - view pathIStreamViewMapping.setViewPath(java.lang.String)public java.lang.String getDepotPath()
IStreamViewMappinggetDepotPath in interface IStreamViewMappingIStreamViewMapping.getDepotPath()public void setDepotPath(java.lang.String depotPath)
IStreamViewMappingsetDepotPath in interface IStreamViewMappingdepotPath - depot pathIStreamViewMapping.setDepotPath(java.lang.String)public java.lang.String toString(java.lang.String sepString,
boolean quoteBlanks)
IMapEntryIf 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/...".
toString in interface IMapEntrytoString in interface IStreamViewMappingtoString in class MapEntrysepString - separator stringquoteBlanks - quotes if spaces are usedIMapEntry.toString(String, boolean)