com.perforce.p4java.impl.generic.core
Class Label.LabelMapping

java.lang.Object
  extended by com.perforce.p4java.impl.generic.core.MapEntry
      extended by 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
elementPattern, elementPatternStr, left, order, right, type
 
Fields inherited from interface com.perforce.p4java.core.IMapEntry
EXCLUDE_PREFIX, ORDER_UNKNOWN, OVERLAY_PREFIX
 
Constructor Summary
Label.LabelMapping()
          Default constructor -- calls super() only.
Label.LabelMapping(int order, String labelMapping)
          Explicit value constructor -- calls super(order, labelMapping).
 
Method Summary
 String getViewMapping()
          Get a label view entry's "source" spec; this corresponds to the left entry of the associated mapping.
 void setViewMapping(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
getLeft, getLeft, getOrder, getRight, getRight, getType, parseViewMappingString, quoteWhitespaceString, setLeft, setOrder, setRight, setType, stripTypePrefix, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.perforce.p4java.core.IMapEntry
getLeft, getLeft, getOrder, getRight, getRight, getType, setLeft, setOrder, setRight, setType, toString, toString
 

Constructor Detail

Label.LabelMapping

public Label.LabelMapping()
Default constructor -- calls super() only.


Label.LabelMapping

public Label.LabelMapping(int order,
                          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.

Method Detail

getViewMapping

public 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 interface ILabelMapping
See Also:
ILabelMapping.getViewMapping()

setViewMapping

public void setViewMapping(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 interface ILabelMapping
See Also:
ILabelMapping.setViewMapping(java.lang.String)


Copyright © 2015 Perforce Software. All Rights Reserved.