public static class BranchSpec.BranchViewMapping extends MapEntry implements IBranchMapping
IMapEntry.EntryTypecomment, elementPattern, elementPatternStr, left, order, right, typeORDER_UNKNOWN| 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.
|
getComment, getComment, getLeft, getLeft, getOrder, getRight, getRight, getType, parseComments, parseViewMappingString, quoteWhitespaceString, setComment, setLeft, setOrder, setRight, setType, stripComments, stripTypePrefix, toString, toStringpublic BranchViewMapping()
public BranchViewMapping(int order,
java.lang.String sourceSpec,
java.lang.String targetSpec)
order - ordersourceSpec - source spectargetSpec - target specpublic BranchViewMapping(int order,
java.lang.String viewString)
order - orderviewString - view stringpublic java.lang.String getSourceSpec()
IBranchMappinggetSourceSpec in interface IBranchMappingIBranchMapping.getSourceSpec()public void setSourceSpec(java.lang.String sourceSpec)
IBranchMappingsetSourceSpec in interface IBranchMappingsourceSpec - LHS branch mappingIBranchMapping.setSourceSpec(java.lang.String)public java.lang.String getTargetSpec()
IBranchMappinggetTargetSpec in interface IBranchMappingIBranchMapping.getTargetSpec()public void setTargetSpec(java.lang.String targetSpec)
IBranchMappingsetTargetSpec in interface IBranchMappingtargetSpec - RHS branch mappingIBranchMapping.setTargetSpec(java.lang.String)