com.perforce.p4java.impl.generic.core
Class Stream.StreamViewMapping

java.lang.Object
  extended by com.perforce.p4java.impl.generic.core.MapEntry
      extended by com.perforce.p4java.impl.generic.core.Stream.StreamViewMapping
All Implemented Interfaces:
IMapEntry, IStreamViewMapping
Enclosing class:
Stream

public static class Stream.StreamViewMapping
extends MapEntry
implements IStreamViewMapping

Simple default implementation of the IStreamViewMapping interface.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.perforce.p4java.core.IStreamViewMapping
IStreamViewMapping.PathType
 
Nested classes/interfaces inherited from interface com.perforce.p4java.core.IMapEntry
IMapEntry.EntryType
 
Field Summary
protected  IStreamViewMapping.PathType pathType
           
 
Fields inherited from class com.perforce.p4java.impl.generic.core.MapEntry
elementPattern, elementPatternStr, left, order, right, type
 
Fields inherited from interface com.perforce.p4java.core.IMapEntry
EXCLUDE_PREFIX, ORDER_UNKNOWN, OVERLAY_PREFIX
 
Constructor Summary
Stream.StreamViewMapping()
          Default constructor -- calls super() only.
Stream.StreamViewMapping(int order, IStreamViewMapping.PathType pathType, String viewPath, String depotPath)
          Explicit value constructor -- calls super(order, target, targetSpec).
Stream.StreamViewMapping(int order, String viewString)
          Construct a mapping from the passed-in string, which is assumed to be in the format.
 
Method Summary
 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
 String getViewPath()
          Get a stream view entry's view path; this corresponds to the left entry of the associated mapping.
 void setDepotPath(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(String viewPath)
          Set a stream view entry's view path; this corresponds to the left entry of the associated mapping.
 
Methods inherited from class com.perforce.p4java.impl.generic.core.MapEntry
getLeft, getLeft, getOrder, getRight, getRight, getType, parseViewMappingString, quoteWhitespaceString, setLeft, setOrder, setRight, setType, stripTypePrefix, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.perforce.p4java.core.IMapEntry
getLeft, getLeft, getOrder, getRight, getRight, getType, setLeft, setOrder, setRight, setType, toString, toString
 

Field Detail

pathType

protected IStreamViewMapping.PathType pathType
Constructor Detail

Stream.StreamViewMapping

public Stream.StreamViewMapping()
Default constructor -- calls super() only.


Stream.StreamViewMapping

public Stream.StreamViewMapping(int order,
                                IStreamViewMapping.PathType pathType,
                                String viewPath,
                                String depotPath)
Explicit value constructor -- calls super(order, target, targetSpec).


Stream.StreamViewMapping

public Stream.StreamViewMapping(int order,
                                String viewString)
Construct a mapping from the passed-in string, which is assumed to be in the format.

Method Detail

getPathType

public IStreamViewMapping.PathType getPathType()
Description copied from interface: IStreamViewMapping
Get the stream view path type

Specified by:
getPathType in interface IStreamViewMapping
See Also:
IStreamViewMapping.getPathType()

setPathType

public void setPathType(IStreamViewMapping.PathType pathType)
Description copied from interface: IStreamViewMapping
Set a stream view path type

Specified by:
setPathType in interface IStreamViewMapping
See Also:
com.perforce.p4java.core.IStreamViewMapping#setPathType(java.lang.String)

getViewPath

public String getViewPath()
Description copied from interface: IStreamViewMapping
Get a stream view entry's view path; this corresponds to the left entry of the associated mapping.

Specified by:
getViewPath in interface IStreamViewMapping
See Also:
IStreamViewMapping.getViewPath()

setViewPath

public void setViewPath(String viewPath)
Description copied from interface: IStreamViewMapping
Set a stream view entry's view path; this corresponds to the left entry of the associated mapping.

Specified by:
setViewPath in interface IStreamViewMapping
See Also:
IStreamViewMapping.setViewPath(java.lang.String)

getDepotPath

public String getDepotPath()
Description copied from interface: IStreamViewMapping
Get a stream view entry's optional depot path; this corresponds to the right entry of the associated mapping.

Specified by:
getDepotPath in interface IStreamViewMapping
See Also:
IStreamViewMapping.getDepotPath()

setDepotPath

public void setDepotPath(String depotPath)
Description copied from interface: IStreamViewMapping
Set a stream view entry's optional depot path; this corresponds to the right entry of the associated mapping.

Specified by:
setDepotPath in interface IStreamViewMapping
See Also:
IStreamViewMapping.setDepotPath(java.lang.String)


Copyright © 2015 Perforce Software. All Rights Reserved.