public static class Stream.StreamViewMapping extends MapEntry implements IStreamViewMapping
IStreamViewMapping.PathType
IMapEntry.EntryType
Modifier and Type | Field and Description |
---|---|
protected IStreamViewMapping.PathType |
pathType |
comment, elementPattern, elementPatternStr, left, order, right, type
ORDER_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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComment, getComment, getLeft, getLeft, getOrder, getRight, getRight, getType, setComment, setLeft, setOrder, setRight, setType, toString
protected 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()
IStreamViewMapping
getPathType
in interface IStreamViewMapping
IStreamViewMapping.getPathType()
public void setPathType(IStreamViewMapping.PathType pathType)
IStreamViewMapping
setPathType
in interface IStreamViewMapping
pathType
- path typeIStreamViewMapping.setPathType(com.perforce.p4java.core.IStreamViewMapping.PathType)
public java.lang.String getViewPath()
IStreamViewMapping
getViewPath
in interface IStreamViewMapping
IStreamViewMapping.getViewPath()
public void setViewPath(java.lang.String viewPath)
IStreamViewMapping
setViewPath
in interface IStreamViewMapping
viewPath
- view pathIStreamViewMapping.setViewPath(java.lang.String)
public java.lang.String getDepotPath()
IStreamViewMapping
getDepotPath
in interface IStreamViewMapping
IStreamViewMapping.getDepotPath()
public void setDepotPath(java.lang.String depotPath)
IStreamViewMapping
setDepotPath
in interface IStreamViewMapping
depotPath
- depot pathIStreamViewMapping.setDepotPath(java.lang.String)
public java.lang.String toString(java.lang.String sepString, boolean quoteBlanks)
IMapEntry
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/...".
toString
in interface IMapEntry
toString
in interface IStreamViewMapping
toString
in class MapEntry
sepString
- separator stringquoteBlanks
- quotes if spaces are usedIMapEntry.toString(String, boolean)