public static class BranchSpec.BranchViewMapping extends MapEntry implements IBranchMapping
IMapEntry.EntryType
elementPattern, elementPatternStr, left, order, right, type
EXCLUDE_PREFIX, ORDER_UNKNOWN, OVERLAY_PREFIX
Constructor and Description |
---|
BranchViewMapping()
Default constructor -- calls super() only.
|
BranchViewMapping(int order,
java.lang.String viewString)
Construct a mapping from the passed-in string, which is assumed
to be in the format described in MapEntry.parseViewString(String).
|
BranchViewMapping(int order,
java.lang.String sourceSpec,
java.lang.String targetSpec)
Explicit value constructor -- calls super(order, sourceSpec, targetSpec).
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSourceSpec()
Get a branch view entry's "source" spec; this corresponds
to the left entry of the associated mapping.
|
java.lang.String |
getTargetSpec()
Get a branch view entry's "target" spec; this corresponds
to the right entry of the associated mapping.
|
void |
setSourceSpec(java.lang.String sourceSpec)
Set a branch view entry's "source" spec; this corresponds
to the left entry of the associated mapping.
|
void |
setTargetSpec(java.lang.String targetSpec)
Set a branch view entry's "target" spec; this corresponds
to the right entry of the associated mapping.
|
getLeft, getLeft, getOrder, getRight, getRight, getType, parseViewMappingString, quoteWhitespaceString, setLeft, setOrder, setRight, setType, stripTypePrefix, toString, toString
public BranchViewMapping()
public BranchViewMapping(int order, java.lang.String sourceSpec, java.lang.String targetSpec)
public BranchViewMapping(int order, java.lang.String viewString)
public java.lang.String getSourceSpec()
IBranchMapping
getSourceSpec
in interface IBranchMapping
IBranchMapping.getSourceSpec()
public void setSourceSpec(java.lang.String sourceSpec)
IBranchMapping
setSourceSpec
in interface IBranchMapping
IBranchMapping.setSourceSpec(java.lang.String)
public java.lang.String getTargetSpec()
IBranchMapping
getTargetSpec
in interface IBranchMapping
IBranchMapping.getTargetSpec()
public void setTargetSpec(java.lang.String targetSpec)
IBranchMapping
setTargetSpec
in interface IBranchMapping
IBranchMapping.setTargetSpec(java.lang.String)
Copyright © 2018 Perforce Software. All Rights Reserved.