Class ClientView.ClientViewMapping
- java.lang.Object
-
- com.perforce.p4java.impl.generic.core.MapEntry
-
- 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
Fields Modifier and Type Field Description static int
NO_MAP_ORDER
-
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 ClientViewMapping()
Default constructor.ClientViewMapping(int order, IMapEntry.EntryType type, java.lang.String depotSpec, java.lang.String clientSpec)
Constructs a new view mapping by calling the superclass's corresponding constructor.ClientViewMapping(int order, java.lang.String mappingString)
Constructs a new view mapping by calling the superclass's corresponding constructor.ClientViewMapping(int order, java.lang.String depotSpec, java.lang.String client)
Constructs a new view mapping by calling the superclass's corresponding constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getClient()
java.lang.String
getClient(boolean quoteBlanks)
java.lang.String
getDepotSpec()
java.lang.String
getDepotSpec(boolean quoteBlanks)
void
setClient(java.lang.String client)
void
setDepotSpec(java.lang.String depotSpec)
-
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
-
-
-
-
Field Detail
-
NO_MAP_ORDER
public static final int NO_MAP_ORDER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ClientViewMapping
public ClientViewMapping()
Default constructor. Sets all fields to null or false.
-
ClientViewMapping
public ClientViewMapping(int order, java.lang.String mappingString)
Constructs a new view mapping by calling the superclass's corresponding constructor.- Parameters:
order
- ordermappingString
- mappingString
-
ClientViewMapping
public ClientViewMapping(int order, java.lang.String depotSpec, java.lang.String client)
Constructs a new view mapping by calling the superclass's corresponding constructor.- Parameters:
order
- orderdepotSpec
- depotSpecclient
- client
-
ClientViewMapping
public ClientViewMapping(int order, IMapEntry.EntryType type, java.lang.String depotSpec, java.lang.String clientSpec)
Constructs a new view mapping by calling the superclass's corresponding constructor.- Parameters:
order
- ordertype
- typedepotSpec
- depotSpecclientSpec
- clientSpec
-
-
Method Detail
-
getDepotSpec
public java.lang.String getDepotSpec()
- Specified by:
getDepotSpec
in interfaceIClientViewMapping
-
getDepotSpec
public java.lang.String getDepotSpec(boolean quoteBlanks)
- Specified by:
getDepotSpec
in interfaceIClientViewMapping
-
setDepotSpec
public void setDepotSpec(java.lang.String depotSpec)
- Specified by:
setDepotSpec
in interfaceIClientViewMapping
-
getClient
public java.lang.String getClient()
- Specified by:
getClient
in interfaceIClientViewMapping
-
setClient
public void setClient(java.lang.String client)
- Specified by:
setClient
in interfaceIClientViewMapping
-
getClient
public java.lang.String getClient(boolean quoteBlanks)
- Specified by:
getClient
in interfaceIClientViewMapping
-
-