Class BranchSpec.BranchViewMapping
java.lang.Object
com.perforce.p4java.impl.generic.core.MapEntry
com.perforce.p4java.impl.generic.core.BranchSpec.BranchViewMapping
- All Implemented Interfaces:
IBranchMapping,IMapEntry
- Enclosing class:
- BranchSpec
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
comment, elementPattern, elementPatternStr, left, order, right, typeFields inherited from interface com.perforce.p4java.core.IMapEntry
ORDER_UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor -- calls super() only.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).BranchViewMapping(int order, String sourceSpec, String targetSpec) Explicit value constructor -- calls super(order, sourceSpec, targetSpec). -
Method Summary
Modifier and TypeMethodDescriptionGet a branch view entry's "source" spec; this corresponds to the left entry of the associated mapping.Get a branch view entry's "target" spec; this corresponds to the right entry of the associated mapping.voidsetSourceSpec(String sourceSpec) Set a branch view entry's "source" spec; this corresponds to the left entry of the associated mapping.voidsetTargetSpec(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
getComment, getComment, getLeft, getLeft, getOrder, getRight, getRight, getType, parseComments, parseViewMappingString, quoteWhitespaceString, setComment, setLeft, setOrder, setRight, setType, stripComments, stripTypePrefix, toString, toString
-
Constructor Details
-
BranchViewMapping
public BranchViewMapping()Default constructor -- calls super() only. -
BranchViewMapping
Explicit value constructor -- calls super(order, sourceSpec, targetSpec).- Parameters:
order- ordersourceSpec- source spectargetSpec- target spec
-
BranchViewMapping
Construct a mapping from the passed-in string, which is assumed to be in the format described in MapEntry.parseViewString(String).- Parameters:
order- orderviewString- view string
-
-
Method Details
-
getSourceSpec
Description copied from interface:IBranchMappingGet a branch view entry's "source" spec; this corresponds to the left entry of the associated mapping.- Specified by:
getSourceSpecin interfaceIBranchMapping- Returns:
- LHS branch mapping
- See Also:
-
setSourceSpec
Description copied from interface:IBranchMappingSet a branch view entry's "source" spec; this corresponds to the left entry of the associated mapping.- Specified by:
setSourceSpecin interfaceIBranchMapping- Parameters:
sourceSpec- LHS branch mapping- See Also:
-
getTargetSpec
Description copied from interface:IBranchMappingGet a branch view entry's "target" spec; this corresponds to the right entry of the associated mapping.- Specified by:
getTargetSpecin interfaceIBranchMapping- Returns:
- RHS branch mapping
- See Also:
-
setTargetSpec
Description copied from interface:IBranchMappingSet a branch view entry's "target" spec; this corresponds to the right entry of the associated mapping.- Specified by:
setTargetSpecin interfaceIBranchMapping- Parameters:
targetSpec- RHS branch mapping- See Also:
-