Class Label.LabelMapping
- java.lang.Object
-
- com.perforce.p4java.impl.generic.core.MapEntry
-
- com.perforce.p4java.impl.generic.core.Label.LabelMapping
-
- All Implemented Interfaces:
ILabelMapping
,IMapEntry
- Enclosing class:
- Label
public static class Label.LabelMapping extends MapEntry implements ILabelMapping
-
-
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 LabelMapping()
Default constructor -- calls super() only.LabelMapping(int order, java.lang.String labelMapping)
Explicit value constructor -- calls super(order, labelMapping).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getViewMapping()
Get a label view entry's "source" spec; this corresponds to the left entry of the associated mapping.void
setViewMapping(java.lang.String entry)
Set a branch view entry's "source" spec; this corresponds to the left 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
-
LabelMapping
public LabelMapping()
Default constructor -- calls super() only.
-
LabelMapping
public LabelMapping(int order, java.lang.String labelMapping)
Explicit value constructor -- calls super(order, labelMapping). Note that this probably won't do what you expect it to if there's more than one element in the subscription.- Parameters:
order
- orderlabelMapping
- mapping
-
-
Method Detail
-
getViewMapping
public java.lang.String getViewMapping()
Description copied from interface:ILabelMapping
Get a label view entry's "source" spec; this corresponds to the left entry of the associated mapping.- Specified by:
getViewMapping
in interfaceILabelMapping
- Returns:
- LHS mapping
- See Also:
ILabelMapping.getViewMapping()
-
setViewMapping
public void setViewMapping(java.lang.String entry)
Description copied from interface:ILabelMapping
Set a branch view entry's "source" spec; this corresponds to the left entry of the associated mapping.- Specified by:
setViewMapping
in interfaceILabelMapping
- Parameters:
entry
- LHS entry- See Also:
ILabelMapping.setViewMapping(java.lang.String)
-
-