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
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
comment, elementPattern, elementPatternStr, left, order, right, type
-
Fields inherited from interface com.perforce.p4java.core.IMapEntry
ORDER_UNKNOWN
-
-
Constructor Summary
Constructors Constructor 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).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
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 Detail
-
BranchViewMapping
public BranchViewMapping()
Default constructor -- calls super() only.
-
BranchViewMapping
public BranchViewMapping(int order, java.lang.String sourceSpec, java.lang.String targetSpec)
Explicit value constructor -- calls super(order, sourceSpec, targetSpec).- Parameters:
order
- ordersourceSpec
- source spectargetSpec
- target spec
-
BranchViewMapping
public 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).- Parameters:
order
- orderviewString
- view string
-
-
Method Detail
-
getSourceSpec
public java.lang.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 interfaceIBranchMapping
- Returns:
- LHS branch mapping
- See Also:
IBranchMapping.getSourceSpec()
-
setSourceSpec
public void setSourceSpec(java.lang.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 interfaceIBranchMapping
- Parameters:
sourceSpec
- LHS branch mapping- See Also:
IBranchMapping.setSourceSpec(java.lang.String)
-
getTargetSpec
public java.lang.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 interfaceIBranchMapping
- Returns:
- RHS branch mapping
- See Also:
IBranchMapping.getTargetSpec()
-
setTargetSpec
public void setTargetSpec(java.lang.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 interfaceIBranchMapping
- Parameters:
targetSpec
- RHS branch mapping- See Also:
IBranchMapping.setTargetSpec(java.lang.String)
-
-