com.perforce.maven.scm.provider.p4.command
Class P4Result

java.lang.Object
  extended by com.perforce.maven.scm.provider.p4.command.P4Result
Direct Known Subclasses:
P4AddResult, P4BlameResult, P4BranchResult, P4ChangeLogResult, P4CheckInResult, P4CheckOutResult, P4DiffResult, P4EditResult, P4ExportResult, P4ListResult, P4LoginResult, P4RemoveResult, P4StatusResult, P4TagResult, P4UnEditResult, P4UpdateResult

public abstract class P4Result
extends Object

This class handles the result from the Perforce command.


Field Summary
protected  String commandOutput
          The command output.
protected  List<org.apache.maven.scm.ScmFile> commandResult
          The command result.
static String LINE_SEPARATOR
          Line separator for this system.
protected  boolean success
          The success.
 
Constructor Summary
P4Result()
           
 
Method Summary
 String getCommandOutput()
          Gets the command output.
 List<org.apache.maven.scm.ScmFile> getCommandResult()
          Gets the command result.
 boolean isSuccess()
          Checks if is success.
 void process(List<com.perforce.p4java.core.file.IFileSpec> fileSpecs)
          Processes the command result filespecs.
abstract  String processMessage(String message)
          Process message.
 void setSuccess(boolean success)
          Sets the success.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINE_SEPARATOR

public static final String LINE_SEPARATOR
Line separator for this system.


success

protected boolean success
The success.


commandResult

protected List<org.apache.maven.scm.ScmFile> commandResult
The command result.


commandOutput

protected String commandOutput
The command output.

Constructor Detail

P4Result

public P4Result()
Method Detail

process

public void process(List<com.perforce.p4java.core.file.IFileSpec> fileSpecs)
Processes the command result filespecs.

Parameters:
fileSpecs - the file specs

processMessage

public abstract String processMessage(String message)
Process message.

Parameters:
message - the message
Returns:
the string

getCommandResult

public List<org.apache.maven.scm.ScmFile> getCommandResult()
Gets the command result.

Returns:
the command result

getCommandOutput

public String getCommandOutput()
Gets the command output.

Returns:
the command output

isSuccess

public boolean isSuccess()
Checks if is success.

Returns:
true, if is success

setSuccess

public void setSuccess(boolean success)
Sets the success.

Parameters:
success - the new success


Copyright © 2003-2011 Perforce Software. All Rights Reserved.