public static class BranchSpec.BranchViewMapping extends MapEntry implements IBranchMapping
IMapEntry.EntryType
comment, elementPattern, elementPatternStr, left, order, right, type
ORDER_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, toString
public 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()
IBranchMapping
getSourceSpec
in interface IBranchMapping
IBranchMapping.getSourceSpec()
public void setSourceSpec(java.lang.String sourceSpec)
IBranchMapping
setSourceSpec
in interface IBranchMapping
sourceSpec
- LHS branch mappingIBranchMapping.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
targetSpec
- RHS branch mappingIBranchMapping.setTargetSpec(java.lang.String)