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
-
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.LabelMapping(int order, String labelMapping) Explicit value constructor -- calls super(order, labelMapping). -
Method Summary
Modifier and TypeMethodDescriptionGet a label view entry's "source" spec; this corresponds to the left entry of the associated mapping.voidsetViewMapping(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 Details
-
LabelMapping
public LabelMapping()Default constructor -- calls super() only. -
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 Details
-
getViewMapping
Description copied from interface:ILabelMappingGet a label view entry's "source" spec; this corresponds to the left entry of the associated mapping.- Specified by:
getViewMappingin interfaceILabelMapping- Returns:
- LHS mapping
- See Also:
-
setViewMapping
Description copied from interface:ILabelMappingSet a branch view entry's "source" spec; this corresponds to the left entry of the associated mapping.- Specified by:
setViewMappingin interfaceILabelMapping- Parameters:
entry- LHS entry- See Also:
-