com.perforce.p4java.impl.generic.core
Class InputMapper

java.lang.Object
  extended by com.perforce.p4java.impl.generic.core.InputMapper

public class InputMapper
extends java.lang.Object

A useful class with methods to map certain classes to maps suitable for feeding to the IServer execMapCmd method's input map. Use of these methods outside their very limited initial applications is not guaranteed to work...


Constructor Summary
InputMapper()
           
 
Method Summary
static java.util.Map<java.lang.String,java.lang.Object> map(IBranchSpec branchSpec)
           
static java.util.Map<java.lang.String,java.lang.Object> map(IChangelist change)
          Map a P4Java changelist to an IServer input map.
static java.util.Map<java.lang.String,java.lang.Object> map(IChangelist change, boolean allowUnknownFiles)
          Map a P4Java changelist to an IServer input map.
static java.util.Map<java.lang.String,java.lang.Object> map(IClient client)
          Map a P4Java client object to an IServer input map.
static java.util.Map<java.lang.String,java.lang.Object> map(ILabel label)
          Map a P4Java label object to an IServer input map.
static java.util.Map<java.lang.String,java.lang.Object> map(IUser user)
          Map a P4Java IUsers object to an IServer input map.
static java.util.Map<java.lang.String,java.lang.Object> map(IUserGroup group)
          Map a P4Java IUserGroup object to an IServer input map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputMapper

public InputMapper()
Method Detail

map

public static java.util.Map<java.lang.String,java.lang.Object> map(IChangelist change,
                                                                   boolean allowUnknownFiles)
Map a P4Java changelist to an IServer input map.

Parameters:
change - candidate changelist
allowUnknownFiles -
Returns:
non-null map suitable for use with execMapCmd

map

public static java.util.Map<java.lang.String,java.lang.Object> map(IChangelist change)
Map a P4Java changelist to an IServer input map.

Parameters:
change - candidate changelist
Returns:
non-null map suitable for use with execMapCmd

map

public static java.util.Map<java.lang.String,java.lang.Object> map(IClient client)
Map a P4Java client object to an IServer input map.

Parameters:
client - candidate client
Returns:
non-null map suitable for use with execMapCmd

map

public static java.util.Map<java.lang.String,java.lang.Object> map(ILabel label)
Map a P4Java label object to an IServer input map.

Parameters:
label - candidate label
Returns:
non-null map suitable for use with execMapCmd

map

public static java.util.Map<java.lang.String,java.lang.Object> map(IUser user)
Map a P4Java IUsers object to an IServer input map.

Parameters:
user - candidate user object
Returns:
non-null map suitable for use with execMapCmd

map

public static java.util.Map<java.lang.String,java.lang.Object> map(IUserGroup group)
Map a P4Java IUserGroup object to an IServer input map.

Parameters:
group - candidate user group object
Returns:
non-null map suitable for use with execMapCmd

map

public static java.util.Map<java.lang.String,java.lang.Object> map(IBranchSpec branchSpec)


Copyright (c) 2008-2010 Perforce Software. All rights reserved.