com.perforce.p4java.impl.generic.core
Class BranchSpec.BranchViewMapping

java.lang.Object
  extended by com.perforce.p4java.impl.generic.core.MapEntry
      extended by com.perforce.p4java.impl.generic.core.BranchSpec.BranchViewMapping
All Implemented Interfaces:
IBranchMapping, IMapEntry
Enclosing class:
BranchSpec

public static class BranchSpec.BranchViewMapping
extends MapEntry
implements IBranchMapping

Simple default implementation of the IViewMapping interface.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.perforce.p4java.core.IMapEntry
IMapEntry.EntryType
 
Field Summary
 
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
BranchSpec.BranchViewMapping()
          Default constructor -- calls super() only.
BranchSpec.BranchViewMapping(int order, String viewString)
          Construct a mapping from the passed-in string, which is assumed to be in the format described in MapEntry.parseViewString(String).
BranchSpec.BranchViewMapping(int order, String sourceSpec, String targetSpec)
          Explicit value constructor -- calls super(order, sourceSpec, targetSpec).
 
Method Summary
 String getSourceSpec()
          Get a branch view entry's "source" spec; this corresponds to the left entry of the associated mapping.
 String getTargetSpec()
          Get a branch view entry's "target" spec; this corresponds to the right entry of the associated mapping.
 void setSourceSpec(String sourceSpec)
          Set a branch view entry's "source" spec; this corresponds to the left entry of the associated mapping.
 void setTargetSpec(String targetSpec)
          Set a branch view entry's "target" spec; this corresponds to the right 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
 

Constructor Detail

BranchSpec.BranchViewMapping

public BranchSpec.BranchViewMapping()
Default constructor -- calls super() only.


BranchSpec.BranchViewMapping

public BranchSpec.BranchViewMapping(int order,
                                    String sourceSpec,
                                    String targetSpec)
Explicit value constructor -- calls super(order, sourceSpec, targetSpec).


BranchSpec.BranchViewMapping

public BranchSpec.BranchViewMapping(int order,
                                    String viewString)
Construct a mapping from the passed-in string, which is assumed to be in the format described in MapEntry.parseViewString(String).

Method Detail

getSourceSpec

public String getSourceSpec()
Description copied from interface: IBranchMapping
Get a branch view entry's "source" spec; this corresponds to the left entry of the associated mapping.

Specified by:
getSourceSpec in interface IBranchMapping
See Also:
IBranchMapping.getSourceSpec()

setSourceSpec

public void setSourceSpec(String sourceSpec)
Description copied from interface: IBranchMapping
Set a branch view entry's "source" spec; this corresponds to the left entry of the associated mapping.

Specified by:
setSourceSpec in interface IBranchMapping
See Also:
IBranchMapping.setSourceSpec(java.lang.String)

getTargetSpec

public String getTargetSpec()
Description copied from interface: IBranchMapping
Get a branch view entry's "target" spec; this corresponds to the right entry of the associated mapping.

Specified by:
getTargetSpec in interface IBranchMapping
See Also:
IBranchMapping.getTargetSpec()

setTargetSpec

public void setTargetSpec(String targetSpec)
Description copied from interface: IBranchMapping
Set a branch view entry's "target" spec; this corresponds to the right entry of the associated mapping.

Specified by:
setTargetSpec in interface IBranchMapping
See Also:
IBranchMapping.setTargetSpec(java.lang.String)


Copyright © 2015 Perforce Software. All Rights Reserved.