com.perforce.p4java.impl.generic.client
Class ClientView.ClientViewMapping

java.lang.Object
  extended by com.perforce.p4java.impl.generic.core.MapEntry
      extended by com.perforce.p4java.impl.generic.client.ClientView.ClientViewMapping
All Implemented Interfaces:
IClientViewMapping, IMapEntry
Enclosing class:
ClientView

public static class ClientView.ClientViewMapping
extends MapEntry
implements IClientViewMapping

Simple extension of the basic MapEntry class to provide convenience methods based on "depot" and "client" rather than "left" and "right".


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.perforce.p4java.core.IMapEntry
IMapEntry.EntryType
 
Field Summary
static int NO_MAP_ORDER
           
 
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
ClientView.ClientViewMapping()
          Default constructor.
ClientView.ClientViewMapping(int order, IMapEntry.EntryType type, String depotSpec, String clientSpec)
          Constructs a new view mapping by calling the superclass's corresponding constructor.
ClientView.ClientViewMapping(int order, String mappingString)
          Constructs a new view mapping by calling the superclass's corresponding constructor.
ClientView.ClientViewMapping(int order, String depotSpec, String client)
          Constructs a new view mapping by calling the superclass's corresponding constructor.
 
Method Summary
 String getClient()
           
 String getClient(boolean quoteBlanks)
           
 String getDepotSpec()
           
 String getDepotSpec(boolean quoteBlanks)
           
 void setClient(String client)
           
 void setDepotSpec(String depotSpec)
           
 
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
 

Field Detail

NO_MAP_ORDER

public static final int NO_MAP_ORDER
See Also:
Constant Field Values
Constructor Detail

ClientView.ClientViewMapping

public ClientView.ClientViewMapping()
Default constructor. Sets all fields to null or false.


ClientView.ClientViewMapping

public ClientView.ClientViewMapping(int order,
                                    String mappingString)
Constructs a new view mapping by calling the superclass's corresponding constructor.


ClientView.ClientViewMapping

public ClientView.ClientViewMapping(int order,
                                    String depotSpec,
                                    String client)
Constructs a new view mapping by calling the superclass's corresponding constructor.


ClientView.ClientViewMapping

public ClientView.ClientViewMapping(int order,
                                    IMapEntry.EntryType type,
                                    String depotSpec,
                                    String clientSpec)
Constructs a new view mapping by calling the superclass's corresponding constructor.

Method Detail

getDepotSpec

public String getDepotSpec()
Specified by:
getDepotSpec in interface IClientViewMapping

getDepotSpec

public String getDepotSpec(boolean quoteBlanks)
Specified by:
getDepotSpec in interface IClientViewMapping

setDepotSpec

public void setDepotSpec(String depotSpec)
Specified by:
setDepotSpec in interface IClientViewMapping

getClient

public String getClient()
Specified by:
getClient in interface IClientViewMapping

setClient

public void setClient(String client)
Specified by:
setClient in interface IClientViewMapping

getClient

public String getClient(boolean quoteBlanks)
Specified by:
getClient in interface IClientViewMapping


Copyright © 2015 Perforce Software. All Rights Reserved.